From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Top-level headers in org-sparse-tree Date: Sat, 13 Sep 2008 18:18:17 +0200 Message-ID: References: <4faa54dc0809090706o7d756aa9n4b718967c9f26605@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KebH8-0004sl-Db for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KebH6-0004qr-OY for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:22 -0400 Received: from [199.232.76.173] (port=39436 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KebH6-0004qd-GH for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:20 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:2101) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KebH6-0001Mn-8H for emacs-orgmode@gnu.org; Sat, 13 Sep 2008 15:59:20 -0400 Received: by ug-out-1314.google.com with SMTP id z36so429439uge.17 for ; Sat, 13 Sep 2008 12:59:19 -0700 (PDT) In-Reply-To: <4faa54dc0809090706o7d756aa9n4b718967c9f26605@mail.gmail.com> 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: Iris Jackson Cc: emacs-orgmode@gnu.org Hi Iris, Org considers the version of the file with only top-levels shown as the most folded version and does not provide commands that will hide these. If the sparse tree exposes an entry deep in the hierarchy, it will also show the entire headline hierarchy above it. In another reply to your message, Giovanni has pointed out correctly that the variable org- show-hierarchy-above can be used to turn off this feature. However, the top-level headlines are always excluded from this, they are always visible. Maybe you have set up your file in a way that each project is a top-level headline? A way out would then be to demote all these to level two under a top-level headline "Projects" or so. If you then turn off `org-show-hierarchy-above', maybe you will get closer to the view you did expect. HTH - Carsten On Sep 9, 2008, at 4:06 PM, Iris Jackson wrote: > Hi, > > I recently started using org mode and I really like it. I have a > single file that contains all information about a project like > TODOs, project specs, user documentation, development notes, etc. > For example, the way I generate the project specs is to first create > a sparse tree matching on the tag I assigned to the specs, then HTML > exporting it. > > The problem I encountered is that org-tags-sparse-tree shows top- > level headers even if they don't contain the selected tag. Is there > a simple way to turn that off? For example, if I have a top level > section called "Bugs", and it does not contain the "project spec" > tag, then I don't want it to show up in the result :-) > > I think this functionality is controlled by org-make-tags-matcher on > line 9382 of org.el (version 6.06b), but this function is too > intimidating for me to try to change it. > > Please advise. Thanks! > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode