emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Iris Jackson <iris.a.jackson@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Top-level headers in org-sparse-tree
Date: Sat, 13 Sep 2008 18:18:17 +0200	[thread overview]
Message-ID: <BDC0ED99-4321-4C9F-B5B5-6AD927732920@uva.nl> (raw)
In-Reply-To: <4faa54dc0809090706o7d756aa9n4b718967c9f26605@mail.gmail.com>

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

  parent reply	other threads:[~2008-09-13 19:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09 14:06 Top-level headers in org-sparse-tree Iris Jackson
2008-09-10 14:30 ` Bernt Hansen
2008-09-10 14:40 ` R: " Giovanni Ridolfi
2008-09-10 15:20   ` Giovanni Ridolfi
2008-09-13 16:18 ` Carsten Dominik [this message]
2014-11-17  7:54   ` Adam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BDC0ED99-4321-4C9F-B5B5-6AD927732920@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=iris.a.jackson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).