From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Top-level headers in org-sparse-tree Date: Wed, 10 Sep 2008 10:30:45 -0400 Message-ID: <87iqt4dqei.fsf@gollum.intra.norang.ca> References: <4faa54dc0809090706o7d756aa9n4b718967c9f26605@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdQia-00060K-3d for emacs-orgmode@gnu.org; Wed, 10 Sep 2008 10:30:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdQiX-0005x4-Vm for emacs-orgmode@gnu.org; Wed, 10 Sep 2008 10:30:51 -0400 Received: from [199.232.76.173] (port=34654 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdQiX-0005wv-O4 for emacs-orgmode@gnu.org; Wed, 10 Sep 2008 10:30:49 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:49858) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdQiX-0000hk-Nl for emacs-orgmode@gnu.org; Wed, 10 Sep 2008 10:30:49 -0400 In-Reply-To: <4faa54dc0809090706o7d756aa9n4b718967c9f26605@mail.gmail.com> (Iris Jackson's message of "Tue\, 9 Sep 2008 10\:06\:01 -0400") 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 "Iris Jackson" writes: > 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! You can highlight the region you want to export then M-x narrow-to-region Do your export and then M-x widen to restrict what is included in the export. Hope that helps. -Bernt