[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-progress-reporter suggestions: 'modeline and customizable progr
From: |
Ted Zlatanov |
Subject: |
Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters |
Date: |
Tue, 22 Feb 2011 11:28:54 -0600 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) |
On Mon, 21 Feb 2011 19:54:21 +0100 Michael Albinus <address@hidden> wrote:
MA> Ah, yes. I was not aware of `format-mode-line'. It also works with my
MA> proposed patch, and the following snippet:
MA> (defun blink-mode-line ()
MA> (let* ((pos (mod count (length mlf))))
MA> (setq count (1+ count))
MA> (concat (substring mlf 0 pos)
MA> (propertize (substring mlf pos (1+ pos)) 'face '(:inverse-video t))
MA> (substring mlf (1+ pos) (length mlf)))))
MA> (setq count 0
MA> pr (make-progress-reporter 'mode-line-format))
MA> (let ((mlf (format-mode-line mode-line-format t))
MA> (progress-reporter--pulse-characters (vector '(:eval
(blink-mode-line)))))
MA> (while t (progress-reporter-update pr)))
On Fri, 18 Feb 2011 17:33:16 -0500 Stefan Monnier <address@hidden> wrote:
SM> Ted wrote:
>> It would be nice if Gnus showed progress like that, actually. There's
>> many Gnus parts that show numeric progress in the minibuffer
>> (e.g. nnimap downloads) that could be less noisy.
SM> Maybe I misunderstand: for me the authentication part is instantaneous,
SM> which is why it doesn't seem to warrant any kind of progress indication.
SM> The act of connecting does take time, but this one already has
SM> messages telling me what's going on. So maybe the issue is that
SM> your authentication steps somehow take up more time?
But *if* it takes a long time that indicates problems. The Secrets API
backend in auth-source.el, for instance, is much slower than the netrc
backend.
On Fri, 18 Feb 2011 14:04:14 -0800 Lars Ingebrigtsen <address@hidden> wrote:
LI> Ted Zlatanov <address@hidden> writes:
>> It would be nice if Gnus showed progress like that, actually. There's
>> many Gnus parts that show numeric progress in the minibuffer
>> (e.g. nnimap downloads) that could be less noisy.
LI> Yeah, a general progress bar (in the mode line) would be really nice
LI> when downloading things or generating a large summary buffer. Showing
LI> "25% done" (etc) in the echo area works, but it's kinda more distracting
LI> than it needs to be. (And overwrites any "real" messages that may be
LI> displayed.)
Can you try Michael's patch and example I cited and see if it works for
you? I think it's OK and if you are happy with it, should go into
Emacs.
I brought the discussion back under this thread because the other one's
subject ("auth-source-search: annoying messages") was not as
appropriate. Sorry for the confusion this may cause.
Thanks
Ted
- Re: auth-source-search: annoying messages, (continued)
- Re: auth-source-search: annoying messages, Ted Zlatanov, 2011/02/17
- Re: auth-source-search: annoying messages, Michael Albinus, 2011/02/17
- Message not available
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Tom Tromey, 2011/02/18
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Ted Zlatanov, 2011/02/18
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Michael Albinus, 2011/02/20
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Michael Albinus, 2011/02/20
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Tom Tromey, 2011/02/20
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Michael Albinus, 2011/02/21
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters,
Ted Zlatanov <=
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Lars Ingebrigtsen, 2011/02/23
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Michael Albinus, 2011/02/23
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Ted Zlatanov, 2011/02/23
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Michael Albinus, 2011/02/23
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Chong Yidong, 2011/02/23
- RE: make-progress-reporter suggestions: 'modeline and customizableprogress-reporter--pulse-characters, Drew Adams, 2011/02/23
- Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters, Ted Zlatanov, 2011/02/23
- Global indicators (was: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters), Julien Danjou, 2011/02/23
- Re: Global indicators, Chong Yidong, 2011/02/23
- RE: Global indicators, Drew Adams, 2011/02/23