From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Feature request: setq org-agenda-follow-indirect 'parent Date: Sat, 31 Mar 2012 13:40:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDwfu-0006uH-Jp for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 07:40:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDwft-0001o3-19 for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 07:40:54 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:61739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDwfs-0001nx-QP for emacs-orgmode@gnu.org; Sat, 31 Mar 2012 07:40:52 -0400 Received: by vcbfk14 with SMTP id fk14so1111127vcb.0 for ; Sat, 31 Mar 2012 04:40:51 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hi all, when browsing my TODO items in the agenda, I wish I could display then in an indirect buffer. But as I structure my stuff, displaying the tree with a TODO item as root is often useless. Indeed, within my PROJECT items, I differentiate between TODO and support (notes, references) children ; for instance #+BEGIN_SRC org ,* PROJECT My project ,** References ,*** Ref 1 ,*** Ref 2 ,** Notes ,*** Note 1 ,*** Note 2 ,** TODO Todo item 1 ,** TODO Todo item 2 #+END_SRC In this example, in order to work on, or even decide anything about "Todo item 1", chances are that I'd also need to see the contents of the "References" and "Notes" items ; so the tree I'd need to see in the indirect buffer should have the *parent* of "Todo item 1" as root, instead of "Todo item 1" itself. It seems rather easy to achieve, since `org-agenda-do-context-action' calls `org-agenda-tree-to-indirect-buffer', which is supposed to deal with this case when called with a numerical prefix argument ; so I did give it a try but couldn't get it to work properly :-( Cheers, Nicolas