From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Sat, 06 May 2006 02:15:12 +0300 Organization: JURTA Message-ID: <8764kkawsf.fsf@jurta.org> References: <17491.34779.959316.484740@parhasard.net> <17492.29148.246942.842300@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146871795 14731 80.91.229.2 (5 May 2006 23:29:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 May 2006 23:29:55 +0000 (UTC) Cc: kehoea@parhasard.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 06 01:29:50 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fc9jv-00014k-Tn for ged-emacs-devel@m.gmane.org; Sat, 06 May 2006 01:29:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9jv-0003Xb-BW for ged-emacs-devel@m.gmane.org; Fri, 05 May 2006 19:29:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fc9jh-0003XD-6F for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fc9jf-0003Wk-0m for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fc9je-0003WZ-SI for emacs-devel@gnu.org; Fri, 05 May 2006 19:29:22 -0400 Original-Received: from [217.25.160.1] (helo=relay1.binet.com.ua) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fc9js-0008Hv-TC; Fri, 05 May 2006 19:29:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by relay1.binet.com.ua (Postfix) with ESMTP id 7888777D70; Sat, 6 May 2006 02:29:18 +0300 (EEST) Original-Received: from mail.binet.com.ua (i37.dialup.binet.com.ua [217.25.161.101]) by relay1.binet.com.ua (Postfix) with ESMTP id 2452777D57; Sat, 6 May 2006 02:29:08 +0300 (EEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sun, 30 Apr 2006 16:53:55 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by ClamAv at binet.com.ua X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53987 Archived-At: > They are both fixed-length expressions, which is good, because > people get into the habit of typing "\u0123As I walked out one > evening" instead of the more disastrous "\u123As I walked out one > evening". > > I see, you are talking about using them in strings. > Still, I don't like having both \u and \U--it is ugly. Are there reasons not to use Perl's notation for Unicode characters, i.e. "\x{...}"? The Unicode code for the desired character, is placed in the braces in hexadecimal, and has no fixed length. Examples: "\x{DF}", "\x{0448}", "\x{001D0ED}". I think this notation is well suitable for Emacs, because \x{...} indicates that a hexadecimal value is expected in the braces. And in the Unicode branch it will be just another way to specify a hexadecimal value with a variable length. -- Juri Linkov http://www.jurta.org/emacs/