diff options
| author | Richard M. Stallman | 1990-12-05 18:47:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1990-12-05 18:47:42 +0000 |
| commit | 29975121ed73833df9696df91530e4718f19003e (patch) | |
| tree | aa7124315805ae4525af6a5e5dfc5ebdaaa1fc3e /lisp | |
| parent | 22a72f53979d0f0eee99deea105338928370f9d0 (diff) | |
| download | emacs-29975121ed73833df9696df91530e4718f19003e.tar.gz emacs-29975121ed73833df9696df91530e4718f19003e.zip | |
*** empty log message ***
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/time.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/time.el b/lisp/time.el index b950c2f4b11..8a1f37f8e18 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -18,6 +18,10 @@ | |||
| 18 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | (defvar display-time-mail-file nil | ||
| 22 | "*File name of mail inbox file, for indicating existence of new mail. | ||
| 23 | Default is system-dependent, and is the same as used by Rmail.") | ||
| 24 | |||
| 21 | (defvar display-time-process nil) | 25 | (defvar display-time-process nil) |
| 22 | 26 | ||
| 23 | (defvar display-time-interval 60 | 27 | (defvar display-time-interval 60 |
| @@ -65,10 +69,12 @@ After each update, `display-time-hook' is run with `run-hooks'." | |||
| 65 | (defun display-time-filter (proc string) | 69 | (defun display-time-filter (proc string) |
| 66 | (let ((time (current-time-string)) | 70 | (let ((time (current-time-string)) |
| 67 | (load (format "%03d" (car (load-average)))) | 71 | (load (format "%03d" (car (load-average)))) |
| 68 | (mail-spool-file (concat rmail-spool-directory | 72 | (mail-spool-file (or display-time-mail-file |
| 69 | (or (getenv "LOGNAME") | 73 | (getenv "MAIL") |
| 70 | (getenv "USER") | 74 | (concat rmail-spool-directory |
| 71 | (user-login-name)))) | 75 | (or (getenv "LOGNAME") |
| 76 | (getenv "USER") | ||
| 77 | (user-login-name))))) | ||
| 72 | hour pm) | 78 | hour pm) |
| 73 | (setq hour (read (substring time 11 13))) | 79 | (setq hour (read (substring time 11 13))) |
| 74 | (setq pm (>= hour 12)) | 80 | (setq pm (>= hour 12)) |