From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: Recent documents: Emacs and GNOME integration Date: Tue, 30 May 2006 14:10:40 -0700 (PDT) Message-ID: <37157.128.165.123.132.1149023440.squirrel@webmail.lanl.gov> References: <36987.128.165.123.132.1149013707.squirrel@webmail.lanl.gov> <20060530195948.37508.qmail@web51014.mail.yahoo.com> Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1149023473 7244 80.91.229.2 (30 May 2006 21:11:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 May 2006 21:11:13 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 30 23:11:10 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 1FlBUU-0007Ar-I0 for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 23:11:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlBUU-0003OM-0I for ged-emacs-devel@m.gmane.org; Tue, 30 May 2006 17:11:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlBUJ-0003OF-4Q for emacs-devel@gnu.org; Tue, 30 May 2006 17:10:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlBUG-0003O2-C5 for emacs-devel@gnu.org; Tue, 30 May 2006 17:10:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlBUG-0003Nz-8w for emacs-devel@gnu.org; Tue, 30 May 2006 17:10:48 -0400 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FlBa8-00069Y-4j for emacs-devel@gnu.org; Tue, 30 May 2006 17:16:52 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k4ULAenF020373 for ; Tue, 30 May 2006 15:10:41 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.6/8.13.6/(ccn-5)) with ESMTP id k4ULAe7f011573; Tue, 30 May 2006 15:10:40 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id k4ULAeXU024316; Tue, 30 May 2006 15:10:40 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id k4ULAeD1024314; Tue, 30 May 2006 14:10:40 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.132 (SquirrelMail authenticated user 196434); by webmail.lanl.gov with HTTP; Tue, 30 May 2006 14:10:40 -0700 (PDT) In-Reply-To: <20060530195948.37508.qmail@web51014.mail.yahoo.com> Original-To: "Kevin Rodgers" User-Agent: SquirrelMail/1.4.3a-11.EL3 X-Mailer: SquirrelMail/1.4.3a-11.EL3 X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 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:55500 Archived-At: > I was going to respond that the ~/.recently-used file has to be visited > in order to make the necessary changes, and that it's only important > that the buffer's state matches the file in the case that the user had > previously visited the file himself/herself. But your question made me > realize that the file's contents could be updated in a temporary buffer > and then written to disk -- except that the question of what to do in > case the file is already visited in a buffer becomes even trickier, > especially if the buffer has been modified. Just see if the file is already being visited (`get-file-buffer') and use its visiting buffer (complete with the "written" message) if so. The only problem then is if the user has made that buffer incompatibly formatted. But then again, this could already happen with the file, so it's not an additional difficulty. I might also point out that the other things `write-region' does without the message-suppressing VISIT argument can be done with `set-visited-file-name' and `set-visited-file-modtime'. Maybe that helps when doing it the way you want? Davis PS - You may realize it perfectly well, but in case you don't: you haven't been including emacs-devel in your posts as far as I can tell. -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.