From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Looking for some org-mode hooks Date: Thu, 14 May 2009 14:53:08 +0200 Message-ID: <1A7B6B12-3F2E-4F25-BC87-06B001A9670D@gmail.com> References: <4A09EDC3.9030507@oneroad.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4aRY-0001bT-CW for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:53:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4aRT-0001Zk-Gf for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:53:47 -0400 Received: from [199.232.76.173] (port=44522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4aRT-0001Zf-9x for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:53:43 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:27028) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4aRS-0001z7-OL for emacs-orgmode@gnu.org; Thu, 14 May 2009 08:53:42 -0400 Received: by ey-out-1920.google.com with SMTP id 13so298729eye.24 for ; Thu, 14 May 2009 05:53:41 -0700 (PDT) In-Reply-To: <4A09EDC3.9030507@oneroad.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: Keith Swartz Cc: emacs-orgmode@gnu.org 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