From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: backup method Date: Fri, 28 Jan 2005 23:16:34 -0500 Message-ID: References: <20050127000210.GA6167@boetes.org> <200501270045.j0R0jIq06197@raven.dms.auburn.edu> <20050127015432.GB6167@boetes.org> <20050128035618.GI6167@boetes.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1106972476 20354 80.91.229.6 (29 Jan 2005 04:21:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jan 2005 04:21:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 29 05:21:08 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 1Cuk6e-0005s3-00 for ; Sat, 29 Jan 2005 05:21:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CukJ5-0001W0-V0 for ged-emacs-devel@m.gmane.org; Fri, 28 Jan 2005 23:34:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CukIT-00017Q-C6 for emacs-devel@gnu.org; Fri, 28 Jan 2005 23:33:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CukIQ-00015K-AV for emacs-devel@gnu.org; Fri, 28 Jan 2005 23:33:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CukIQ-00013w-3c for emacs-devel@gnu.org; Fri, 28 Jan 2005 23:33:18 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cuk4U-0006el-Vm for emacs-devel@gnu.org; Fri, 28 Jan 2005 23:18:55 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Cuk2E-0003UH-Vn; Fri, 28 Jan 2005 23:16:35 -0500 Original-To: Han Boetes In-reply-to: <20050128035618.GI6167@boetes.org> (message from Han Boetes on Fri, 28 Jan 2005 04:55:56 +0059) 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:32615 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32615 My prove is: unset TMP TMPDIR export VISUAL='emacs -q' # which does backup by moving by default crontab -e And you can edit your crontab fine since emacs won't make a backup of files in /tmp So you're not editing the crontab files under their real names, but rather, editing copies that were made in /tmp? If so, I understand the situation now. Thanks. Does this fix it? *** files.el 24 Jan 2005 20:08:31 -0500 1.743 --- files.el 28 Jan 2005 09:33:33 -0500 *************** *** 2844,2856 **** (defun normal-backup-enable-predicate (name) "Default `backup-enable-predicate' function. ! Checks for files in `temporary-file-directory' or ! `small-temporary-file-directory'." (not (or (let ((comp (compare-strings temporary-file-directory 0 nil name 0 nil))) ;; Directory is under temporary-file-directory. (and (not (eq comp t)) (< comp (- (length temporary-file-directory))))) (if small-temporary-file-directory (let ((comp (compare-strings small-temporary-file-directory 0 nil --- 2844,2861 ---- (defun normal-backup-enable-predicate (name) "Default `backup-enable-predicate' function. ! Checks for files in `temporary-file-directory', ! `small-temporary-file-directory', and /tmp." (not (or (let ((comp (compare-strings temporary-file-directory 0 nil name 0 nil))) ;; Directory is under temporary-file-directory. (and (not (eq comp t)) (< comp (- (length temporary-file-directory))))) + (let ((comp (compare-strings "/tmp" 0 nil + name 0 nil))) + ;; Directory is under /tmp. + (and (not (eq comp t)) + (< comp (- (length "/tmp"))))) (if small-temporary-file-directory (let ((comp (compare-strings small-temporary-file-directory 0 nil