[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: |
Michael Albinus |
Subject: |
Re: make-progress-reporter suggestions: 'modeline and customizable progress-reporter--pulse-characters |
Date: |
Thu, 17 Feb 2011 22:43:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Ted Zlatanov <address@hidden> writes:
> How about (showing both proposed use cases)
>
> (setq pr1 (make-progress-reporter 'modeline))
> (setq pr4 (make-progress-reporter 'modeline 0 100))
> (while t
> (progress-reporter-update pr1)
> (progress-reporter-update pr4))
>
> to work in conjunction with a %/ in the modeline? The idea is that it
> is guaranteed to be 1 or log10(max)+2 characters (non-numeric or
> numeric) wide in this mode and it won't make any noise in the echo area.
As proof of concept the appended patch. I don't use a special "%/"
format in the modeline; instead of there is `mode-line-progress-reporter'
which can be placed somewhere in `mode-line-format' (I've done it after
`mode-line-remote').
You call
(setq pr (make-progress-reporter))
(while t (progress-reporter-update pr))
No text in `make-progress-reporter' would be the modeline indicator;
a text based progress reporter still writes in the minibuffer:
(setq pr (make-progress-reporter ""))
(while t (progress-reporter-update pr))
> Another suggestion for progress-reporter--pulse-characters for both
> modeline and regular use: there are some Unicode glyphs which could be
> used if the font supports them:
> http://en.wikipedia.org/wiki/Harvey_Balls#Harvey_Balls_in_Unicode
>
> Maybe progress-reporter--pulse-characters could be customizable with
> some presets like the above.
That's for later.
> Ted
Best regards, Michael.
txtVFIhyD7bHR.txt
Description: Text Data
- auth-source-search: annoying messages, Miles Bader, 2011/02/16
- 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: 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,
Michael Albinus <=
- 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, 2011/02/22
- 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