[Top][All Lists]
[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
- occur-hook changing the current buffer, Juanma Barranquero, 2005/06/20
- Re: occur-hook changing the current buffer, Stefan Monnier, 2005/06/21
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/21
- Re: occur-hook changing the current buffer,
Stefan Monnier <=
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/22
- Re: occur-hook changing the current buffer, Miles Bader, 2005/06/22
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/22
- Re: occur-hook changing the current buffer, Miles Bader, 2005/06/22
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/22
- Re: occur-hook changing the current buffer, Juri Linkov, 2005/06/22
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/22
- Re: occur-hook changing the current buffer, Miles Bader, 2005/06/22
- Re: occur-hook changing the current buffer, Juanma Barranquero, 2005/06/23
- Re: occur-hook changing the current buffer, Emilio Lopes, 2005/06/23