diff lisp/dired.el @ 8321:ee7b758d2efa

(dired-internal-noselect): a zero modtime means directory is unchanged.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 Jul 1994 19:55:26 +0000
parents bc8c9c72e3bf
children 941432da0ff3
line wrap: on
line diff
--- a/lisp/dired.el	Sun Jul 24 19:19:17 1994 +0000
+++ b/lisp/dired.el	Sun Jul 24 19:55:26 1994 +0000
@@ -402,7 +402,8 @@
 	  ;; 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