Mercurial > emacs
changeset 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 | 405563a1dc5c |
children | 8b0707b50290 |
files | lisp/ChangeLog lisp/calendar/diary-lib.el |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Tue Jan 26 22:36:36 2010 -0500 +++ b/lisp/ChangeLog Tue Jan 26 20:00:54 2010 -0800 @@ -1,3 +1,8 @@ +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
--- 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