mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-02 11:21:42 +00:00
(dired-directory-changed-p): Reindent.
This commit is contained in:
parent
0d1a8fa052
commit
e09cd94fd2
@ -530,11 +530,11 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
|
||||
;; disk. DIRNAME should be the directory name of that directory.
|
||||
(defun dired-directory-changed-p (dirname)
|
||||
(not (let ((attributes (file-attributes dirname))
|
||||
(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)))))))
|
||||
(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)))))))
|
||||
|
||||
(defun dired-buffer-stale-p (&optional noconfirm)
|
||||
"Return non-nil if current dired buffer needs updating.
|
||||
|
Loading…
Reference in New Issue
Block a user