From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Holst Subject: Re: capture - function-finding-location in TARGET: return value? Date: Mon, 12 Mar 2012 12:37:08 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S73ZA-0005EH-Fb for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 07:37:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S73Z4-0007gz-Qv for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 07:37:27 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:48822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S73Z4-0007gn-KV for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 07:37:22 -0400 Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.30]) by imta24.fe.bosch.de (Postfix) with ESMTP id 786B4B3B881F for ; Mon, 12 Mar 2012 12:36:48 +0100 (CET) Received: from localhost (vsgw3.fe.internet.bosch.com [10.4.98.16]) by vsmta13.fe.internet.bosch.com (Postfix) with SMTP id 69F9F3840783 for ; Mon, 12 Mar 2012 12:37:19 +0100 (CET) In-Reply-To: (Thomas Holst's message of "Mon, 12 Mar 2012 12:30:25 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mode Hi, answering to myself: =B7 Thomas Holst wrote: > Hello, > > I am trying to write a function to find the location where capture will > put the captured item. The manual states, that a target configuration > like > > : (file+function "path/to/file" function-finding-location) > > is possible. My question is, what is the function supposed to reurn? > > - a string with the headline > - a location in the buffer > - ... I looked into org-capture.el and experimented a little and so I found an answer: funtion-finding-location has to put point in the buffer of "file" at the desiered headline and return t if it was sucsessful. At least this works for my usecase. --=20 Mit freundlichen Gr=FC=DFen / Best regards=20 Thomas