From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20522: 25.0.50; =?UTF-8?Q?=E2=80=98C-u?= C-x =?UTF-8?Q?=3D=E2=80=99?= output, =?UTF-8?Q?=E2=80=98to_?= =?UTF-8?Q?input=E2=80=99?= field Date: Thu, 07 May 2015 17:45:18 +0300 Message-ID: <838ud0qwe9.fsf@gnu.org> References: <988c8ea5-e184-4d53-99d6-cd354006f45b@default> <87h9rokgm8.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1431009981 27806 80.91.229.3 (7 May 2015 14:46:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2015 14:46:21 +0000 (UTC) Cc: 20522@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 16:46:11 2015 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 1YqN3z-0003lt-3D for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2015 16:46:11 +0200 Original-Received: from localhost ([::1]:51559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqN3y-0008Ul-IN for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2015 10:46:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqN3u-0008Ue-Qa for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 10:46:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqN3r-0004ah-El for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 10:46:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqN3r-0004ab-Ar for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 10:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YqN3q-0005AW-W7 for bug-gnu-emacs@gnu.org; Thu, 07 May 2015 10:46:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 May 2015 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20522 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20522-submit@debbugs.gnu.org id=B20522.143100991719811 (code B ref 20522); Thu, 07 May 2015 14:46:02 +0000 Original-Received: (at 20522) by debbugs.gnu.org; 7 May 2015 14:45:17 +0000 Original-Received: from localhost ([127.0.0.1]:37920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqN36-00059S-8w for submit@debbugs.gnu.org; Thu, 07 May 2015 10:45:17 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:59615) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YqN34-00059C-2Y for 20522@debbugs.gnu.org; Thu, 07 May 2015 10:45:15 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NNZ00F00I84MM00@a-mtaout21.012.net.il> for 20522@debbugs.gnu.org; Thu, 07 May 2015 17:45:07 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NNZ00FM1IB7KE30@a-mtaout21.012.net.il>; Thu, 07 May 2015 17:45:07 +0300 (IDT) In-reply-to: <87h9rokgm8.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:102569 Archived-At: > From: Ivan Shmakov > Date: Thu, 07 May 2015 07:10:23 +0000 > > --- a/lisp/descr-text.el > +++ b/lisp/descr-text.el > @@ -618,7 +618,9 @@ defun describe-char (pos &optional buffer) > 'help-args '(,current-input-method)) > "input method") > (list > - "type \"C-x 8 RET HEX-CODEPOINT\" or \"C-x 8 RET > NAME\""))))) > + (format > + "type \"C-x 8 RET %04x\" or \"C-x 8 RET %s\"" ^^^^ I see no need to tell users to type at least 4 hex digits: "C-x 8 RET" accepts even one digit. So I think we should use %x here. > + char (get-char-code-property char 'name))))))) Not every Unicode codepoint has a name, so get-char-code-property could return nil. E.g., try with any codepoint between zero and #x1f, inclusive. When that happens, we should try 'old-name' instead, and if that returns nil as well (try #x99, for example), I think the "by name" part should be omitted from the output of describe-char. Thanks.