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>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 78673 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca, Juri Linkov <juri <at> linkov.net>
Subject: bug#78673: 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





This bug report was last modified 79 days ago.

Previous Next


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