[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 09:25:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> i would like to display temporarily information in mode-line while i am
>> in gnus.
>> In all emacs, something like this work fine:
>> --8<---------------cut here---------------start------------->8---
>> (let ((mode-line-format (concat " " str)))
>>   (force-mode-line-update)
>>   (sit-for 12))
>> (force-mode-line-update))
>> --8<---------------cut here---------------end--------------->8---
> Where do you run the above code?  It should work but only if you run it
> from within the buffer whose mode-line you want to modify.
> Otherwise you may simply be changing the mode-line-format variable of
> some other buffer(s).
Indeed, i have to specify:

--8<---------------cut here---------------start------------->8---
  (with-current-buffer (with-selected-window
--8<---------------cut here---------------end--------------->8---

instead of

--8<---------------cut here---------------start------------->8---
  (with-current-buffer (current-buffer)
--8<---------------cut here---------------end--------------->8---

Which use the minibuffer only with gnus buffers.
In other place in emacs it use the current-buffer of the selected window
before entering the minibuffer.

A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]