aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-04 16:33:19 +0000
committerRichard M. Stallman1997-05-04 16:33:19 +0000
commit121211d44055e1f0cd50c21ec0bae2e7085643a2 (patch)
tree446e23630224757f1c2639eab57b4b7a52ec023d
parentebad70ded3e8510c434326977a566c16aa57873f (diff)
downloademacs-121211d44055e1f0cd50c21ec0bae2e7085643a2.tar.gz
emacs-121211d44055e1f0cd50c21ec0bae2e7085643a2.zip
(display-time-string-forms): Test display-time-day-and-date
and display-time-24hr-format here. (display-time-format): Default value is now nil.
-rw-r--r--lisp/time.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/time.el b/lisp/time.el
index 8f798fa08a2..0da580afd86 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -100,17 +100,19 @@ This runs the normal hook `display-time-hook' after each update."
100 'display-time-event-handler)))) 100 'display-time-event-handler))))
101 101
102 102
103(defvar display-time-format 103(defvar display-time-format nil
104 (concat
105 (if display-time-day-and-date
106 "%a %b %e" "")
107 (if display-time-24hr-format "%H:%m" "%-I:%M%p"))
108 "*A string specifying the format for displaying the time in the mode line. 104 "*A string specifying the format for displaying the time in the mode line.
109See the function `format-time-string' for an explanation of 105See the function `format-time-string' for an explanation of
110how to write this string.") 106how to write this string. If this is nil, the defaults
107depend on `display-time-day-and-date' and `display-time-24hr-format'.")
111 108
112(defvar display-time-string-forms 109(defvar display-time-string-forms
113 '((format-time-string display-time-format now) 110 '((if (and (not display-time-format) display-time-day-and-date)
111 (format-time-string "%a %b %e " now)
112 "")
113 (format-time-string (or display-time-format
114 (if display-time-24hr-format "%H:%m" "%-I:%M%p"))
115 now)
114 load 116 load
115 (if mail " Mail" "")) 117 (if mail " Mail" ""))
116 "*A list of expressions governing display of the time in the mode line. 118 "*A list of expressions governing display of the time in the mode line.