]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-internal-noselect): a zero modtime means directory is unchanged.
authorRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 19:55:26 +0000 (19:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 24 Jul 1994 19:55:26 +0000 (19:55 +0000)
lisp/dired.el

index fa1d8ae3bbffb3eb7f2881d72fef001768706adb..f65197b41183fb7fbb2f885e5ea6c81a6fb167c6 100644 (file)
@@ -402,7 +402,8 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
          ;; If directory has changed on disk, offer to revert.
          (if (let ((attributes (file-attributes dirname))
                    (modtime (visited-file-modtime)))
-               (or (not (eq (car attributes) t))
+               (or (eq modtime 0)
+                   (not (eq (car attributes) t))
                    (and (= (car (nth 5 attributes)) (car modtime))
                         (= (nth 1 (nth 5 attributes)) (cdr modtime)))))
              nil