Mercurial > emacs
diff lisp/time.el @ 4014:d7374f1828b5
(display-time-file-nonempty-p): Use file-chase-links.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Wed, 07 Jul 1993 04:31:38 +0000 |
parents | 965b015a4aef |
children | e277328474cc |
line wrap: on
line diff
--- a/lisp/time.el Wed Jul 07 03:06:28 1993 +0000 +++ b/lisp/time.el Wed Jul 07 04:31:38 1993 +0000 @@ -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 @@ (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