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: Tue, 2 May 2006 09:00:52 +0200 Message-ID: <17495.932.70900.796282@parhasard.net> References: <17491.34779.959316.484740@parhasard.net> 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 1146553281 28900 80.91.229.2 (2 May 2006 07:01:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 07:01:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 09:01:18 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 1Faose-00041I-Ns for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 09:01:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Faose-0008Hx-CE for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 03:01:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaosQ-0008HN-G2 for emacs-devel@gnu.org; Tue, 02 May 2006 03:00:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaosP-0008Gq-6X for emacs-devel@gnu.org; Tue, 02 May 2006 03:00:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaosO-0008Gn-V3 for emacs-devel@gnu.org; Tue, 02 May 2006 03:00:52 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FaosV-0004eY-2H for emacs-devel@gnu.org; Tue, 02 May 2006 03:00:59 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id 2B0D78008C; Tue, 2 May 2006 08:00:52 +0100 (IST) Original-To: Kenichi Handa In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta25) "eggplant" (+CVS-20060325) XEmacs Lucid X-Echelon-distraction: MI6 GSGI NADIS Koancho PECSENC S.A.I.C. 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:53768 Archived-At: Ar an dara l=C3=A1 de m=C3=AD Bealtaine, scr=C3=ADobh Kenichi Handa:=20 > > + lisp_char =3D call2(intern("decode-char"), intern("ucs"), > > + make_number(i)); > > + >=20 > First of all, is it safe to call Lisp program in read_escape? Don't we > have to care about GC and buffer/string-data relocation? Yay, a technical objection.=20 If it isn=E2=80=99t safe to call a Lisp program in read_escape, then the = function is full of bugs already. It=E2=80=99s called with three arguments, a Lisp_Ob= ject readcharfun, an integer, and a pointer to an integer. If readcharfun is a Lisp function (it may not be, it may be a buffer, a marker, or a string), then that Lisp function is called on line 348. Cf. the documentation of `read', which describes that the input may be from a function.=20 --=20 Aidan Kehoe, http://www.parhasard.net/