From: Stephen Berman <stephen.berman@gmx.net>
To: Glenn Morris <rgm@gnu.org>
Cc: 5477@debbugs.gnu.org
Subject: bug#5477: 23.1.91; diary-unhide-everything sometimes doesn't
Date: Tue, 26 Jan 2010 22:05:00 +0100 [thread overview]
Message-ID: <87fx5s60hv.fsf@escher.home> (raw)
In-Reply-To: <eqaaw07h2r.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 26 Jan 2010 15:21:32 -0500")
On Tue, 26 Jan 2010 15:21:32 -0500 Glenn Morris <rgm@gnu.org> wrote:
> Stephen Berman wrote:
>
>> (defun diary-unhide-everything ()
>> "Show all invisible text in the diary."
>> (kill-local-variable 'diary-selective-display)
>> ! (save-excursion
>> ! (save-restriction
>> ! (widen)
>> ! (remove-overlays (point-min) (point-max) 'invisible 'diary)))
>> (kill-local-variable 'mode-line-format))
>
> This seems fine. Is your save-excursion really necessary?
No, it's superfluous, sorry. That nesting is so common, I didn't stop
to think. Thanks for the heads up.
Steve Berman
*** /tmp/ediff3766uVW 2010-01-26 21:56:24.000000000 +0100
--- /home/steve/bzr/emacs/quickfixes/lisp/calendar/diary-lib.el 2010-01-26 21:55:19.000000000 +0100
***************
*** 804,810 ****
(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)
(kill-local-variable 'mode-line-format))
(defvar original-date) ; bound in diary-list-entries
--- 804,812 ----
(defun diary-unhide-everything ()
"Show all invisible text in the diary."
(kill-local-variable 'diary-selective-display)
! (save-restriction
! (widen)
! (remove-overlays (point-min) (point-max) 'invisible 'diary))
(kill-local-variable 'mode-line-format))
(defvar original-date) ; bound in diary-list-entries
next prev parent reply other threads:[~2010-01-26 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-25 21:38 bug#5477: 23.1.91; diary-unhide-everything sometimes doesn't Stephen Berman
2010-01-26 20:21 ` Glenn Morris
2010-01-26 21:05 ` Stephen Berman [this message]
2010-01-26 21:14 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fx5s60hv.fsf@escher.home \
--to=stephen.berman@gmx.net \
--cc=5477@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.