emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] capture - function-finding-location in TARGET: return value?


From: Thomas Holst
Subject: Re: [O] capture - function-finding-location in TARGET: return value?
Date: Mon, 12 Mar 2012 12:37:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

Hi,

answering to myself:
· Thomas Holst <address@hidden> 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.

-- 
Mit freundlichen Grüßen / Best regards 

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]