GNU bug report logs - #78673
outline-revert-buffer-restore-visibility modifies visibility

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Mon, 2 Jun 2025 18:14:01 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

To reply to this bug, email your comments to 78673 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to monnier <at> iro.umontreal.ca, juri <at> linkov.net, bug-gnu-emacs <at> gnu.org:
bug#78673; Package emacs. (Mon, 02 Jun 2025 18:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
New bug report received and forwarded. Copy sent to monnier <at> iro.umontreal.ca, juri <at> linkov.net, bug-gnu-emacs <at> gnu.org. (Mon, 02 Jun 2025 18:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: bug-gnu-emacs <at> gnu.org
Subject: outline-revert-buffer-restore-visibility modifies visibility
Date: Mon, 02 Jun 2025 14:13:02 -0400
Package: Emacs
Version: 31.0.50


While playing in bug#78665 I noticed the following bug:

    src/emacs -Q lisp/transient.el -f outline-minor-mode
    M-: (hide-sublevels 1000) RET
    M-: (funcall (outline-revert-buffer-restore-visibility)) RET

Notice that after the first `M-:` all the definitions' first lines are
visible (and their bodies are hidden), whereas after the second `M-:`
only the `;;;` headings are visible and none of the actual code.
This seems to be due to the design of this save&restore code which
presumes that all the hiding is applied always to whole subtrees.


        Stefan





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Wed, 04 Jun 2025 20:41:03 GMT) Full text and rfc822 format available.

Notification sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
bug acknowledged by developer. (Wed, 04 Jun 2025 20:41:03 GMT) Full text and rfc822 format available.

Message #10 received at 78673-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> linkov.net>
Cc: 78673-done <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Jonas Bernoulli <jonas <at> bernoul.li>, 78665-done <at> debbugs.gnu.org
Subject: Re: bug#78665: 31.0.50; Very slow saves
Date: Wed, 04 Jun 2025 16:40:36 -0400
> I've completed testing your patch and found no problems.

Thanks, pushed to `master`,


        Stefan





This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.