From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Swartz Subject: Looking for some org-mode hooks Date: Tue, 12 May 2009 14:44:35 -0700 Message-ID: <4A09EDC3.9030507@oneroad.com> Reply-To: Keith Swartz Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3znL-0002Er-GW for emacs-orgmode@gnu.org; Tue, 12 May 2009 17:45:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3znG-0002Ee-4E for emacs-orgmode@gnu.org; Tue, 12 May 2009 17:45:50 -0400 Received: from [199.232.76.173] (port=54595 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3znG-0002Eb-09 for emacs-orgmode@gnu.org; Tue, 12 May 2009 17:45:46 -0400 Received: from mx20.gnu.org ([199.232.41.8]:46658) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3znF-0005Lc-Cs for emacs-orgmode@gnu.org; Tue, 12 May 2009 17:45:45 -0400 Received: from smtpauth01.csee.onr.siteprotect.com ([64.26.60.145]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3znD-0006ky-7I for emacs-orgmode@gnu.org; Tue, 12 May 2009 17:45:43 -0400 Received: from [192.168.1.146] (unknown [98.203.142.243]) (Authenticated sender: kswartz2@oneroad.com) by smtpauth01.csee.onr.siteprotect.com (Postfix) with ESMTP id 056D41C806E for ; Tue, 12 May 2009 16:45:40 -0500 (CDT) 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: emacs-orgmode@gnu.org 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.