From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Could org-tags-sparse-tree show the hierarchy ? Date: Tue, 19 Sep 2006 16:33:57 +0100 Message-ID: <5b2e206e5c25246ae89a0ba2fbfd2ede@science.uva.nl> References: <8f835a8e0609180718g59fa495fp9d6d36ce8843c1e3@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GPhbt-0000h6-3g for emacs-orgmode@gnu.org; Tue, 19 Sep 2006 11:34:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GPhbs-0000ew-8Q for emacs-orgmode@gnu.org; Tue, 19 Sep 2006 11:34:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPhbs-0000ee-5M for emacs-orgmode@gnu.org; Tue, 19 Sep 2006 11:34:08 -0400 Received: from [64.233.162.204] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GPhex-0007uq-RG for emacs-orgmode@gnu.org; Tue, 19 Sep 2006 11:37:19 -0400 Received: by nz-out-0102.google.com with SMTP id z31so341235nzd for ; Tue, 19 Sep 2006 08:34:07 -0700 (PDT) In-Reply-To: <8f835a8e0609180718g59fa495fp9d6d36ce8843c1e3@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: =?ISO-8859-1?Q? Pierre-Fran=E7ois_Gomez ?= Cc: emacs-orgmode@gnu.org This is because my feeling was that the compacted tree works better for=20= the TAG trees. But I will make this configurable now. - Carsten On Sep 18, 2006, at 15:18, Pierre-Fran=E7ois Gomez wrote: > Hello, > > I recently came across org-mode and decided to give it a try. > > One thing is bugging me, however : when I do a tags search using 'C-c > \' (org-tags-sparse-tree), I'd expect to see the full hierarchy > "leading" to my tagged headlines, but it only shows me the result > (correctly indented, however) and the associated top-level heading. > > I had a look at the offending function and I realized that just > removing "(org-show-hierarchy-above nil)" from the "let" solves my > problem : > > (defun org-tags-sparse-tree (&optional arg match) > "Create a sparse tree according to tags search string MATCH. > MATCH can contain positive and negative selection of tags, like > \"+WORK+URGENT-WITHBOSS\"." > (interactive "P") > (let ((org-show-following-heading nil)) > (org-scan-tags 'sparse-tree (cdr (org-make-tags-matcher match))))) > > For now, I just defined another function which does just that and > bound it to 'C-c \' instead, but I thought I'd post something on the > list because since both org-show-following-heading and > org-show-hierarchy-above are customizable, I can't see the need for > this let... would it cause any bug elsewhere ? > > Or maybe you've already changed that : I'm using the 4.49 version > (couldn't find a public cvs : is there one ?) > > Regards, > > -- Pierre-Fran=E7ois > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477