emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Looking for some org-mode hooks
@ 2009-05-12 21:44 Keith Swartz
  2009-05-14 12:53 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Swartz @ 2009-05-12 21:44 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

I've recently switched to using org-mode for tracking todo items, and 
I'm finding it to be well worth the effort. I've read through the 
manual, and browsed past messages on the mail archive, but have a few 
questions about whether or not a few enhancements I want to do are 
currently possible in the latest version.

First, is there a hook that gets executed after sorting a subtree? In 
other words, if I'm viewing a subtree as folded/children only, then sort 
it, it changes to display all subtrees. I want it to automatically 
revert back to the visibility I had. I'm hoping I can just set the 
visibility in a hook.

Second, along the same lines, is there a hook that gets executed after 
refiling an item? In this case, I'd like to resort the node to which the 
item has been refiled. So, for instance, if I refile an item with 
priority A to a new node, I'd like that node sorted so that the new item 
appears at or near the top (assuming I sort by priority first).

Thanks in advance,
Keith S.

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

* Re: Looking for some org-mode hooks
  2009-05-12 21:44 Looking for some org-mode hooks Keith Swartz
@ 2009-05-14 12:53 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-05-14 12:53 UTC (permalink / raw)
  To: Keith Swartz; +Cc: emacs-orgmode

We did not have hooks in these locations, but now we do:

org-after-refile-insert-hook
org-after-sorting-entries-or-items-hook

HTH

- Carsten

On May 12, 2009, at 11:44 PM, Keith Swartz wrote:

> Hi there,
>
> I've recently switched to using org-mode for tracking todo items,  
> and I'm finding it to be well worth the effort. I've read through  
> the manual, and browsed past messages on the mail archive, but have  
> a few questions about whether or not a few enhancements I want to do  
> are currently possible in the latest version.
>
> First, is there a hook that gets executed after sorting a subtree?  
> In other words, if I'm viewing a subtree as folded/children only,  
> then sort it, it changes to display all subtrees. I want it to  
> automatically revert back to the visibility I had. I'm hoping I can  
> just set the visibility in a hook.
>
> Second, along the same lines, is there a hook that gets executed  
> after refiling an item? In this case, I'd like to resort the node to  
> which the item has been refiled. So, for instance, if I refile an  
> item with priority A to a new node, I'd like that node sorted so  
> that the new item appears at or near the top (assuming I sort by  
> priority first).
>
> Thanks in advance,
> Keith S.
>
>
>
> _______________________________________________
> 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

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

end of thread, other threads:[~2009-05-14 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12 21:44 Looking for some org-mode hooks Keith Swartz
2009-05-14 12:53 ` Carsten Dominik

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