emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Echo heading hierarchy at point
@ 2016-07-21 17:02 Roelli, Charles A
  0 siblings, 0 replies; 4+ messages in thread
From: Roelli, Charles A @ 2016-07-21 17:02 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

If I have this structure, with point marked by the "$":

* Heading Level 1
** Heading Level 2
<normal text here>$

Is there a way to have the current place in the outline [Heading Level 1 => Heading Level 2] temporarily echoed in the minibuffer? Also important is that the point shouldn't have to be on the heading title for it to work.

At the moment I am using 'which-function-mode' to accomplish something similar: it displays the current subheading in the mode line. However it relies on Imenu (so it needs to be rescanned when new headings are added). If anybody knows a better way I would be interested in hearing about it.

Cheers,
Charles

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

* Echo heading hierarchy at point
@ 2016-07-25  9:56 Roelli, Charles A
  2016-07-26  8:42 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Roelli, Charles A @ 2016-07-25  9:56 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Sent this in a few days ago, and it does not seem to have gone through: 

-------

If I have this structure, with point marked by the "$":

* Heading Level 1
** Heading Level 2
<normal text here>$

Is there a way to have the current place in the outline [Heading Level 1 => Heading Level 2] temporarily echoed in the minibuffer? Also important is that the point shouldn't have to be on the heading title for it to work.

At the moment I am using 'which-function-mode' to accomplish something similar: it displays the current subheading in the mode line. However it relies on Imenu (so it needs to be rescanned when new headings are added). If anybody knows a better way I would be interested in hearing about it.

Cheers,
Charles

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

* Re: Echo heading hierarchy at point
  2016-07-25  9:56 Echo heading hierarchy at point Roelli, Charles A
@ 2016-07-26  8:42 ` Nicolas Goaziou
  2016-07-27  7:41   ` Roelli, Charles A
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2016-07-26  8:42 UTC (permalink / raw)
  To: Roelli, Charles A; +Cc: emacs-orgmode@gnu.org

Hello,

"Roelli, Charles A" <charles.roelli13@imperial.ac.uk> writes:

> Sent this in a few days ago, and it does not seem to have gone through: 
>
> -------
>
> If I have this structure, with point marked by the "$":
>
> * Heading Level 1
> ** Heading Level 2
> <normal text here>$
>
> Is there a way to have the current place in the outline [Heading Level
> 1 => Heading Level 2] temporarily echoed in the minibuffer? Also
> important is that the point shouldn't have to be on the heading title
> for it to work.

See `org-display-outline-path' and `org-get-outline-path'.


Regards,

-- 
Nicolas Goaziou

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

* Re: Echo heading hierarchy at point
  2016-07-26  8:42 ` Nicolas Goaziou
@ 2016-07-27  7:41   ` Roelli, Charles A
  0 siblings, 0 replies; 4+ messages in thread
From: Roelli, Charles A @ 2016-07-27  7:41 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode@gnu.org

Thank you!

`(org-display-outline-path nil t)’ gets it done.


> On Jul 26, 2016, at 9:42 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> 
> Hello,
> 
> "Roelli, Charles A" <charles.roelli13@imperial.ac.uk> writes:
> 
>> Sent this in a few days ago, and it does not seem to have gone through: 
>> 
>> -------
>> 
>> If I have this structure, with point marked by the "$":
>> 
>> * Heading Level 1
>> ** Heading Level 2
>> <normal text here>$
>> 
>> Is there a way to have the current place in the outline [Heading Level
>> 1 => Heading Level 2] temporarily echoed in the minibuffer? Also
>> important is that the point shouldn't have to be on the heading title
>> for it to work.
> 
> See `org-display-outline-path' and `org-get-outline-path'.
> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou


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

end of thread, other threads:[~2016-07-27  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-25  9:56 Echo heading hierarchy at point Roelli, Charles A
2016-07-26  8:42 ` Nicolas Goaziou
2016-07-27  7:41   ` Roelli, Charles A
  -- strict thread matches above, loose matches on Subject: below --
2016-07-21 17:02 Roelli, Charles A

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).