all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Could org-tags-sparse-tree show the hierarchy ?
@ 2006-09-18 14:18 Pierre-François Gomez
  2006-09-19 15:33 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre-François Gomez @ 2006-09-18 14:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Could org-tags-sparse-tree show the hierarchy ?
  2006-09-18 14:18 Could org-tags-sparse-tree show the hierarchy ? Pierre-François Gomez
@ 2006-09-19 15:33 ` Carsten Dominik
  2006-09-19 19:40   ` Pierre-François Gomez
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2006-09-19 15:33 UTC (permalink / raw)
  To:  Pierre-François Gomez ; +Cc: emacs-orgmode

This is because my feeling was that the compacted tree works better for 
the TAG trees.  But I will make this configurable now.

- Carsten

On Sep 18, 2006, at 15:18, Pierre-François 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çois
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Could org-tags-sparse-tree show the hierarchy ?
  2006-09-19 15:33 ` Carsten Dominik
@ 2006-09-19 19:40   ` Pierre-François Gomez
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre-François Gomez @ 2006-09-19 19:40 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

On 19/09/06, Carsten Dominik <carsten.dominik@gmail.com> wrote:
> This is because my feeling was that the compacted tree works better for
> the TAG trees.

Ah, ok. I use my todo items as actions and their parent hierarchy
gives me useful context : the tags allow me to give my actions some
indication about where or when I can do them (like the contexts of in
gtd), whereas the parents give me a clear indication of why I have to
do them (much like the areas of responsibility in gtd, too).

That's why I wanted to modify this function.

> the TAG trees.  But I will make this configurable now.

cool, thank you :)

By the way, you didn't answer about the public cvs : do you have one
or do you prefer to rely on regular releases ?

-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-19 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18 14:18 Could org-tags-sparse-tree show the hierarchy ? Pierre-François Gomez
2006-09-19 15:33 ` Carsten Dominik
2006-09-19 19:40   ` Pierre-François Gomez

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.