From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#25641: 25.1; insert-char function inconsistency Date: Wed, 08 Feb 2017 14:15:00 +0100 Message-ID: <87inok7rjf.fsf@rosalinde> References: <83tw8656gf.fsf@gnu.org> <87a89y6ifh.fsf@rosalinde> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486559776 25044 195.159.176.226 (8 Feb 2017 13:16:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 8 Feb 2017 13:16:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25641@debbugs.gnu.org To: Pablo Mercader =?UTF-8?Q?Alc=C3=A1ntara?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 08 14:16:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbS6S-00066D-8h for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Feb 2017 14:16:08 +0100 Original-Received: from localhost ([::1]:59446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbS6X-0007bT-TE for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Feb 2017 08:16:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbS6R-0007bM-AH for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 08:16:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbS6M-00032H-Ai for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 08:16:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cbS6M-00032D-7c for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 08:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cbS6L-0000nf-WC for bug-gnu-emacs@gnu.org; Wed, 08 Feb 2017 08:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Feb 2017 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25641 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25641-submit@debbugs.gnu.org id=B25641.14865597113011 (code B ref 25641); Wed, 08 Feb 2017 13:16:01 +0000 Original-Received: (at 25641) by debbugs.gnu.org; 8 Feb 2017 13:15:11 +0000 Original-Received: from localhost ([127.0.0.1]:59678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbS5W-0000mS-ER for submit@debbugs.gnu.org; Wed, 08 Feb 2017 08:15:10 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:55596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbS5V-0000mG-3a for 25641@debbugs.gnu.org; Wed, 08 Feb 2017 08:15:09 -0500 Original-Received: from rosalinde ([62.214.227.193]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LyzW8-1cOTXp1sTQ-014Glo; Wed, 08 Feb 2017 14:15:01 +0100 In-Reply-To: ("Pablo Mercader \=\?utf-8\?Q\?Alc\=C3\=A1ntara\=22's\?\= message of "Tue, 7 Feb 2017 20:45:43 -0400") X-Prov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2Kk5HN3w9o X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:129120 Archived-At: On Tue, 7 Feb 2017 20:45:43 -0400 Pablo Mercader Alc=C3=A1ntara wrote: > I had the problem because the first time I typed exactly what the help > buffer told me. But later I saw that there were different "BELL" > characters with different terminations. The problem is that the > information in the help screen should say C-x 8 RET BELL (BEL) for one > character and C-x 8 RET BELL for the other. I agree. The following patch does that (the special-casing here has a precedent in ucs-names in mule-cmds.el, from which the comment is copied): diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 3971dbb..a1efb67 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el @@ -617,7 +617,14 @@ describe-char "input method") (list (let ((name - (or (get-char-code-property char 'name) + (or (when (=3D char 7) + ;; Special case for "BELL" which is + ;; apparently the only char which + ;; doesn't have a new name and whose + ;; old-name is shadowed by a newer char + ;; with that name. + (car (rassoc char ucs-names))) + (get-char-code-property char 'name) (get-char-code-property char 'old-nam= e)))) (if (and name (assoc-string name (ucs-names))) (format Eli, what do you say? Steve Berman