[Top][All Lists]

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

Re: Generalizing find-definition

From: Ivan Shmakov
Subject: Re: Generalizing find-definition
Date: Wed, 19 Nov 2014 14:51:23 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> Stefan Monnier <address@hidden> writes:

 >>> +(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').

        Can’t we ;;;###autoload the defvar-local forms themselves then?

FSF associate member #7257  np. Benediction — Jami Sieber   … B6A0 230E 334A

reply via email to

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