[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help needed with gnus mode-line
From: |
Thierry Volpiatto |
Subject: |
Re: help needed with gnus mode-line |
Date: |
Fri, 01 Jul 2011 21:23:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> Try (window-buffer (minibuffer-selected-window)) ;-)
Yes, of course, thanks ;-)
> Of course, minibuffer-selected-window is not quite right either: you
> don't want to modify the mode-line of the buffer from where the M-: was
> typed, but the mode-line that's right above the minibuffer (which
> doesn't even exist in minibuffer-only frames).
Right, i didn't find how to get safely the window right above
minibuffer.
> No, the problem is that if you don't switch to the other buffer, your
> let binding will change the mode-line-format value in the minibuffer and
> since the minibuffer basically never sets this value buffer-locally it
> means it changes (temporarily) the default value of mode-line-format,
> i.e. it changes the value of mode-line-format for all buffers that
> haven't set it buffer-locally (i.e. all buffers except Gnus buffers and
> a few other ones).
Right.
> If you have several windows, you should see that your mode-line message
> appears in pretty much all mode lines rather than only the one next to
> the minibuffer (tho calling force-mode-line-update with a nil may be
> sufficient to restrict the change to the window(s) that show this buffer
> in many cases).
Thanks for all these explanations.
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997