aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2000-07-26 16:56:22 +0000
committerAndreas Schwab2000-07-26 16:56:22 +0000
commitf1bba07d31847747f42ea8a743eff888daf091b2 (patch)
treea9ebf2ee07de4c51423cbe3b88a8df1e8613966f
parent3353ef5a44a1736404a38e32b15d7880df250491 (diff)
downloademacs-f1bba07d31847747f42ea8a743eff888daf091b2.tar.gz
emacs-f1bba07d31847747f42ea8a743eff888daf091b2.zip
(normal-backup-enable-predicate): Correct
interpretation of the return value of compare-strings.
-rw-r--r--lisp/files.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 7dd82e6f2fb..0da412b91a2 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -141,14 +141,14 @@ Checks for files in `temporary-file-directory' or
141 name 0 nil))) 141 name 0 nil)))
142 ;; Directory is under temporary-file-directory. 142 ;; Directory is under temporary-file-directory.
143 (and (not (eq comp t)) 143 (and (not (eq comp t))
144 (< comp -1))) 144 (< comp (- (length temporary-file-directory)))))
145 (if small-temporary-file-directory 145 (if small-temporary-file-directory
146 (let ((comp (compare-strings small-temporary-file-directory 146 (let ((comp (compare-strings small-temporary-file-directory
147 0 nil 147 0 nil
148 name 0 nil))) 148 name 0 nil)))
149 ;; Directory is under small-temporary-file-directory. 149 ;; Directory is under small-temporary-file-directory.
150 (and (not (eq comp t)) 150 (and (not (eq comp t))
151 (< comp -1))))))) 151 (< comp (- (length small-temporary-file-directory)))))))))
152 152
153(defvar backup-enable-predicate 'normal-backup-enable-predicate 153(defvar backup-enable-predicate 'normal-backup-enable-predicate
154 "Predicate that looks at a file name and decides whether to make backups. 154 "Predicate that looks at a file name and decides whether to make backups.