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: Richard M. Stallman
Subject: Re: occur-hook changing the current buffer
Date: Thu, 23 Jun 2005 12:54:26 -0400

    Why setting the not-modified flag comes after running a hook?  AFAIK,
    there is a convention that run-hook should be the last element in the
    function body, so users could override every default settings of the
    function, including in this particular case setting the modification flag.

There is no such convention, and many hooks are run from the middle
of a function.  However, you may have a valid point that, all else
being equal, it is usually better to run the hook at the end.




reply via email to

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