emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Help] Which function can get a head's context
@ 2013-04-10 23:34 Feng Shu
  2013-04-10 23:37 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Feng Shu @ 2013-04-10 23:34 UTC (permalink / raw)
  To: orgmode-maillinglist


#+begin_example

* head1      :tag1:

#+end_example

How can I get 'head1'


Feng Shu




-- 

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

* Re: [Help] Which function can get a head's context
  2013-04-10 23:34 [Help] Which function can get a head's context Feng Shu
@ 2013-04-10 23:37 ` Bastien
  2013-04-10 23:39   ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2013-04-10 23:37 UTC (permalink / raw)
  To: Feng Shu; +Cc: orgmode-maillinglist

Hi Feng,

Feng Shu <tumashu@gmail.com> writes:

> #+begin_example
>
> * head1      :tag1:
>
> #+end_example
>
> How can I get 'head1'

(nth 4 (org-heading-components))

See also C-h f org-get-heading RET

HTH,

-- 
 Bastien

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

* Re: [Help] Which function can get a head's context
  2013-04-10 23:37 ` Bastien
@ 2013-04-10 23:39   ` Bastien
  2013-04-10 23:54     ` Feng Shu
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2013-04-10 23:39 UTC (permalink / raw)
  To: Feng Shu; +Cc: orgmode-maillinglist

Bastien <bzg@gnu.org> writes:

> (nth 4 (org-heading-components))

... also (org-element-at-point) !

-- 
 Bastien

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

* Re: [Help] Which function can get a head's context
  2013-04-10 23:39   ` Bastien
@ 2013-04-10 23:54     ` Feng Shu
  0 siblings, 0 replies; 4+ messages in thread
From: Feng Shu @ 2013-04-10 23:54 UTC (permalink / raw)
  To: emacs-orgmode

Thanks Bastien
-- 

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

end of thread, other threads:[~2013-04-10 23:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 23:34 [Help] Which function can get a head's context Feng Shu
2013-04-10 23:37 ` Bastien
2013-04-10 23:39   ` Bastien
2013-04-10 23:54     ` Feng Shu

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).