[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus + Gmail + IMAP
From: |
Eli Zaretskii |
Subject: |
Re: Gnus + Gmail + IMAP |
Date: |
Wed, 01 Jul 2015 18:20:48 +0300 |
> Date: Tue, 30 Jun 2015 22:45:39 +0200
> From: Alexander Shukaev <haroogan@gmail.com>
> Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
>
> I think I know the answer:
>
> format-time-string uses a temporary buffer,
> which is then killed when no longer needed. That call to kill-buffer
> invokes your buffer-list-update-hook again, thus the infinite
> recursion.
>
> I think you need to modify your
>
> buffer-list-update-hook to ignore
> temporary buffers, those whose names begin with a space.
>
>
>
> If that is the case, then why when I simply select some other window via
> `select-window', which also runs the `buffer-list-update-hook', which (1)
> runs
> the `format-time-string' for `minibuffer-line', (2) runs `format-mode-line'
> for
> `minibuffer-line', the recursion does not happen?
Are you sure format-time-string is run in that case?
And calling select-window runs a different hook, doesn't it?
Anyway, do I really have to explain everything? isn't it enough to
suggest a solution (assuming it is a solution)?
> I've also tried to run `format-time-string' manually just now and it didn't
> entail recursion on its own.
That's expected, since format-time-string needs to run as part of your
hook, not interactively, otherwise the recursion won't happen.