diff options
| author | Stephen Berman | 2010-01-26 20:00:54 -0800 |
|---|---|---|
| committer | Glenn Morris | 2010-01-26 20:00:54 -0800 |
| commit | 7d82a7383bdd401eb06105f3eab364d98116dc37 (patch) | |
| tree | 728f89a21b39736f7fe35c923ae09c8924c061dd | |
| parent | 1d78a746965605e9ed6a3a377c5dd63f692b3ff6 (diff) | |
| download | emacs-7d82a7383bdd401eb06105f3eab364d98116dc37.tar.gz emacs-7d82a7383bdd401eb06105f3eab364d98116dc37.zip | |
Fix bug#5477.
Stephen Berman <stephen.berman at gmx.net>:
(diary-unhide-everything): Handle narrowed buffers.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/diary-lib.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5aa791342f2..8ac8d5ed450 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-27 Stephen Berman <stephen.berman@gmx.net> | ||
| 2 | |||
| 3 | * calendar/diary-lib.el (diary-unhide-everything): Handle narrowed | ||
| 4 | buffers. (Bug#5477) | ||
| 5 | |||
| 1 | 2010-01-27 David De La Harpe Golden <david@harpegolden.net> | 6 | 2010-01-27 David De La Harpe Golden <david@harpegolden.net> |
| 2 | 7 | ||
| 3 | * files.el (delete-directory): Handle moving to trash without | 8 | * files.el (delete-directory): Handle moving to trash without |
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index e1400cc2fa6..8fb464aa7e6 100644 --- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el | |||
| @@ -804,7 +804,9 @@ LIST-ONLY is non-nil, in which case it just returns the list." | |||
| 804 | (defun diary-unhide-everything () | 804 | (defun diary-unhide-everything () |
| 805 | "Show all invisible text in the diary." | 805 | "Show all invisible text in the diary." |
| 806 | (kill-local-variable 'diary-selective-display) | 806 | (kill-local-variable 'diary-selective-display) |
| 807 | (remove-overlays (point-min) (point-max) 'invisible 'diary) | 807 | (save-restriction ; bug#5477 |
| 808 | (widen) | ||
| 809 | (remove-overlays (point-min) (point-max) 'invisible 'diary)) | ||
| 808 | (kill-local-variable 'mode-line-format)) | 810 | (kill-local-variable 'mode-line-format)) |
| 809 | 811 | ||
| 810 | (defvar original-date) ; bound in diary-list-entries | 812 | (defvar original-date) ; bound in diary-list-entries |