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: Juri Linkov
Subject: Re: occur-hook changing the current buffer
Date: Mon, 27 Jun 2005 02:22:38 +0300
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> I've moved the code that sets `buffer-read-only' and the
> buffer-modified flag to just before running `occur-hook'. This won't
> fix the problem Jason and I are reporting, but at least reduces the
> probability of someone losing data.
>
> Any fix of the problem, or better reorganization of `occur-1' , are of
> course welcome.

Perhaps this change should be documented in the `Incompatible
Lisp Changes in Emacs 22.1' in etc/NEWS.  When users have hooks
that modify the contents of the *Occur* buffer then these hooks
will fail after the read-only flag was set on the *Occur* buffer.

A similar change made in compile.el a half year ago (that sets the
read-only flag before running `compilation-mode-hook') could be
mentioned in the same section of etc/NEWS too.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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