[Top][All Lists]

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

Re: address@hidden: Info on define-minor-mode - :init-valueor :initial-v

From: Luc Teirlinck
Subject: Re: address@hidden: Info on define-minor-mode - :init-valueor :initial-value?]
Date: Sun, 31 Jul 2005 20:47:46 -0500 (CDT)

Richard Stallman wrote:

   Do you mean, that sets up the timer?


   Do you mean activating and canceling the timer?


         But every so often the feature
       will be mysteriously silently enabled, when some file is silently
       loaded, for instance by Custom.

   The variable could have three states: an active timer, an inactive
   timer, and nil meaning no timer has been set.  The set function could
   create the timer only if the variable is nil.

That sounds complex, but anyway, the situation with timers is just one
example among many.  Using custom-initialize-set or
custom-initialize-default completely solves the timer problem as I
pointed out, so there is no need to come up with a more complex solution.



reply via email to

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