# HG changeset patch # User Richard M. Stallman # Date 862763599 0 # Node ID d73425ee186b38bd8b8cf1da362ac687b4caee5d # Parent fd27882450bda5502b107cf8bae529aa349ccf1b (display-time-string-forms): Test display-time-day-and-date and display-time-24hr-format here. (display-time-format): Default value is now nil. diff -r fd27882450bd -r d73425ee186b lisp/time.el --- a/lisp/time.el Sun May 04 16:02:44 1997 +0000 +++ b/lisp/time.el Sun May 04 16:33:19 1997 +0000 @@ -100,17 +100,19 @@ 'display-time-event-handler)))) -(defvar display-time-format - (concat - (if display-time-day-and-date - "%a %b %e" "") - (if display-time-24hr-format "%H:%m" "%-I:%M%p")) +(defvar display-time-format nil "*A string specifying the format for displaying the time in the mode line. See the function `format-time-string' for an explanation of -how to write this string.") +how to write this string. If this is nil, the defaults +depend on `display-time-day-and-date' and `display-time-24hr-format'.") (defvar display-time-string-forms - '((format-time-string display-time-format now) + '((if (and (not display-time-format) display-time-day-and-date) + (format-time-string "%a %b %e " now) + "") + (format-time-string (or display-time-format + (if display-time-24hr-format "%H:%m" "%-I:%M%p")) + now) load (if mail " Mail" "")) "*A list of expressions governing display of the time in the mode line.