emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: occur-hook changing the current buffer


From: Stefan Monnier
Subject: Re: occur-hook changing the current buffer
Date: Tue, 21 Jun 2005 23:34:09 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> Sounds like a serious bug.  Such bugs can lead to loss of data.
> Does that mean that you agree that occur mode should run occur-hook via

No, it means I agree that your code is buggy and should thus be fixed.

>   (save-current-buffer
>     (run-hooks 'occur-hook))

Once your code is fixed this is not needed any more.  If the occur-hook is
expected to set-buffer in most/many cases, it might make sense, but
otherwise it doesn't.


        Stefan




reply via email to

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