emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Subhan Tindall <subhan.tindall@rentrakmail.com>
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: need file+function help
Date: Sat, 06 Apr 2013 01:09:48 +0200	[thread overview]
Message-ID: <87mwtc32k9.fsf@bzg.ath.cx> (raw)
In-Reply-To: <CAKKEbDswZT2AXx7TnQb_KTiFcz4yvjPZ-0t6HQkHAutYQ7dpZA@mail.gmail.com> (Subhan Tindall's message of "Thu, 4 Apr 2013 11:42:44 -0700")

Hi Subhan,

Subhan Tindall <subhan.tindall@rentrakmail.com> 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	other threads:[~2013-04-06  0:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 18:42 need file+function help Subhan Tindall
2013-04-05 23:09 ` Bastien [this message]
2013-04-09 22:37   ` Subhan Tindall
2013-04-09 22:57     ` John Hendy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwtc32k9.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=subhan.tindall@rentrakmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).