From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: [PATCH] Revert "Fix :VISIBILITY: handling of nested "folded" properties" Date: Sun, 05 Dec 2010 23:45:07 -0500 Message-ID: <871v5v1pd8.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37206 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPSwo-0006Z9-1N for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 23:45:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPSwm-0004ar-Tv for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 23:45:09 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:48841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPSwm-0004an-Nk for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 23:45:08 -0500 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 764461AE for ; Sun, 5 Dec 2010 23:45:08 -0500 (EST) Received: from archdesk (67-197-63-212.rh2.dyn.cm.comporium.net [67.197.63.212]) by mail.messagingengine.com (Postfix) with ESMTPSA id 2C8EF40C16D for ; Sun, 5 Dec 2010 23:45:08 -0500 (EST) In-Reply-To: (Cassio Koshikumo's message of "Mon, 29 Nov 2010 14:04:34 -0200") 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: Org Mode 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