forked from mirrors/org-mode
Revert "Fix :VISIBILITY: handling of nested "folded" properties"
This reverts commit 383802d063
.
The commit had org-mode process the headlines from bottom to top, which
meant that any changes to the visibility of lower headlines were
overridden/modified by changes higher up the tree. Reverting the commit
causes VISIBILITY to work correctly.
This commit is contained in:
parent
c8ab88cb69
commit
e9215698a2
|
@ -6076,8 +6076,8 @@ With a numeric prefix, show all headlines up to that level."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let (org-show-entry-below state)
|
(let (org-show-entry-below state)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-max))
|
(goto-char (point-min))
|
||||||
(while (re-search-backward
|
(while (re-search-forward
|
||||||
"^[ \t]*:VISIBILITY:[ \t]+\\([a-z]+\\)"
|
"^[ \t]*:VISIBILITY:[ \t]+\\([a-z]+\\)"
|
||||||
nil t)
|
nil t)
|
||||||
(setq state (match-string 1))
|
(setq state (match-string 1))
|
||||||
|
|
Loading…
Reference in a new issue