From: "Pierre-François Gomez" <pef.gomez@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Could org-tags-sparse-tree show the hierarchy ?
Date: Mon, 18 Sep 2006 16:18:16 +0200 [thread overview]
Message-ID: <8f835a8e0609180718g59fa495fp9d6d36ce8843c1e3@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
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çois
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2006-09-18 14:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 14:18 Pierre-François Gomez [this message]
2006-09-19 15:33 ` Could org-tags-sparse-tree show the hierarchy ? Carsten Dominik
2006-09-19 19:40 ` Pierre-François Gomez
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=8f835a8e0609180718g59fa495fp9d6d36ce8843c1e3@mail.gmail.com \
--to=pef.gomez@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).