From: Richard M. Stallman Date: Sun, 24 Jul 1994 19:55:26 +0000 (+0000) Subject: (dired-internal-noselect): a zero modtime means directory is unchanged. X-Git-Tag: emacs-19.34~7532 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e9ce5adec11d1c1407b091af19637ca03429e188;p=emacs.git (dired-internal-noselect): a zero modtime means directory is unchanged. --- diff --git a/lisp/dired.el b/lisp/dired.el index fa1d8ae3bbf..f65197b4118 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -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