changeset 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 2c77abdc0111
children faedd07b38ed
files lisp/dired.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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