emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Re: [Orgmode] bug in the :VISIBILITY: handling of nested "folde


From: Noorul Islam
Subject: [PATCH] Re: [Orgmode] bug in the :VISIBILITY: handling of nested "folded" properties?
Date: Sat, 7 Aug 2010 11:34:18 +0530



On Fri, Jul 30, 2010 at 4:38 PM, Rainer Stengele <address@hidden> wrote:
Having

* headline 1
:PROPERTIES:
:VISIBILITY: folded
:END:
** headline 2.1
 - stuff
** headline 2.1
:PROPERTIES:
:VISIBILITY: folded
:END:
- stuff

C-u C-u <TAB>
   Switch back to the startup visibility of the buffer, i.e. whatever is requested by startup options and ‘VISIBILITY’ properties in individual entries.


does not result in


* headline 1...>


as expected. Instead I get:


* headline 1...>
** headline 2.1...>
** headline 2.1...>


removing the second folded propertiy results correctly in:

* headline 1...>


This looks like a bug in the :VISIBILITY: handling!?



I am not sure whether this is a bug.  But it looks like the above scenario was not considered initially. I might be wrong. 

The attached patch seems to solve this problem.

* lisp/org.el: org-set-visibility-according-to-property ()
  Use backward search instead of forward, so that top hierarchy gets priority.

Thanks and Regards
Noorul

Attachment: org-visibility.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]