aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath1993-07-07 04:31:38 +0000
committerRoland McGrath1993-07-07 04:31:38 +0000
commit2fe4a905f8708a5382d60fa7f97d4337e5080a05 (patch)
tree072c291272fa3767f4e1c0828c41d6bb6a8b6cda
parent8ccc377f964b5327269f74968b43096ab0c01671 (diff)
downloademacs-2fe4a905f8708a5382d60fa7f97d4337e5080a05.tar.gz
emacs-2fe4a905f8708a5382d60fa7f97d4337e5080a05.zip
(display-time-file-nonempty-p): Use file-chase-links.
-rw-r--r--lisp/time.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/time.el b/lisp/time.el
index eaab09e1934..3f89438a802 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -1,6 +1,6 @@
1;;; time.el --- display time and load in mode line of Emacs. 1;;; time.el --- display time and load in mode line of Emacs.
2 2
3;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. 3;; Copyright (C) 1985, 1986, 1987, 1993 Free Software Foundation, Inc.
4 4
5;; Maintainer: FSF 5;; Maintainer: FSF
6 6
@@ -128,8 +128,6 @@ After each update, `display-time-hook' is run with `run-hooks'."
128 (sit-for 0)) 128 (sit-for 0))
129 129
130(defun display-time-file-nonempty-p (file) 130(defun display-time-file-nonempty-p (file)
131 (while (file-symlink-p file) 131 (< 0 (nth 7 (file-attributes (file-chase-links file)))))
132 (setq file (file-symlink-p file)))
133 (> (nth 7 (file-attributes file)) 0))
134 132
135;;; time.el ends here 133;;; time.el ends here