From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: recursive load case in openp Date: Fri, 12 Apr 2002 15:48:35 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200204120648.PAA27859@etlken.m17n.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1018594282 25902 127.0.0.1 (12 Apr 2002 06:51:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2002 06:51:22 +0000 (UTC) Cc: eliz@is.elta.co.il, walters@debian.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vuu2-0006jf-00 for ; Fri, 12 Apr 2002 08:51:22 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16vvAB-0007lb-00 for ; Fri, 12 Apr 2002 09:08:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vutn-0002Ey-00; Fri, 12 Apr 2002 02:51:07 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16vurP-00023r-00; Fri, 12 Apr 2002 02:48:40 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g3C6maw23933; Fri, 12 Apr 2002 15:48:36 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g3C6mZM26063; Fri, 12 Apr 2002 15:48:35 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id PAA27859; Fri, 12 Apr 2002 15:48:35 +0900 (JST) Original-To: rms@gnu.org In-Reply-To: message from Richard Stallman on Thu, 11 Apr 2002 21:12:06 -0600 (MDT) Original-References: User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2567 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2567 Richard Stallman writes: > Does this do the job? Yes at least with a few small tests. We also have to change Finsert_file_contents. But, I think: > ! buffer = Fget_buffer_create (build_string (" *code-converting-work*")); > ! buf = XBUFFER (buffer); > ! > ! buf->directory = current_buffer->directory; > ! buf->read_only = Qnil; > ! buf->filename = Qnil; > ! buf->undo_list = Qt; > ! buf->overlays_before = Qnil; > ! buf->overlays_after = Qnil; > ! > ! set_buffer_internal (buf); [...] > Ferase_buffer (); it is better that we keep this sequence in a separate function (or macro), otherwise, for instance, we may forget to set overlays_before/after to nil in the other place in the future. Then, we can call that function from coding.c, Finsert_file_contents, and also from temp_output_buffer_setup. --- Ken'ichi HANDA handa@etl.go.jp