GNU bug report logs - #18467
24.4.50; calendar-update-mode-line: Do not overwrite mode-line-format unconditionally

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <ch <at> ristopher.com>

Date: Sat, 13 Sep 2014 09:50:01 UTC

Severity: wishlist

Found in version 24.4.50

Done: Christopher Schmidt <ch <at> ristopher.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18467 in the body.
You can then email your comments to 18467 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18467; Package emacs. (Sat, 13 Sep 2014 09:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Schmidt <ch <at> ristopher.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 13 Sep 2014 09:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <ch <at> ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.4.50; calendar-update-mode-line: Do not overwrite mode-line-format
 unconditionally
Date: Sat, 13 Sep 2014 05:48:40 -0400 (EDT)
[Message part 1 (text/plain, inline)]
severity: wishlist

[Message part 2 (text/x-diff, inline)]
--- lisp/ChangeLog
+++ lisp/ChangeLog
@@ -1,3 +1,9 @@
+2014-09-13  Christopher Schmidt  <ch <at> ristopher.com>
+
+	* calendar/calendar.el (calendar-update-mode-line):
+	Do not overwrite mode-line-format if calendar-mode-line-format is
+	nil.  (Bug##)
+
 2014-09-13  Eli Zaretskii  <eliz <at> gnu.org>

        * mail/rmailmm.el (rmail-mime-insert-html): Decode the HTML part
--- lisp/calendar/calendar.el
+++ lisp/calendar/calendar.el
@@ -1804,14 +1804,18 @@
                               nil "today"))
    '(calendar-date-string (calendar-current-date) t)
    (calendar-mode-line-entry 'calendar-scroll-left "next month" ">"))
-  "The mode line of the calendar buffer.
+  "If non-nil, the mode line of the calendar buffer.
 This is a list of items that evaluate to strings.  The elements
 are evaluated and concatenated, evenly separated by blanks.
 During evaluation, the variable `date' is available as the date
 nearest the cursor (or today's date if that fails).  To update
-the mode-line as the cursor moves, add `calendar-update-mode-line'
-to `calendar-move-hook'.  Here is an example that has the Hebrew date,
-the day number/days remaining in the year, and the ISO week/year numbers:
+the mode-line as the cursor moves, add
+`calendar-update-mode-line' to `calendar-move-hook'.
+
+If nil, do not modify the mode line at all.
+
+Here is an example that has the Hebrew date, the day number/days
+remaining in the year, and the ISO week/year numbers:

   (list
    \"\"
@@ -1889,7 +1893,8 @@

 (defun calendar-update-mode-line ()
   "Update the calendar mode line with the current date and date style."
-  (if (bufferp (get-buffer calendar-buffer))
+  (if (and calendar-mode-line-format
+           (bufferp (get-buffer calendar-buffer)))
       (with-current-buffer calendar-buffer
         (let ((start (- calendar-left-margin 2))
               (date (condition-case nil

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18467; Package emacs. (Sat, 13 Sep 2014 16:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 18467 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Christopher Schmidt <ch <at> ristopher.com>
Cc: 18467 <at> debbugs.gnu.org
Subject: Re: bug#18467: 24.4.50;
 calendar-update-mode-line: Do not overwrite mode-line-format
 unconditionally
Date: Sat, 13 Sep 2014 12:42:05 -0400
Fine by me; please apply to trunk, maybe with a 1-line mention in NEWS?
Thanks.




Reply sent to Christopher Schmidt <ch <at> ristopher.com>:
You have taken responsibility. (Sat, 13 Sep 2014 17:55:01 GMT) Full text and rfc822 format available.

Notification sent to Christopher Schmidt <ch <at> ristopher.com>:
bug acknowledged by developer. (Sat, 13 Sep 2014 17:55:02 GMT) Full text and rfc822 format available.

Message #13 received at 18467-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Schmidt <ch <at> ristopher.com>
To: 18467-done <at> debbugs.gnu.org
Subject: Re: bug#18467: 24.4.50;
 calendar-update-mode-line: Do not overwrite mode-line-format
 unconditionally
Date: Sat, 13 Sep 2014 13:54:53 -0400 (EDT)
Glenn Morris <rgm <at> gnu.org> writes:
> Fine by me; please apply to trunk, maybe with a 1-line mention in
> NEWS?  Thanks.

Thanks; done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Oct 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.