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: Tue, 14 Aug 2012 19:12:38 +0100 (BST) Message-ID: <87628lpcko@ch.ristopher.com> References: <878vdme7jd@ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1344968018 31771 80.91.229.3 (14 Aug 2012 18:13:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2012 18:13:38 +0000 (UTC) To: 12174@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 14 20:13:37 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 1T1LcQ-0003rp-9M for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 20:13:30 +0200 Original-Received: from localhost ([::1]:41007 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1LcP-0007VP-8w for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Aug 2012 14:13:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1LcL-0007MB-Hz for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:13:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1LcJ-0003Jm-O5 for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:13:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1LcJ-0003JW-Kb for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:13:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1Lkg-0007mG-4N for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:22: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: Tue, 14 Aug 2012 18:22: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.134496848629848 (code B ref -1); Tue, 14 Aug 2012 18:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2012 18:21:26 +0000 Original-Received: from localhost ([127.0.0.1]:56812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Lk6-0007lN-20 for submit@debbugs.gnu.org; Tue, 14 Aug 2012 14:21:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43526) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1Lk3-0007lF-L1 for submit@debbugs.gnu.org; Tue, 14 Aug 2012 14:21:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Lbf-0003FS-HG for submit@debbugs.gnu.org; Tue, 14 Aug 2012 14:12:44 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:48992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Lbf-0003FO-Ej for submit@debbugs.gnu.org; Tue, 14 Aug 2012 14:12:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Lbe-0006c7-Ik for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:12:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Lbc-0003F3-OD for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:12:42 -0400 Original-Received: from ristopher.com ([146.185.21.93]:49638 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Lbc-0003Eb-FI for bug-gnu-emacs@gnu.org; Tue, 14 Aug 2012 14:12:40 -0400 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 5658D20CB8; Tue, 14 Aug 2012 19:12:38 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1344967958; bh=RAVP9Q0JY+2VC5YAjXUtO65qGWEUQXm7PV8MsG0k6jc=; h=From:To:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=qHoYccyH7QYFW6UsfHKNDjy8wroTX7sC7YArQzmHFIVvRNJfxu7KEe5EP4D1gWBdn 6kWnTjMgcUrU+zoQonlV07Not2kB3QyknlyDRy1/IjnbOXcmq0JIKedYSRG3lhDCGn JFgwDmN4ZTc+5rQTpcKfLu+HUt5F30f6n67vL2jo= In-Reply-To: <878vdme7jd@ch.ristopher.com> (Christopher Schmidt's message of "Fri, 10 Aug 2012 22:55:42 +0100 (BST)") 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:63173 Archived-At: --=-=-= Content-Type: text/plain Christopher Schmidt writes: > Here is a patch that abbreviates non-symbol remap targets with "??". > This is consistent with what describe-bindings displays. A sobering thought - ?? does not need to be quoted. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=help-fns--key-bindings-2.diff === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2012-08-14 12:38:11 +0000 +++ lisp/ChangeLog 2012-08-14 13:46:05 +0000 @@ -1,3 +1,8 @@ +2012-08-14 Christopher Schmidt + + * help-fns.el (help-fns--key-bindings): Abbreviate non-symbol + remap targets with ?? (Bug#12174). + 2012-08-14 Dmitry Gutov * progmodes/ruby-mode.el: Improve percent literals (bug#6286). === modified file 'lisp/help-fns.el' --- lisp/help-fns.el 2012-08-06 21:05:48 +0000 +++ lisp/help-fns.el 2012-08-14 13:44:48 +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) "'") + "??")) + (princ ".\n")) (when keys (princ (if remapped --=-=-= Content-Type: text/plain Please commit and/or close this bug report. Christopher --=-=-=--