all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Show hierarchy above a heading
@ 2006-09-20 19:03 Daniel J. Sinder
  2006-09-21  8:57 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel J. Sinder @ 2006-09-20 19:03 UTC (permalink / raw)
  To: emacs-orgmode

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 <SPC> 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?

Thanks,
Dan

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

* Re: Show hierarchy above a heading
  2006-09-20 19:03 Show hierarchy above a heading Daniel J. Sinder
@ 2006-09-21  8:57 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2006-09-21  8:57 UTC (permalink / raw)
  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 <SPC> 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

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

end of thread, other threads:[~2006-09-21  8:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-20 19:03 Show hierarchy above a heading Daniel J. Sinder
2006-09-21  8:57 ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.