From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: function-finding-location? Date: Sun, 23 Apr 2017 09:07:41 +0200 Message-ID: <878tmrtxdu.fsf@luisa.c0t0d0s0.de> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2Bcg-0004Dx-3d for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 03:07:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2Bcc-0006ux-W7 for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 03:07:54 -0400 Received: from mout.gmx.net ([212.227.15.19]:51557) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2Bcc-0006uE-MB for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 03:07:50 -0400 Received: from stella.c0t0d0s0.de ([89.204.153.176]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MaZWz-1cibTE3Ijp-00KBX3 for ; Sun, 23 Apr 2017 09:07:45 +0200 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 25697C50E6 for ; Sun, 23 Apr 2017 09:07:41 +0200 (CEST) In-Reply-To: (Xebar Saram's message of "Sat, 22 Apr 2017 15:07:20 +0300") 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: emacs-orgmode@gnu.org 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