comparison lisp/dired.el @ 54542:0b174cfd1511

(dired-directory-changed-p): Reindent.
author Luc Teirlinck <teirllm@auburn.edu>
date Thu, 25 Mar 2004 04:21:24 +0000
parents 924fccad3acb
children f36d3226281c
comparison
equal deleted inserted replaced
54541:40ab259813f3 54542:0b174cfd1511
528 ;; The following is an internal dired function. It returns non-nil if 528 ;; The following is an internal dired function. It returns non-nil if
529 ;; the directory visited by the current dired buffer has changed on 529 ;; the directory visited by the current dired buffer has changed on
530 ;; disk. DIRNAME should be the directory name of that directory. 530 ;; disk. DIRNAME should be the directory name of that directory.
531 (defun dired-directory-changed-p (dirname) 531 (defun dired-directory-changed-p (dirname)
532 (not (let ((attributes (file-attributes dirname)) 532 (not (let ((attributes (file-attributes dirname))
533 (modtime (visited-file-modtime))) 533 (modtime (visited-file-modtime)))
534 (or (eq modtime 0) 534 (or (eq modtime 0)
535 (not (eq (car attributes) t)) 535 (not (eq (car attributes) t))
536 (and (= (car (nth 5 attributes)) (car modtime)) 536 (and (= (car (nth 5 attributes)) (car modtime))
537 (= (nth 1 (nth 5 attributes)) (cdr modtime))))))) 537 (= (nth 1 (nth 5 attributes)) (cdr modtime)))))))
538 538
539 (defun dired-buffer-stale-p (&optional noconfirm) 539 (defun dired-buffer-stale-p (&optional noconfirm)
540 "Return non-nil if current dired buffer needs updating. 540 "Return non-nil if current dired buffer needs updating.
541 If NOCONFIRM is non-nil, then this function always returns nil 541 If NOCONFIRM is non-nil, then this function always returns nil
542 for a remote directory. This feature is used by Auto Revert Mode." 542 for a remote directory. This feature is used by Auto Revert Mode."