From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Show hierarchy above a heading Date: Thu, 21 Sep 2006 09:57:52 +0100 Message-ID: <977d1bf4f8c586c9cfeae63cd5e84629@science.uva.nl> References: <45119070.9030907@gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQKO5-0005Ny-SE for emacs-orgmode@gnu.org; Thu, 21 Sep 2006 04:58:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQKO2-0005L2-16 for emacs-orgmode@gnu.org; Thu, 21 Sep 2006 04:58:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQKO1-0005Ke-S7 for emacs-orgmode@gnu.org; Thu, 21 Sep 2006 04:58:25 -0400 Received: from [64.233.182.185] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GQKRV-00067E-A6 for emacs-orgmode@gnu.org; Thu, 21 Sep 2006 05:02:01 -0400 Received: by nf-out-0910.google.com with SMTP id q29so781701nfc for ; Thu, 21 Sep 2006 01:58:24 -0700 (PDT) In-Reply-To: <45119070.9030907@gmail.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: "Daniel J. Sinder" Cc: emacs-orgmode On Sep 20, 2006, at 20:03, Daniel J. Sinder wrote: > With point on a nested heading, is there a way to show just the > hierarchy above? > > Here's the scenario: I have the following in an org file: > * Team Meeting <2006-09-20 Wed> 3pm > ** Discuss Project Foo > *** TODO Ask about latest results > > With the top heading collapsed so that the two below are hidden, the > 3rd heading appears in an agenda. Pressing on it in the > agenda buffer highlights the original item in another buffer. If I > change to that buffer, the point is on the item, but I can't see the > middle heading. What I'd like to do is see the hierarchy above the > TODO item. (Obviously not much of a problem for this simple > example, but for deeper hierarchies, it become more problematic.) > > An alternative would be movement commands (ie, C-c C-u) that work > independent of the current visibility. > > Is there a way to do one or the other of these? When Org-mode exposes a match in an invisible part of a tree, it can do three things: - Just show the match (this is always a headline, and possibly text below the headline, if the match is located there). - Show the hierarchy of headlines above - Show the headline following the match The first one happens always, the others depend on the setting of the variables `org-show-hierarchy-above' and `org-show-following-heading'. But as you noticed correctly, for the exposing caused by commands in the agenda buffer, only the first thing happens. I don't remember why I did it this way, and I will change this behavior and make it dependent on the variables. In the next version, the default for both options in all contexts will be `t', so all three exposures will happen. If you need more control, you will be able to specify the value of the two variables dependent on context. - Carsten