From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#10857: ucs-insert deals inconsistently with errors Date: Wed, 22 Feb 2012 10:03:42 +0100 Message-ID: References: <87obstt2n9.fsf@mail.jurta.org> <87ehtnwwy7.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329901500 15197 80.91.229.3 (22 Feb 2012 09:05:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 09:05:00 +0000 (UTC) Cc: Juanma Barranquero , 10857@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 22 10:04:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S088A-0002Ov-D5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2012 10:04:58 +0100 Original-Received: from localhost ([::1]:56701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0889-0001Ma-SI for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2012 04:04:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0882-0001MS-MG for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 04:04:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S087u-0008OK-HL for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 04:04:50 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S087u-0008OG-Eb for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 04:04:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S08AB-0004K7-CE for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2012 04:07:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2012 09:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10857 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10857-submit@debbugs.gnu.org id=B10857.132990157416555 (code B ref 10857); Wed, 22 Feb 2012 09:07:01 +0000 Original-Received: (at 10857) by debbugs.gnu.org; 22 Feb 2012 09:06:14 +0000 Original-Received: from localhost ([127.0.0.1]:49961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S089M-0004Iv-SH for submit@debbugs.gnu.org; Wed, 22 Feb 2012 04:06:13 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:36427) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S089K-0004Ie-TE for 10857@debbugs.gnu.org; Wed, 22 Feb 2012 04:06:12 -0500 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3TtCRL6QgXz4KNCX; Wed, 22 Feb 2012 10:03:42 +0100 (CET) X-Auth-Info: XGqNDgGhrkYR2ka/c7O6VCmh9pV7QarJYLY1XTLT8Cs= Original-Received: from igel.home (ppp-88-217-119-185.dynamic.mnet-online.de [88.217.119.185]) by mail.mnet-online.de (Postfix) with ESMTPA id 950BB1C0010C; Wed, 22 Feb 2012 10:03:42 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 55100CA29F; Wed, 22 Feb 2012 10:03:42 +0100 (CET) X-Yow: Yow! I'm having a quadrophonic sensation of two winos alone in a steel mill! In-Reply-To: <87ehtnwwy7.fsf@mail.jurta.org> (Juri Linkov's message of "Wed, 22 Feb 2012 02:09:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) 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:57092 Archived-At: Juri Linkov writes: > This should be fixed by this patch: > > === modified file 'lisp/international/mule-cmds.el' > --- lisp/international/mule-cmds.el 2012-02-10 19:35:28 +0000 > +++ lisp/international/mule-cmds.el 2012-02-22 00:07:34 +0000 > @@ -2949,7 +2949,7 @@ (defun read-char-by-name (prompt) > '(metadata (category . unicode-name)) > (complete-with-action action (ucs-names) string pred)))))) > (cond > - ((string-match-p "^[0-9a-fA-F]+$" input) > + ((string-match-p "\\`[0-9a-fA-F]+\\'" input) > (string-to-number input 16)) > ((string-match-p "^#" input) This should also use \`. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."