aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/calendar/diary-lib.el5
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fea6a86e8e5..0f562a8aad1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,8 +3,8 @@
3 * calendar/diary-lib.el (diary-header-line-format): Add a custom 3 * calendar/diary-lib.el (diary-header-line-format): Add a custom
4 :set function. 4 :set function.
5 (diary-list-entries): Only switch to diary-mode from 5 (diary-list-entries): Only switch to diary-mode from
6 default-major-mode (reverts 2007-03-21 change). Otherwise, set 6 default-major-mode (reverts 2007-03-21 change). Otherwise, if in
7 header-line-format, in case of any customization. 7 diary-mode set header-line-format, in case of any customization.
8 8
92007-04-18 Levin Du <zslevin@gmail.com> (tiny change) 92007-04-18 Levin Du <zslevin@gmail.com> (tiny change)
10 10
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 5838851246f..ee93b60eb98 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -446,8 +446,9 @@ If LIST-ONLY is non-nil don't modify or display the buffer, only return a list."
446 ;; clobbers file local variables. 446 ;; clobbers file local variables.
447 ;; http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-03/msg00363.html 447 ;; http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-03/msg00363.html
448 ;; http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-04/msg00404.html 448 ;; http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-04/msg00404.html
449 (setq header-line-format (and diary-header-line-flag 449 (if (eq major-mode 'diary-mode)
450 diary-header-line-format))) 450 (setq header-line-format (and diary-header-line-flag
451 diary-header-line-format))))
451 ;; d-s-p is passed to the diary display function. 452 ;; d-s-p is passed to the diary display function.
452 (let ((diary-saved-point (point))) 453 (let ((diary-saved-point (point)))
453 (save-excursion 454 (save-excursion