From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.devel Subject: Re: backup method Date: Sat, 29 Jan 2005 07:08:29 +0100 Message-ID: <20050129060851.GQ6167@boetes.org> References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> <20050127015432.GB6167@boetes.org> <20050128035618.GI6167@boetes.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106979270 31418 80.91.229.6 (29 Jan 2005 06:14:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2005 06:14:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 07:14:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CulsG-0000eF-00 for ; Sat, 29 Jan 2005 07:14:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cum4S-0005Kr-6r for ged-emacs-devel@m.gmane.org; Sat, 29 Jan 2005 01:27:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cum47-0005Ht-JF for emacs-devel@gnu.org; Sat, 29 Jan 2005 01:26:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cum3y-0005An-EX for emacs-devel@gnu.org; Sat, 29 Jan 2005 01:26:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cum3x-000593-Hb for emacs-devel@gnu.org; Sat, 29 Jan 2005 01:26:29 -0500 Original-Received: from [217.120.147.78] (helo=boetes.org) by monty-python.gnu.org with smtp (Exim 4.34) id 1CulmZ-0003Zr-Kc for emacs-devel@gnu.org; Sat, 29 Jan 2005 01:08:32 -0500 Original-Received: (qmail 1176 invoked by uid 1000); 29 Jan 2005 06:08:51 -0000 Original-To: emacs-devel@gnu.org Mail-Followup-To: emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i 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: main.gmane.org gmane.emacs.devel:32617 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32617 Richard Stallman wrote: > So you're not editing the crontab files under their real names, > but rather, editing copies that were made in /tmp? crontab -e keeps the file-descriptor open while editing the tmpfile. So you would edit the right filename but the wrong file. > If so, I understand the situation now. Thanks. Does this fix it? Yes it does. At least for default emacs. Not for the multitty- branch. But that's not your concern of course. I'll poke the maintainer. I do have one question left though: Is this patch sufficiently portable? Looking through files.el I found this description of what a temporary-file-directory looks like: (defcustom temporary-file-directory (file-name-as-directory (cond ((memq system-type '(ms-dos windows-nt)) (or (getenv "TEMP") (getenv "TMPDIR") (getenv "TMP") "c:/temp")) ((memq system-type '(vax-vms axp-vms)) (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "SYS$SCRATCH:")) (t (or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP") "/tmp")))) "The directory for writing temporary files." :group 'files :type 'directory) And assuming this problem only needs fixing on unix doesn't feel right IMHO. # Han