From e9ce5adec11d1c1407b091af19637ca03429e188 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 24 Jul 1994 19:55:26 +0000 Subject: [PATCH] (dired-internal-noselect): a zero modtime means directory is unchanged. --- lisp/dired.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5