From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6882: 24.0.50; C-h does not show remap bindings Date: Wed, 18 Aug 2010 11:06:20 -0700 Message-ID: <4D0F14CBF03E4CA2A892AABA93FB0B21@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282155714 15083 80.91.229.12 (18 Aug 2010 18:21:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 18:21:54 +0000 (UTC) To: 6882@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 20:21:53 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OlnG8-0004Y5-2d for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 20:21:51 +0200 Original-Received: from localhost ([127.0.0.1]:45710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oln9V-0003B9-0N for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 14:14:17 -0400 Original-Received: from [140.186.70.92] (port=59470 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oln9J-0003A4-Us for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:14:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oln9E-0003ac-8n for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:14:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47949) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln9E-0003aY-7P for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:14:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oln2T-0006hT-Kc; Wed, 18 Aug 2010 14:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Aug 2010 18:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128215477325741 (code B ref -1); Wed, 18 Aug 2010 18:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2010 18:06:13 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln1g-0006h8-PV for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:06:13 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln1f-0006h3-2w for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:06:11 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:55297) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oln2h-0004P0-TB for submit@debbugs.gnu.org; Wed, 18 Aug 2010 14:07:16 -0400 Original-Received: from [140.186.70.92] (port=33720 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oln2g-0001rW-Dh for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oln2c-0002Wl-1l for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:14 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:65141) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oln2b-0002WU-TC for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 14:07:10 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o7II75dK012167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Aug 2010 18:07:08 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o7IGIROK007308 for ; Wed, 18 Aug 2010 18:07:04 GMT Original-Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 508694841282154779; Wed, 18 Aug 2010 11:06:19 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Aug 2010 11:06:19 -0700 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: Acs/AA9o1STanPCKTyKu4bSPclA/9w== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 Aug 2010 14:07:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39612 Archived-At: emacs -Q (define-key ctl-x-map "p" bookmark-map) (defvar foo-mode-map (make-sparse-keymap) "") (define-minor-mode foo-mode "..." nil " FOO") (define-key bookmark-map "3" 'forward-char) (define-key bookmark-map "4" 'previous-line) (define-key foo-mode-map [remap forward-char] 'forward-line) (define-key foo-mode-map "\C-xp4" 'next-line) M-x foo-mode C-h k C-x p 3 ; forward-line (correct) C-h k C-x p 4 ; next-line (correct) C-x p C-h ; incomplete - `C-x p 3' is not listed The `C-x p 4' binding in `foo-mode-map' is listed by `C-x p C-h', but there is no binding listed in `foo-mode-map' for the remapped command `forward-char'. You should either see a `C-x p 3' or (more precisely) a binding listed in `foo-mode-map'. Better would be to see both. You will perhaps argue that command `forward-line' is not actually bound to `3' on the prefix key `C-x p'. But from a user perspective it can be argued that it is. When you do `C-h k C-x p 3', for example, the output says: "C-x p 3 runs the command forward-line... It is bound to C-f, C-x p 3." That second line is a lie - the command is not actually bound to `C-x p 3'. But it is a useful lie. To be correct, we would say "It is bound to C-f, ." But giving the resulting key is helpful. For both `C-h k' and C-h, the most helpful might be to show both and `C-x p 3'. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-08-16 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'