]> git.eshelyaron.com Git - emacs.git/commitdiff
(display-time-file-nonempty-p): Use file-chase-links.
authorRoland McGrath <roland@gnu.org>
Wed, 7 Jul 1993 04:31:38 +0000 (04:31 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 7 Jul 1993 04:31:38 +0000 (04:31 +0000)
lisp/time.el

index eaab09e1934bd1e51cb5d126c5585b8d8b026cf7..3f89438a8021928ce5b775b749747e2ffea74d5e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; time.el --- display time and load in mode line of Emacs.
 
-;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 1986, 1987, 1993 Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
 
@@ -128,8 +128,6 @@ After each update, `display-time-hook' is run with `run-hooks'."
   (sit-for 0))
 
 (defun display-time-file-nonempty-p (file)
-  (while (file-symlink-p file)
-    (setq file (file-symlink-p file)))
-  (> (nth 7 (file-attributes file)) 0))
+  (< 0 (nth 7 (file-attributes (file-chase-links file)))))
 
 ;;; time.el ends here