emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: substitute-key-definition problem with menus in Emacs 21


From: Kim F. Storm
Subject: Re: substitute-key-definition problem with menus in Emacs 21
Date: Mon, 11 Oct 2004 00:32:36 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

> Do these replacement functions do the job?
>
> (defun substitute-key-definition (olddef newdef keymap &optional oldmap 
> prefix)

I haven't studied your code, but IIRC we discussed some time ago whether
we could use 

  (define-key keymap [remap olddef] newdef)

for this.  I don't recall what the conclusion was.

There may well be reasons why this doesn't always work -- but maybe we
should at least mention the alternative of using command remapping in
the doc string for substitute-key-definition.

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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