emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: capture - function-finding-location in TARGET: return value?
       [not found] <ywodk42q5a5q@de.bosch.com>
@ 2012-03-12 11:37 ` Thomas Holst
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Holst @ 2012-03-12 11:37 UTC (permalink / raw)
  To: emacs-orgmode Mode

Hi,

answering to myself:
· Thomas Holst <thomas.holst@de.bosch.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* capture - function-finding-location in TARGET: return value?
@ 2012-03-08 14:47 Thomas Holst
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Holst @ 2012-03-08 14:47 UTC (permalink / raw)
  To: emacs-orgmode

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 searched the manual but did not find an answer.

Thanks.
-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 
DGS-EC/ESE4

Tel.   +49 (711) 811-40681
PC-Fax +49 (711) 811-5182208

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-12 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <ywodk42q5a5q@de.bosch.com>
2012-03-12 11:37 ` capture - function-finding-location in TARGET: return value? Thomas Holst
2012-03-08 14:47 Thomas Holst

Code repositories for project(s) associated with this 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).