emacs-devel
[Top][All Lists]
Advanced

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

Re: Add M-x occur to the menu-bar


From: Andreas Schwab
Subject: Re: Add M-x occur to the menu-bar
Date: Fri, 13 Feb 2004 21:58:35 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> One of the classic pitfalls of make-variable-buffer-local which your code
> suffers from is the following:
> Say I change diff-mode to do
>
>    (setq compilation-next-error-function 'diff-foo)
>
> just like I intend to.  Now the behavior will be either to set the local or
> the global vriable depending on whether or not compile.el has already
> been loaded.  And no: requiring compile.el is not an acceptable option.

This can be fixed with

;;;###autoload (make-variable-buffer-local 'compilation-next-error-function)

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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