[Top][All Lists]

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

Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..)

From: Alex Schroeder
Subject: Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..)
Date: Tue, 10 Sep 2002 20:07:41 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.90 (i686-pc-linux-gnu)

Richard Stallman <address@hidden> writes:

>     > It would be better to generate a defvar plus whatever other stuff
>     > you need.
>     I prefer doing most of the work in functions rather than macros,
>     because if we change defkeymap in Emacs version X+1, then packages
>     compiled by the user in Emacs version X will call the new function,
>     and thus continue to work.  I had a lot of such problems with
>     easymenu.el.
> defvar does a number of things, and eval-defun-1 handles it specially,
> so please do generate a defvar.  It is ok to do the rest with a
> single function call.

I don't quite understand the reason for this.  Can you explain?  And
what is the important part -- that (defkeymap ...) expand into (progn
(defvar ...) (custom-declare-keymap ...))?


reply via email to

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