From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: command remapping problem Date: Mon, 30 Jan 2006 13:46:24 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1138647694 26876 80.91.229.2 (30 Jan 2006 19:01:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2006 19:01:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 30 20:01:32 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 1F3eHC-0001ht-2K for ged-emacs-devel@m.gmane.org; Mon, 30 Jan 2006 20:01:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3eK9-0006SI-Kd for ged-emacs-devel@m.gmane.org; Mon, 30 Jan 2006 14:04:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3e6R-0007Zl-NO for emacs-devel@gnu.org; Mon, 30 Jan 2006 13:50:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3e6R-0007Z2-1A for emacs-devel@gnu.org; Mon, 30 Jan 2006 13:50:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3e6Q-0007Yp-TL for emacs-devel@gnu.org; Mon, 30 Jan 2006 13:50:14 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F3e4m-0002s2-Jv for emacs-devel@gnu.org; Mon, 30 Jan 2006 13:48:32 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1F3e2i-0004SC-22; Mon, 30 Jan 2006 13:46:24 -0500 Original-To: "Drew Adams" In-reply-to: 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:49778 Archived-At: (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 . 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?