From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Mon, 01 May 2006 21:03:45 +0200 Message-ID: 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=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1146510327 22662 80.91.229.2 (1 May 2006 19:05:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 May 2006 19:05:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 21:05:25 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 1Fadht-00066I-S5 for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 21:05:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fadht-0007B8-A3 for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 15:05:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fadhg-0007Au-69 for emacs-devel@gnu.org; Mon, 01 May 2006 15:05:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fadhd-0007AU-NH for emacs-devel@gnu.org; Mon, 01 May 2006 15:05:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fadhd-0007AQ-Gk for emacs-devel@gnu.org; Mon, 01 May 2006 15:05:01 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FadlV-0001o9-9P for emacs-devel@gnu.org; Mon, 01 May 2006 15:09:01 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FadhV-00062r-Eg for emacs-devel@gnu.org; Mon, 01 May 2006 21:04:53 +0200 Original-Received: from dslb-084-058-171-238.pools.arcor-ip.net ([84.58.171.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 21:04:53 +0200 Original-Received: from alkibiades by dslb-084-058-171-238.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 21:04:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-058-171-238.pools.arcor-ip.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:53742 Archived-At: Richard Stallman writes: > > I think it would be better to put an explicit terminator into > > the construct. Perhaps #. So you would write "\u123#As I walked" > > There is already the possibility to use `\ ' as a terminator. > > That is true. The worry is that people might forget and run the > unicode constant together with the following text. People might not > remember to use `\ ' when it is needed, if they usually don't need it. > > But it is no great disaster to make such an error--it will be obvious > when you see the output. So perhaps there's no need to do anything > to avoid the problem. At any rate the syntax for \u and \x should be entirely in parallel, IMNSHO. > One other question occurs to me. In the Unicode branch, > doesn't \x do this job? If so, \u would be redundant once we > merge in that code. It would have no lasting purpose. There would still be a conceptual difference. \x refers to the internal representation of a character in Emacs, while \u refers to an abstract character. In the Unicode branch the hex numbers would be the same in both cases, but conceptually it is still different. Like writing `?a' in Lisp code instead of just `97' or like using `(null list)' instead of `(not list)'. Oliver -- 12 Floréal an 214 de la Révolution Liberté, Egalité, Fraternité!