Re: [Orgmode] [PATCH] Revert Fix :VISIBILITY: handling of nested folded properties

2010-12-06 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Dec 6, 2010, at 5:45 AM, Matt Lundin wrote:


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.
---
lisp/org.el |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 66514a2..4b39c9c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6073,8 +6073,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))
--
1.7.3.2


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Revert Fix :VISIBILITY: handling of nested folded properties

2010-12-05 Thread Matt Lundin
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.
---
 lisp/org.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 66514a2..4b39c9c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6073,8 +6073,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))
-- 
1.7.3.2


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode