diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-12-06 10:06:21 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-12-06 10:06:21 +0100 |
commit | e9215698a23b86bb77d03ba165a0e2160055a8cb (patch) | |
tree | 9f9eb4b2bd15c1f44b732d3f8d09c97d180f327c | |
parent | c8ab88cb69fa5c0ee6dde5a5fd7cadcbe4337967 (diff) | |
download | org-mode-e9215698a23b86bb77d03ba165a0e2160055a8cb.tar.gz |
Revert "Fix :VISIBILITY: handling of nested "folded" properties"
This reverts commit 383802d063a9f2dd959d5574b226fa8ec7f8be41.
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.
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el index b974e6c..20d4414 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6076,8 +6076,8 @@ With a numeric prefix, show all headlines up to that level." (interactive) (let (org-show-entry-below state) (save-excursion - (goto-char (point-max)) - (while (re-search-backward + (goto-char (point-min)) + (while (re-search-forward "^[ \t]*:VISIBILITY:[ \t]+\\([a-z]+\\)" nil t) (setq state (match-string 1)) |