emacs-devel
[Top][All Lists]
Advanced

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

Re: command remapping problem


From: Richard M. Stallman
Subject: Re: command remapping problem
Date: Mon, 30 Jan 2006 13:46:24 -0500

    (define-key my-map [remap scroll-up] my-scroll-up)

    The `scroll-up' binding for `C-v' is remapped to `my-scroll-up', but
    the `scroll-up' binding for [next] is not remapped to `my-scroll-up'.

Given that incomplete example, I cannot see why that would happen.
However, I tried an experiment,

    (define-key lisp-mode-map [remap scroll-up] 'my-scroll-up)

    (defun my-scroll-up ()
      (interactive)
      (message "Foo")
      (scroll-up))

and it seems to be true that this kind of remap only applies
to bindings in the same keymap that contains the remap.
In that example, the remapping did not apply to C-v OR to <next>.

This seems to be a bug.  The documentation in the Lisp Manual
clearly says that the remap ought to apply to any binding
that yields the command that has been remapped.

Can someone please debug this, then ack?




reply via email to

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