emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can org-capture-templates be made more flexible?
Date: Thu, 07 Nov 2013 11:58:51 +0800	[thread overview]
Message-ID: <m1a9hgx3pg.fsf@gmail.com> (raw)
In-Reply-To: <87li11lcr4.fsf@bzg.ath.cx> (Bastien's message of "Wed, 06 Nov 2013 17:25:34 +0100")

On 2013-11-07 00:25 +0800, Bastien wrote:
> In that case, using a target like (function ...) could do -- did you
> try this?

thanks for the pointer. I glanced at this option while reading the
org-capture-templates' doc.

From org-capture-set-target-location:

   ((eq (car target) 'function)
    (funcall (nth 1 target))
    (org-capture-put :exact-position (point))
    (setq target-entry-p (and (derived-mode-p 'org-mode) (org-at-heading-p))))

and org-capture-finalize calls save-buffer I think this option requires
a file still.

Thanks,
Leo

  reply	other threads:[~2013-11-07  3:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13  9:59 Can org-capture-templates be made more flexible? Leo Liu
2013-10-13 10:17 ` Suvayu Ali
2013-10-14  1:37   ` Leo Liu
2013-11-06  8:15 ` Bastien
2013-11-06 15:33   ` Leo Liu
2013-11-06 16:25     ` Bastien
2013-11-07  3:58       ` Leo Liu [this message]
2013-11-07  8:52         ` Bastien

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=m1a9hgx3pg.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /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).