emacs-devel
[Top][All Lists]
Advanced

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

Re: occur-mode-hook run too early to be useful


From: Stefan Monnier
Subject: Re: occur-mode-hook run too early to be useful
Date: Wed, 28 Aug 2002 11:32:53 -0400

> How about this:  Rename occur-mode to occur-setup or occur-initialize
> or occur-frobnicate, make a new function occur-mode which just sets up
> keymaps and such stuff, call that function at the end of occur-1 and
> run the hook from there.  WDYT?

That's pretty much already what happens except for the `call at the end'
because occur sets up buffer-local variables which would be killed
by the `kill-all-local-variables', so it needs to setup the mode first
(or to mark them as temporary-local which might be the right thing
to do anyway for all I know).


        Stefan





reply via email to

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