From: Stefan Monnier Date: Fri, 19 Mar 2004 02:34:39 +0000 (+0000) Subject: (display-time-string-forms): Add help-echo with date on time. X-Git-Tag: ttn-vms-21-2-B4~7210 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e93b2f39b26a656fc6defeb37688e56bc0c79856;p=emacs.git (display-time-string-forms): Add help-echo with date on time. --- diff --git a/lisp/time.el b/lisp/time.el index ba1b66f8a72..a4c5f97ac98 100644 --- a/lisp/time.el +++ b/lisp/time.el @@ -173,9 +173,11 @@ depend on `display-time-day-and-date' and `display-time-24hr-format'." '((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) + (propertize + (format-time-string (or display-time-format + (if display-time-24hr-format "%H:%M" "%-I:%M%p")) + now) + 'help-echo (format-time-string "%s %b %e, %Y" now)) load (if mail ;; Build the string every time to act on customization.