emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Welle <mwe012008@gmx.net>
To: emacs-orgmode@gnu.org
Subject: Re: function-finding-location?
Date: Sun, 23 Apr 2017 09:07:41 +0200	[thread overview]
Message-ID: <878tmrtxdu.fsf@luisa.c0t0d0s0.de> (raw)
In-Reply-To: <CAOQHXPrgz0sdgdO0PYhcM-oUykAtf_F4mMDp8Dd-mWbC=hC1Eg@mail.gmail.com> (Xebar Saram's message of "Sat, 22 Apr 2017 15:07:20 +0300")

Hello,

Xebar Saram <zeltakc@gmail.com> writes:

> today i saw this in the DOCU
>
> (file+function "path/to/file" function-finding-location)
> A function to find the right location in the file.
>
> i assume you dont just use "function-finding-location" but rather a
> specific function. are there examples for such functions?
something like this would do the trick:

(defun hmw/foo ()
  (goto-char (org-find-exact-headline-in-buffer "boingfoo")))

You can, of course, use regexp or other means of finding the position in
the file.

Does that help?

Regards
hmw

  reply	other threads:[~2017-04-23  7:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-22 12:07 function-finding-location? Xebar Saram
2017-04-23  7:07 ` Michael Welle [this message]
2017-04-23 14:41   ` function-finding-location? Xebar Saram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tmrtxdu.fsf@luisa.c0t0d0s0.de \
    --to=mwe012008@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).