Commit e8bc96a3 authored by Glenn Morris's avatar Glenn Morris
Browse files

Improve previous fix by only setting header-line-format in diary-mode.

parent 253b50b4
......@@ -3,8 +3,8 @@
* calendar/diary-lib.el (diary-header-line-format): Add a custom
:set function.
(diary-list-entries): Only switch to diary-mode from
default-major-mode (reverts 2007-03-21 change). Otherwise, set
header-line-format, in case of any customization.
default-major-mode (reverts 2007-03-21 change). Otherwise, if in
diary-mode set header-line-format, in case of any customization.
2007-04-18 Levin Du <> (tiny change)
......@@ -446,8 +446,9 @@ If LIST-ONLY is non-nil don't modify or display the buffer, only return a list."
;; clobbers file local variables.
(setq header-line-format (and diary-header-line-flag
(if (eq major-mode 'diary-mode)
(setq header-line-format (and diary-header-line-flag
;; d-s-p is passed to the diary display function.
(let ((diary-saved-point (point)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment