From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: creating backups in temporary directories Date: Fri, 7 Sep 2007 12:42:29 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0407921861==" X-Trace: sea.gmane.org 1189164394 31048 80.91.229.12 (7 Sep 2007 11:26:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 11:26:34 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 13:26:34 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 1ITbyr-0006SK-39 for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 13:26:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITbyp-0005F6-Hd for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2007 07:26:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITbIN-00049s-4g for emacs-devel@gnu.org; Fri, 07 Sep 2007 06:42:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITbII-000471-Ue for emacs-devel@gnu.org; Fri, 07 Sep 2007 06:42:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITbII-00046l-Jd for emacs-devel@gnu.org; Fri, 07 Sep 2007 06:42:34 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITbII-000864-8v for emacs-devel@gnu.org; Fri, 07 Sep 2007 06:42:34 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITbHz-0004ZK-8Q for emacs-pretest-bug@gnu.org; Fri, 07 Sep 2007 06:42:15 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1ITbIF-00085J-HR for emacs-pretest-bug@gnu.org; Fri, 07 Sep 2007 06:42:33 -0400 Original-Received: from nz-out-0506.google.com ([64.233.162.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITbIF-00085B-8t for emacs-pretest-bug@gnu.org; Fri, 07 Sep 2007 06:42:31 -0400 Original-Received: by nz-out-0506.google.com with SMTP id f1so301850nzc for ; Fri, 07 Sep 2007 03:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=9VI1QHc4sE2HDRkv5e3N1TfVuJKbtvVapeUmRtWB6yA=; b=I57qATLXzk6f6w+boEP9wE+NMHe4CMARkiG1xKy81+asoHPl2+RQv7oLqQgZgbQ1OK+gmGHR+PgwTFKOMfLtwa+f+IDWMkhQuAO673hQjSD+cfgQxfimwBsebka0/ezsxFx59haQYt/zOpUaYevqufDjuMZiovzhXGOZXhfJQfk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KlT8E6YBkdrrZgfjqtdmgUTTH7oTmw11OCvKK4oXirQQtkSypJuaIfvqtbZRk64qyoqcdo9JBgrB0xv709a4aMbBrdlL6jVCiP+yHusdcpsRmxkSYOxwtPonfuP/RAM0Tj+jcOzZOas6Pn2E+o8WQjRKz0imoVgOGsZwdOyNP6w= Original-Received: by 10.142.191.2 with SMTP id o2mr83873wff.1189161749654; Fri, 07 Sep 2007 03:42:29 -0700 (PDT) Original-Received: by 10.143.4.2 with HTTP; Fri, 7 Sep 2007 03:42:29 -0700 (PDT) X-Detected-Kernel: Linux 2.6 (newer, 2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 07 Sep 2007 07:26:27 -0400 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:78139 gmane.emacs.pretest.bugs:19762 Archived-At: --===============0407921861== Content-Type: multipart/alternative; boundary="----=_Part_539_4432321.1189161749655" ------=_Part_539_4432321.1189161749655 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I quite often want to email diffs of files I don't have write access to, so I visit the file, write it to /tmp, then edit it, save it, and go to /tmp to run diff between the file and its backup. But Emacs doesn't make backups of files in /tmp, and there doesn't seem to be any way of asking it to via the customize interface. The best I've found is to: (setq backup-enable-predicate '(lambda (file) t)) Suggestions: 1) make that the default value - why not write backups in /tmp? 2) offer a way for the user to customize the behavior without resorting to writing Emacs LISP code ------=_Part_539_4432321.1189161749655 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I quite often want to email diffs of files I don't have write access to, so I visit the file, write it to /tmp, then edit it, save it, and go to /tmp to run diff between the file and its backup.  But Emacs doesn't make backups of files in /tmp, and there doesn't seem to be any way of asking it to via the customize interface.

The best I've found is to:
  (setq backup-enable-predicate '(lambda (file) t))



Suggestions:
1) make that the default value - why not write backups in /tmp?
2) offer a way for the user to customize the behavior without resorting to writing Emacs LISP code
------=_Part_539_4432321.1189161749655-- --===============0407921861== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0407921861==--