Roger Mason <rma...@mun.ca> writes:

> 5. Find the heading hierarchy up to the nearest level 1 heading in
>     which point lies.  (How?).
> 6. Concatenate the heading names into a string with a separator
>     (perhaps '_').

See org-get-heading

> If anyone has already done something like this, please point me to the code.  
> I 
> welcome comments on the proposed 'algorithm' and any hnts on how to implement 
> it
> will also be very welcome.  I have not written any emacs-lisp in a long time 
> and am
> revisiting the elisp intro manual.

Start simple and remember that anything you do in Emacs is a command
(with name revealed by C-h k <key binding>).

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to