From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Revert "Fix :VISIBILITY: handling of nested "folded" properties" Date: Mon, 6 Dec 2010 10:07:23 +0100 Message-ID: <614CA58B-9D41-45EB-BB27-0C8EA77991EF@gmail.com> References: <871v5v1pd8.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPX2e-0005dp-5q for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 04:07:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPX2d-0001hF-41 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 04:07:27 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:38375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPX2c-0001gg-Sk for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 04:07:27 -0500 Received: by eydd26 with SMTP id d26so19839306eyd.0 for ; Mon, 06 Dec 2010 01:07:26 -0800 (PST) In-Reply-To: <871v5v1pd8.fsf@fastmail.fm> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: Org Mode 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