[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
display-time-mode in menu bar.
From: |
Luc Teirlinck |
Subject: |
display-time-mode in menu bar. |
Date: |
Tue, 9 Aug 2005 20:42:33 -0500 (CDT) |
I believe that the menu item text and the help echo for the item on
the Show/Hide menubar menu that toggles Display Time mode is wrong.
The current text says: "Date, Time and Mail". However, do
`emacs -q' and then enable the item using the menubar. No date is shown,
but if your load average is big enough, it will display the load
average. Enabling `display-time-mode' will, as the docstring of the
function says, show the date in the modeline if and only if
`display-time-day-and-date' is non-nil. But the default value of
that option is nil, so the menubar docs should not assume that it is
non-nil.
What about the patch below, which I can install if desired.
===File ~/menu-bar-diff=====================================
*** menu-bar.el 09 Aug 2005 17:46:45 -0500 1.266
--- menu-bar.el 09 Aug 2005 19:55:03 -0500
***************
*** 708,715 ****
(define-key menu-bar-showhide-menu [showhide-date-time]
(menu-bar-make-mm-toggle display-time-mode
! "Date, Time and Mail"
! "Display date, time, mail status in mode line"))
(define-key menu-bar-showhide-menu [datetime-separator]
'("--"))
--- 708,716 ----
(define-key menu-bar-showhide-menu [showhide-date-time]
(menu-bar-make-mm-toggle display-time-mode
! "Time, Load Averages and Mail"
! "Display time, system load averages and \
! mail status in mode line"))
(define-key menu-bar-showhide-menu [datetime-separator]
'("--"))
============================================================
- display-time-mode in menu bar.,
Luc Teirlinck <=