From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: function-finding-location? Date: Sun, 23 Apr 2017 17:41:56 +0300 Message-ID: References: <878tmrtxdu.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0ef3620c076f054dd67e1e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2Ii6-0000yn-8t for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2Ii5-0005mf-Da for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:58 -0400 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]:36973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2Ii5-0005m6-8j for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:57 -0400 Received: by mail-it0-x233.google.com with SMTP id x188so25796031itb.0 for ; Sun, 23 Apr 2017 07:41:57 -0700 (PDT) In-Reply-To: <878tmrtxdu.fsf@luisa.c0t0d0s0.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Michael Welle Cc: org mode --94eb2c0ef3620c076f054dd67e1e Content-Type: text/plain; charset=UTF-8 thx guys z On Sun, Apr 23, 2017 at 10:07 AM, Michael Welle wrote: > Hello, > > Xebar Saram 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 > > > --94eb2c0ef3620c076f054dd67e1e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
thx guys


z

On Sun, Apr 23, 201= 7 at 10:07 AM, Michael Welle <mwe012008@gmx.net> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">Hello,

Xebar Saram <zeltakc@gmail.com&= gt; 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 r= ather a
> specific function. are there examples for such functions?
something like this would do the trick:

(defun hmw/foo ()
=C2=A0 (goto-char (org-find-exact-headline-in-buffer "boingfoo&qu= ot;)))

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

Does that help?

Regards
hmw



--94eb2c0ef3620c076f054dd67e1e--