[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating backups in temporary directories

From: Chris Moore
Subject: creating backups in temporary directories
Date: Fri, 7 Sep 2007 12:42:29 +0200

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))

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]