From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10857: ucs-insert deals inconsistently with errors Date: Tue, 21 Feb 2012 02:25:47 +0100 Message-ID: References: <87obstt2n9.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329787621 25932 80.91.229.3 (21 Feb 2012 01:27:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2012 01:27:01 +0000 (UTC) Cc: 10857@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 02:27:00 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 1RzeVK-0001hK-AZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2012 02:26:54 +0100 Original-Received: from localhost ([::1]:33683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzeVJ-00015a-IL for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Feb 2012 20:26:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzeVF-00014z-PD for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2012 20:26:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzeVE-0006tL-Pt for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2012 20:26:49 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzeVE-0006tG-LP for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2012 20:26:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RzeXN-0000AP-T1 for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2012 20:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2012 01:29: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: Original-Received: via spool by 10857-submit@debbugs.gnu.org id=B10857.1329787732619 (code B ref 10857); Tue, 21 Feb 2012 01:29:01 +0000 Original-Received: (at 10857) by debbugs.gnu.org; 21 Feb 2012 01:28:52 +0000 Original-Received: from localhost ([127.0.0.1]:47918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzeXC-00009s-2n for submit@debbugs.gnu.org; Mon, 20 Feb 2012 20:28:51 -0500 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]:41701) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RzeX8-00009V-V8 for 10857@debbugs.gnu.org; Mon, 20 Feb 2012 20:28:48 -0500 Original-Received: by pbcwz7 with SMTP id wz7so6122733pbc.3 for <10857@debbugs.gnu.org>; Mon, 20 Feb 2012 17:26:27 -0800 (PST) Received-SPF: pass (google.com: domain of lekktu@gmail.com designates 10.68.237.232 as permitted sender) client-ip=10.68.237.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of lekktu@gmail.com designates 10.68.237.232 as permitted sender) smtp.mail=lekktu@gmail.com; dkim=pass header.i=lekktu@gmail.com Original-Received: from mr.google.com ([10.68.237.232]) by 10.68.237.232 with SMTP id vf8mr50676790pbc.50.1329787587263 (num_hops = 1); Mon, 20 Feb 2012 17:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=CtL3uyGNWK5vpM8TtpxJM2Cpfsi65wbBeY+K+qf2tGc=; b=vT7rGvxoRpEiKUiW+zT2wk4SlIptPA7jKpC0u88VVYB1njpC0jU8uYa1vvOuBxoaCn QaeUbho+Wm4FAVLPaqn6AunNt4vCoAwrADrE3nfKpXPMK9OwERkAikRrqE6YzCwKHjGM 29ko4iORjkUGgZ99cZbEAAGirXGn3if6Ky7DI= Original-Received: by 10.68.237.232 with SMTP id vf8mr41864578pbc.50.1329787587170; Mon, 20 Feb 2012 17:26:27 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Mon, 20 Feb 2012 17:25:47 -0800 (PST) In-Reply-To: <87obstt2n9.fsf@mail.jurta.org> 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:57039 Archived-At: On Tue, Feb 21, 2012 at 01:37, Juri Linkov wrote: > Wouldn't it be too weird for `read-char-by-name' to return "zzz" > when the purpose of this function is to return a character, > not a string the user typed. Yes. I don't think `read-char-by-name' should return "zzz", I think `ucs-insert' should not say the "nil" part. Perhaps just "Not a Unicode character". >> The second problem can be trivially fixed with >> (not (string-match-p "[^[:xdigit:]]" character)), > > In `read-char-by-name', the condition for this purpose is: > > =C2=A0(string-match-p "^[0-9a-fA-F]+$" input) They are equivalent, aren't they? But my point was that the docstring does not say what to expect in CHARACTER. =C2=A0 =C2=A0 Juanma