From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: command remapping problem Date: Tue, 31 Jan 2006 14:56:41 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138721788 7312 80.91.229.2 (31 Jan 2006 15:36:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 15:36:28 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 31 16:36:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3xWs-00058Y-Gb for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2006 16:34:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3xUa-0004pr-LF for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2006 10:32:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3waO-0008N1-Od for emacs-devel@gnu.org; Tue, 31 Jan 2006 09:34:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3wYW-0007d2-Bv for emacs-devel@gnu.org; Tue, 31 Jan 2006 09:32:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3w3y-0007OA-2W for emacs-devel@gnu.org; Tue, 31 Jan 2006 09:00:54 -0500 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F3w2L-0005a7-E2; Tue, 31 Jan 2006 08:59:13 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id C2846A5008D; Tue, 31 Jan 2006 14:57:37 +0100 (CET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Mon, 30 Jan 2006 13:46:24 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49813 Archived-At: "Richard M. Stallman" 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 . 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 http://www.cua.dk