[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: command remapping problem
From: |
Kim F. Storm |
Subject: |
Re: command remapping problem |
Date: |
Tue, 31 Jan 2006 14:56:41 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Richard M. Stallman" <address@hidden> writes:
> (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>.
Are you sure you are in a buffer which uses lisp-mode-map ?
If I execute the above commands and visit simple.el, it works
for me.
>
> 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?
IW4M.
--
Kim F. Storm <address@hidden> http://www.cua.dk