> 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/ _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel