From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Tue, 09 May 2006 09:36:34 +0900 Message-ID: References: <17491.34779.959316.484740@parhasard.net> <17495.932.70900.796282@parhasard.net> <17495.57895.90438.848865@parhasard.net> <17498.28361.392872.954484@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1147135079 7278 80.91.229.2 (9 May 2006 00:37:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 00:37:59 +0000 (UTC) Cc: kehoea@parhasard.net, schwab@suse.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 09 02:37:56 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 1FdGEZ-0000wm-2l for ged-emacs-devel@m.gmane.org; Tue, 09 May 2006 02:37:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdGEY-0002sK-LP for ged-emacs-devel@m.gmane.org; Mon, 08 May 2006 20:37:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdGEM-0002sF-Es for emacs-devel@gnu.org; Mon, 08 May 2006 20:37:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdGEL-0002s3-GH for emacs-devel@gnu.org; Mon, 08 May 2006 20:37:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdGEL-0002s0-Dn for emacs-devel@gnu.org; Mon, 08 May 2006 20:37:37 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FdGFH-0000Cj-Pp for emacs-devel@gnu.org; Mon, 08 May 2006 20:38:36 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k490bWuu020776; Tue, 9 May 2006 09:37:32 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k490bVlT007729; Tue, 9 May 2006 09:37:32 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FdGDK-0002b8-00; Tue, 09 May 2006 09:36:34 +0900 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Mon, 08 May 2006 09:55:47 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:54116 Archived-At: In article , Stefan Monnier writes: >> For instance, Fread is called from Fcall_interactively as >> below: >> Lisp_Object tem; >> [...] >> tem = Fread_from_minibuffer (build_string (callint_message), >> Qnil, Qnil, Qnil, Qnil, Qnil, >> Qnil, Qnil); >> if (! STRINGP (tem) || SCHARS (tem) == 0) >> args[i] = Qnil; >> else >> args[i] = Fread (tem); >> In the calling sequence of >> Fread-> read_internal_start->read0->read1, I see no place >> where the original `tem' is GCPROed. Do I overlook >> something? > Why would it need to be protected? it's not used afterwards. It's not used in Fcall_interactively afterwards. So Fcall_interactively doesn't have to protect it. But, read1 or read_escape have to protect the argument READCHARFUN, don't they? --- Kenichi Handa handa@m17n.org