emacs-devel
[Top][All Lists]
Advanced

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

Re: doc on define-minor-mode hook variable(s)


From: Stefan Monnier
Subject: Re: doc on define-minor-mode hook variable(s)
Date: Mon, 06 Mar 2006 14:09:14 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> In the past, hook variables were used, and the new notion that a hook need
>> not be associated with a variable should be explained in the doc.

> A hook IS a variable--that is to say, a symbol whose value is used.
> It is a mistake to think that a hook is not a variable.

Either way it's a mistake: when people think of a hook as a variable, they
think that (boundp 'foo-hook) can tell them whether the hook exists or not.

So I prefer to think that a hook is its own kind of object, which happens to
be implemented using a variable.


        Stefan




reply via email to

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