diff --git a/lisp/org.el b/lisp/org.el index 19b28a3..c8409b5 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5962,8 +5962,8 @@ With a numeric prefix, show all headlines up to that level." (interactive) (let (org-show-entry-below state) (save-excursion - (goto-char (point-min)) - (while (re-search-forward + (goto-char (point-max)) + (while (re-search-backward "^[ \t]*:VISIBILITY:[ \t]+\\([a-z]+\\)" nil t) (setq state (match-string 1))