(dired-directory-changed-p): `visited-file-modtime' now returns a

list of two integers, instead of a cons.
This commit is contained in:
Luc Teirlinck
2004-07-14 22:59:08 +00:00
parent e5fcddc8f8
commit ca02a7263d

View 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.