From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Sun, 30 Apr 2006 10:26:43 +0200 Message-ID: <17492.29891.137186.739521@parhasard.net> References: <17491.34779.959316.484740@parhasard.net> <87ejzgezk8.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146385621 14360 80.91.229.2 (30 Apr 2006 08:27:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 08:27:01 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 30 10:27:00 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 1Fa7Ga-0002CA-Vo for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 10:26:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fa7Ga-00031W-DO for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 04:26:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fa7GO-00030T-D0 for emacs-devel@gnu.org; Sun, 30 Apr 2006 04:26:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fa7GN-000301-UZ for emacs-devel@gnu.org; Sun, 30 Apr 2006 04:26:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fa7GN-0002zo-Q6 for emacs-devel@gnu.org; Sun, 30 Apr 2006 04:26:43 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fa7Jv-0003Bp-Ph for emacs-devel@gnu.org; Sun, 30 Apr 2006 04:30:23 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id 3CE338008C; Sun, 30 Apr 2006 09:26:43 +0100 (IST) Original-To: Stefan Monnier In-Reply-To: <87ejzgezk8.fsf-monnier+emacs@gnu.org> X-Mailer: VM 7.17 under 21.5 (beta25) "eggplant" (+CVS-20060325) XEmacs Lucid X-Echelon-distraction: Bubba the Love Sponge GSA Sugar Grove NRO GRS forschung 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:53647 Archived-At: Ar an nao=C3=BA l=C3=A1 is fiche de m=C3=AD Aibr=C3=A9an, scr=C3=ADobh S= tefan Monnier:=20 > There are two known workarounds: > - encode your file in utf-8. > - use an elisp expression like (decode-char 'ucs ). > Neither of them is quite what you want, but I've found them good enoug= h for > the cases I've had to deal with. Sure, and encoding your file as ISO-8859-1 and using (char-to-int #xff) would be possible were the escapes for Latin-1 not available. I will certainly be using both your approaches for years to come, since making m= y code pointlessly incompatible with existing editors is not a good idea. T= he \u syntax is sugar, but it is used quite a bit in those languages that ha= ve it, which seems to testify to its usefulness. --=20 In the beginning God created the heavens and the earth. And God was a bug-eyed, hexagonal smurf with a head of electrified hair; and God said: =E2=80=9CSi, mi chiamano Mimi...=E2=80=9D