# HG changeset patch # User Richard M. Stallman # Date 1107019680 0 # Node ID 62b62ef6293724b0bcd83445b92ef14b90856cb9 # Parent 71d8a58f6f2765d7a3d1136d075c9445ae59c322 (normal-backup-enable-predicate): Return nil for files in /tmp, regardless of temporary-file-directory. diff -r 71d8a58f6f27 -r 62b62ef62937 lisp/files.el --- a/lisp/files.el Sat Jan 29 17:27:13 2005 +0000 +++ b/lisp/files.el Sat Jan 29 17:28:00 2005 +0000 @@ -2844,13 +2844,18 @@ (defun normal-backup-enable-predicate (name) "Default `backup-enable-predicate' function. -Checks for files in `temporary-file-directory' or -`small-temporary-file-directory'." +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