emacs-devel
[Top][All Lists]
Advanced

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

Re: Getting more info on a variable in Customize buffers


From: Stefan Monnier
Subject: Re: Getting more info on a variable in Customize buffers
Date: Wed, 05 Jan 2005 15:25:42 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>                                or to use the future keymap-support for Custom,

> The way to define this for Custom would be with :type 'keymap,
> so it doesn't particularly relate to defkeymap.

Of course it does: if you use `defkeymap', changing the definition of the
defkeymap macro is all that's needed to take advantage of ":type 'keymap"
when it finally appears.  With the usual `defvar', it requires changing each
and every `defvar'.  And if it later turns out that a (defcustom foo
... :type 'keymap) is not enough, you'll have to go through every keymap
definition all over again.

You seem to consider the cost of introducing a macro `defkeymap' to be
enormous (large enough that it needs very significant benefits to justify
itself).  The macro would probably be about 20 lines long and phasing in its
use is easy, so I see the cost as being negligible.


        Stefan




reply via email to

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