Subject: bug#78673: closed (Re: bug#78665: 31.0.50; Very slow saves)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 04 Jun 2025 20:41:03 +0000

Your bug report

#78673: outline-revert-buffer-restore-visibility modifies visibility

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78673: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78673
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#78665: 31.0.50; Very slow saves
From: Stefan Monnier <[email-masked]>
To: Juri Linkov <[email-masked]>
Cc: [email-masked], Eli Zaretskii <[email-masked]>, Jonas Bernoulli <[email-masked]>, [email-masked]
Date: Wed, 04 Jun 2025 16:40:36 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> I've completed testing your patch and found no problems.

Thanks, pushed to `master`,

        Stefan

Subject: outline-revert-buffer-restore-visibility modifies visibility
From: Stefan Monnier <[email-masked]>
To: [email-masked]
Date: Mon, 02 Jun 2025 14:13:02 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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