[Top][All Lists]

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

Re: file-name-shadow-mode

From: Luc Teirlinck
Subject: Re: file-name-shadow-mode
Date: Sun, 20 Mar 2005 10:02:24 -0600 (CST)

Stefan Monnier wrote:

   This is because if the minor mode's code needs to be run to properly set the
   value, you can't run it safely before the whole file is loaded (since the
   minor mode's code might call functions defined further down in the file).

That is not really different from any other defcustom with a :set
function:  you have to define all functions used by the :set function
before the defcustom.  Sometimes these functions themselves refer to
the defcustomed variable.  Then you have to do:

(defvar var)
(defcustom var...

to avoid compiler warnings.

Note that if you do (defvar foo (bar ...)), then bar has to be defined
before foo too.  I do not see where the problem is.



reply via email to

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