]> code.delx.au - gnu-emacs/commitdiff
(dired-directory-changed-p): `visited-file-modtime' now returns a
authorLuc Teirlinck <teirllm@auburn.edu>
Wed, 14 Jul 2004 22:59:08 +0000 (22:59 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Wed, 14 Jul 2004 22:59:08 +0000 (22:59 +0000)
list of two integers, instead of a cons.

lisp/dired.el

index e5e23dfe2d6b479a8a9267279543ad77a462c6b9..43eec9408d4d2cb94ddfcd43a5a506ebdbbd4d92 100644 (file)
@@ -620,8 +620,7 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
             (modtime (visited-file-modtime)))
         (or (eq modtime 0)
             (not (eq (car attributes) t))
-            (and (= (car (nth 5 attributes)) (car modtime))
-                 (= (nth 1 (nth 5 attributes)) (cdr modtime)))))))
+            (equal (nth 5 attributes) modtime)))))
 
 (defun dired-buffer-stale-p (&optional noconfirm)
   "Return non-nil if current dired buffer needs updating.