summaryrefslogtreecommitdiff
path: root/lisp/time.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-18 02:39:40 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-18 02:39:40 +0000
commit876fec05b671fe78d077df2f0ab069ba5197d6d9 (patch)
treea858c56086bd9553f0e60eecbbcbc384a4bc151b /lisp/time.el
parent40664012bb791c16e5375b253abab2b2de56d767 (diff)
downloademacs-876fec05b671fe78d077df2f0ab069ba5197d6d9.tar.gz
(display-time-filter): Ignore mail-spool-file if not string.
Diffstat (limited to 'lisp/time.el')
-rw-r--r--lisp/time.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/time.el b/lisp/time.el
index 77325f98a27..14a6a17d398 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -29,7 +29,8 @@
(defvar display-time-mail-file nil
"*File name of mail inbox file, for indicating existence of new mail.
-Default is system-dependent, and is the same as used by Rmail.")
+Non-nil and not a string means don't check for mail. nil means use
+default, which is system-dependent, and is the same as used by Rmail.")
;;;###autoload
(defvar display-time-day-and-date nil "\
@@ -127,7 +128,8 @@ would give mode line times like `94/12/30 21:07:48 (UTC)'.")
(getenv "MAIL")
(concat rmail-spool-directory
(user-login-name))))
- (mail (and (or (null display-time-server-down-time)
+ (mail (and (stringp mail-spool-file)
+ (or (null display-time-server-down-time)
;; If have been down for 20 min, try again.
(> (- (nth 1 (current-time))
display-time-server-down-time)