emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] need file+function help


From: Bastien
Subject: Re: [O] need file+function help
Date: Sat, 06 Apr 2013 01:09:48 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Subhan,

Subhan Tindall <address@hidden> writes:

> questions:
> 1) are the values gathered by capture available to the function
> specified for file+function, & if so what are their names?

No.

> 2) what is the general template for a function for use with
> file+function, cleanup, return values, etc that would be expected?

The function is expected to find a location where to put the new
entry, not to return any specific value, and if it returns a value,
the value is ignored.  It can also act on the subtree at the location
it has found, but this is slightly abusing the feature I'd say.

> 3) would it be better to extend datetree to datetree+headline for
> entries of this type? it seems like it a pretty usefully
> functionality to have (I can think of 2 or 3 instances i'd regularly
> use this just off the top of my head

"datetree+headline" is improper, because a location in a datetree is
a headline... so maybe your best chance is to use (function ...) or
(file+function ...) and try to see if the function can interactively
prompt for the values you want and edit the location as you want.
But again, this goes beyond the purpose of function, which is to
find to location.

-- 
 Bastien



reply via email to

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