From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jonathangoldblatt@yahoo.com Newsgroups: gmane.emacs.devel Subject: Re: changed on disk; really edit the buffer? Date: Wed, 21 Nov 2007 07:55:26 -0500 Message-ID: <18244.10942.933776.973734@tower.localdomain> References: <4739B12F.7000400@gmx.at> <18241.34220.668384.165761@tower.localdomain> <18242.27013.59638.550831@tower.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195677187 7365 80.91.229.12 (21 Nov 2007 20:33:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2007 20:33:07 +0000 (UTC) Cc: stephan.lukits@FernUni-Hagen.de, rudalics@gmx.at, jonathangoldblatt@yahoo.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 21 21:33:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IuwG0-00022e-40 for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 21:33:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuwFm-0001qT-3T for ged-emacs-devel@m.gmane.org; Wed, 21 Nov 2007 15:32:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuvgG-0004SM-Ti for emacs-devel@gnu.org; Wed, 21 Nov 2007 14:56:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuvgF-0004SA-Ny for emacs-devel@gnu.org; Wed, 21 Nov 2007 14:56:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuvgF-0004S2-IL for emacs-devel@gnu.org; Wed, 21 Nov 2007 14:56:15 -0500 Original-Received: from smtp102.plus.mail.re1.yahoo.com ([69.147.102.65]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IuvgF-0004Zq-5V for emacs-devel@gnu.org; Wed, 21 Nov 2007 14:56:15 -0500 Original-Received: (qmail 77271 invoked from network); 21 Nov 2007 12:55:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Received:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID:Date:To:Cc:Subject:In-Reply-To:References:X-Mailer:From; b=O7VvVFwyeB9YZNumWmvHczlntOoTc24Yp+iFNd6ZozbwpxGnxl8QnKuWef/BmyMAKy/taspXSE/4i2Po7NdE51RsijreF+kg5fn9AHmOgbgxRy6O/dtqOvsk8tY808Ku/m1DEgZQ3E/y52ByVeaCYXqT+yuFVNN8w9qiIU/Gubg= ; Original-Received: from unknown (HELO tower.localdomain) (pseudonymous6@76.160.64.172 with plain) by smtp102.plus.mail.re1.yahoo.com with SMTP; 21 Nov 2007 12:55:30 -0000 X-YMail-OSG: FKv3SNsVM1ngoLXSnPFaOzyH8LnxEFzZTL.wRZr6mD0fGnZY_G49Sixxp1QjNo7INh9j4OK9LA-- Original-Received: from jonathan by tower.localdomain with local (Exim 4.50) id 1Iup71-0007o9-MB; Wed, 21 Nov 2007 07:55:27 -0500 In-Reply-To: X-Mailer: VM 7.18 under Emacs 21.4.1 X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-Mailman-Approved-At: Wed, 21 Nov 2007 15:32:09 -0500 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:83811 Archived-At: What did you think of the auto-save-hooks idea? In GNU Emacs 21.4.1 there is just auto-save-hook's value is nil Documentation: Normal hook run just before auto-saving. Another possible advantage of auto-saving into the file is that it simplifies using session-recover if something does go wrong. I have one file that always shows up with an auto-save file and what I always wind up doing is a compare with the original to check that I really want to do the replace, which I always do. Just struck me that I maybe I should set this file to save into itself. Unfortunately, it's a largish .gz, that takes a while to save, but I might decide to stop being a bit miser, and just use a normal file. I'd like to do some work on this stuff, and some of the other TO DO's but unfortunately my personal life doesn't leave me with enough time.