]> git.eshelyaron.com Git - emacs.git/commitdiff
(normal-backup-enable-predicate): Correct
authorAndreas Schwab <schwab@suse.de>
Wed, 26 Jul 2000 16:56:22 +0000 (16:56 +0000)
committerAndreas Schwab <schwab@suse.de>
Wed, 26 Jul 2000 16:56:22 +0000 (16:56 +0000)
interpretation of the return value of compare-strings.

lisp/files.el

index 7dd82e6f2fb311873306c5c351e1cf903b743ba7..0da412b91a23d16492fbcacf400762eeea5dc636 100644 (file)
@@ -141,14 +141,14 @@ Checks for files in `temporary-file-directory' or
                                        name 0 nil)))
             ;; Directory is under temporary-file-directory.
             (and (not (eq comp t))
-                 (< comp -1)))
+                 (< comp (- (length temporary-file-directory)))))
           (if small-temporary-file-directory
               (let ((comp (compare-strings small-temporary-file-directory
                                            0 nil
                                            name 0 nil)))
                 ;; Directory is under small-temporary-file-directory.
                 (and (not (eq comp t))
-                     (< comp -1)))))))
+                     (< comp (- (length small-temporary-file-directory)))))))))
 
 (defvar backup-enable-predicate 'normal-backup-enable-predicate
   "Predicate that looks at a file name and decides whether to make backups.