emacs-devel
[Top][All Lists]
Advanced

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

Re: minor mode map question


From: Johan Bockgård
Subject: Re: minor mode map question
Date: Mon, 26 Feb 2007 19:04:49 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> I wish that you could provide, as the cdr of an entry to
> `minor-mode-map-alist', an expression to be evaled to a keymap
> value, or perhaps a function that is called to return a keymap
> value. That would obviate needing to delete and re-add an entry,
> just to ensure that the alist is up-to-date whenever the keymap
> changes. It seems a bit weird to me that `minor-mode-map-alist' is
> so static, given how dynamic Emacs is otherwise. Why not use a
> keymap-valued variable or keymap-returning function here, instead of
> an actual keymap?

(info "(elisp)Controlling Active Maps")

 -- Variable: minor-mode-map-alist
    [...]
    The CDR can be either a keymap (a list) or a symbol whose function
    definition is a keymap.

-- 
Johan Bockgård





reply via email to

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