diff lisp/calendar/diary-lib.el @ 106993:ba0145049d09

Fix bug#5477. Stephen Berman <stephen.berman at gmx.net>: (diary-unhide-everything): Handle narrowed buffers.
author Glenn Morris <rgm@gnu.org>
date Tue, 26 Jan 2010 20:00:54 -0800
parents 1d1d5d9bd884
children 10a10fc8caf6
line wrap: on
line diff
--- a/lisp/calendar/diary-lib.el	Tue Jan 26 22:36:36 2010 -0500
+++ b/lisp/calendar/diary-lib.el	Tue Jan 26 20:00:54 2010 -0800
@@ -804,7 +804,9 @@
 (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