Commit 7d82a738 authored by Stephen Berman's avatar Stephen Berman Committed by Glenn Morris

Fix bug#5477.

Stephen Berman  <stephen.berman at gmx.net>:

(diary-unhide-everything): Handle narrowed buffers.
parent 1d78a746
2010-01-27 Stephen Berman <stephen.berman@gmx.net>
* calendar/diary-lib.el (diary-unhide-everything): Handle narrowed
buffers. (Bug#5477)
2010-01-27 David De La Harpe Golden <david@harpegolden.net>
* files.el (delete-directory): Handle moving to trash without
......
......@@ -804,7 +804,9 @@ LIST-ONLY is non-nil, in which case it just returns the list."
(defun diary-unhide-everything ()
"Show all invisible text in the diary."
(kill-local-variable 'diary-selective-display)
(remove-overlays (point-min) (point-max) 'invisible 'diary)
(save-restriction ; bug#5477
(widen)
(remove-overlays (point-min) (point-max) 'invisible 'diary))
(kill-local-variable 'mode-line-format))
(defvar original-date) ; bound in diary-list-entries
......
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