emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to go to an Org headline programmatically?
@ 2023-07-06  4:01 Marcin Borkowski
  2023-07-06  4:10 ` Samuel Wales
  2023-07-07 10:10 ` Richard Lawrence
  0 siblings, 2 replies; 3+ messages in thread
From: Marcin Borkowski @ 2023-07-06  4:01 UTC (permalink / raw)
  To: Org-Mode mailing list

Hi all,

I want to find an Org headline in Elisp.  No need to make it visible,
for example - just move the point to the heading with a given title (it
may even be within `save-excursion', as in "go there, do something, go
back").  `org-link-search' seems to do what I want, but it does a lot
more - is there some simpler function to do that?

TIA,

-- 
Marcin Borkowski
http://mbork.pl


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

* Re: How to go to an Org headline programmatically?
  2023-07-06  4:01 How to go to an Org headline programmatically? Marcin Borkowski
@ 2023-07-06  4:10 ` Samuel Wales
  2023-07-07 10:10 ` Richard Lawrence
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2023-07-06  4:10 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

i have e.g. (let (org-refile-target-verify-function) (org-refile '(4))
for interactive; ther emight be a place to put the header name or id.


On 7/5/23, Marcin Borkowski <mbork@mbork.pl> wrote:
> Hi all,
>
> I want to find an Org headline in Elisp.  No need to make it visible,
> for example - just move the point to the heading with a given title (it
> may even be within `save-excursion', as in "go there, do something, go
> back").  `org-link-search' seems to do what I want, but it does a lot
> more - is there some simpler function to do that?
>
> TIA,
>
> --
> Marcin Borkowski
> http://mbork.pl
>
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com


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

* Re: How to go to an Org headline programmatically?
  2023-07-06  4:01 How to go to an Org headline programmatically? Marcin Borkowski
  2023-07-06  4:10 ` Samuel Wales
@ 2023-07-07 10:10 ` Richard Lawrence
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Lawrence @ 2023-07-07 10:10 UTC (permalink / raw)
  To: Marcin Borkowski, Org-Mode mailing list

Hi Marcin,

Marcin Borkowski <mbork@mbork.pl> writes:

> I want to find an Org headline in Elisp.  No need to make it visible,
> for example - just move the point to the heading with a given title (it
> may even be within `save-excursion', as in "go there, do something, go
> back").  `org-link-search' seems to do what I want, but it does a lot
> more - is there some simpler function to do that?

Do any of

org-find-top-headline
org-find-exact-heading-in-directory
org-find-exact-headline-in-buffer

do what you want?

-- 
Best,
Richard


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

end of thread, other threads:[~2023-07-07 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06  4:01 How to go to an Org headline programmatically? Marcin Borkowski
2023-07-06  4:10 ` Samuel Wales
2023-07-07 10:10 ` Richard Lawrence

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