emacs-devel
[Top][All Lists]
Advanced

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

Re: Generalizing find-definition


From: Stefan Monnier
Subject: Re: Generalizing find-definition
Date: Wed, 19 Nov 2014 09:27:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> +(defvar find-definition-function nil
>> +(defvar find-definition-identifier-function nil
> These variables will be set by the major mode, so they should be
> buffer-local; use defvar-local.

Bad idea: if the major modes set those with `setq' rather than with
`setq-local', they'll end up setting the global value if the `setq'
happens to be run before loading find-definition.el (which is quite
possible since find-definition.el will typically be loaded via an
autoload rather than via a `require').


        Stefan



reply via email to

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