From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.bugs Subject: bug#12174: 24.1.50; C-h f and non-symbol remap targets Date: Wed, 15 Aug 2012 09:33:41 +0100 (BST) Message-ID: <87has4tuzb@ch.ristopher.com> References: <878vdme7jd@ch.ristopher.com> <87628lpcko@ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1345019666 8634 80.91.229.3 (15 Aug 2012 08:34:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 08:34:26 +0000 (UTC) To: 12174@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 10:34:27 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T1Z3a-0002RV-Kn for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 10:34:26 +0200 Original-Received: from localhost ([::1]:43131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z3Z-0000Ob-9V for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 04:34:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z3W-0000No-36 for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:34:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Z3U-0005WO-CQ for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:34:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z3U-0005WI-9A for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:34:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1ZBu-0003re-7X for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Schmidt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Aug 2012 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12174 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134502015414816 (code B ref -1); Wed, 15 Aug 2012 08:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Aug 2012 08:42:34 +0000 Original-Received: from localhost ([127.0.0.1]:57733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1ZBR-0003qu-18 for submit@debbugs.gnu.org; Wed, 15 Aug 2012 04:42:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34367) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1ZBO-0003qm-5j for submit@debbugs.gnu.org; Wed, 15 Aug 2012 04:42:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Z2w-0005TH-Ic for submit@debbugs.gnu.org; Wed, 15 Aug 2012 04:33:47 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:52536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z2w-0005TD-G5 for submit@debbugs.gnu.org; Wed, 15 Aug 2012 04:33:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z2v-0000ID-E5 for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:33:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Z2u-0005Sm-0i for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:33:45 -0400 Original-Received: from ristopher.com ([146.185.21.93]:49742 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Z2t-0005SZ-OV for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 04:33:43 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id D60B820CB8; Wed, 15 Aug 2012 09:33:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1345019622; bh=ZLvELi99pOXUFO91Q8eIUXPKN1lSnp5tG9sMAUW9gm8=; h=From:To:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=rAUQ65mFtBulXr5sH8JkPu8Q/UNX07VI9rHeFOIGX1PfHISWTaeAzfhSPjkz6gY31 GU3F0IFWx2c8p4KmhrBq9V+gVE0/l4EauLe4eZEc4bkCwOf75fPyldm23RA3Xid57q rk9XNYlm4ufam/D+IkYtaAJJSbz7dKl3ZxPzSwvQ= In-Reply-To: (Stefan Monnier's message of "Tue, 14 Aug 2012 22:38:10 -0400") Mail-Followup-To: bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63187 Archived-At: --=-=-= Content-Type: text/plain Stefan Monnier writes: > Actually, ?? is a bad choice, since it seems to imply that Emacs > doesn't even know what it's remapped to, whereas Emacs does know very > well, it just doesn't want to print it out in full because it would be > ugly and too verbose. So I suggest we replace "??" with something > like "an anonymous command". --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=help-fns--key-bindings-3.diff === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-08-15 07:58:34 +0000 +++ lisp/ChangeLog 2012-08-15 08:26:41 +0000 @@ -1,3 +1,8 @@ +2012-08-15 Christopher Schmidt + + * help-fns.el (help-fns--key-bindings): Abbreviate non-symbol + remap targets (Bug#12174). + 2012-08-15 Chong Yidong * frame.el (set-frame-font): Accept font objects. === modified file 'lisp/help-fns.el' --- lisp/help-fns.el 2012-08-06 21:05:48 +0000 +++ lisp/help-fns.el 2012-08-15 08:27:33 +0000 @@ -397,9 +397,11 @@ (if (member (event-modifiers (aref key 0)) '(nil (shift))) (push key non-modified-keys))) (when remapped - (princ "Its keys are remapped to `") - (princ (symbol-name remapped)) - (princ "'.\n")) + (princ "Its keys are remapped to ") + (princ (if (symbolp remapped) + (concat "`" (symbol-name remapped) "'") + "an anonymous command")) + (princ ".\n")) (when keys (princ (if remapped --=-=-= Content-Type: text/plain Christopher --=-=-=--