all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sullivan, Gregory (US SSA)" <gregory.sullivan@baesystems.com>
To: Bastien <bzg@altern.org>
Cc: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: RE: using (id "Name") target in org-capture-templates
Date: Sun, 27 Feb 2011 20:38:00 -0500	[thread overview]
Message-ID: <E1Pts3p-0008QM-Gy@eggs.gnu.org> (raw)
In-Reply-To: <87wrklprxg.fsf@altern.org>

The way I understood your patch is that I can use (currentfile) as _the_ target expression in a capture template.  What I was requesting was to use 'capturefile' _within_ a file+headline target expressions. Let me re-include a motivating example - as your citation didn't include it:

 (setq org-capture-templates
   '(("j" "Journal" entry (file+headline currentfile "Journal") "* %a\n\n%i"))
     ("t" "To Do" entry (file+headline currentfile "Tasks") "* TODO %? %i\n")))

which does not seem to be implemented in the current git version, unless I've completely messed up my orgmode git checkout.

Possibly this could be done by checking for the symbol 'currentfile in org-capture-target-buffer, and using (buffer-file-name).
Do you think that would work?

Thanks again.
-- Greg
-- 
Greg Sullivan          gregory.sullivan@baesystems.com
(781)262-4553 (office) (978)430-3461 (cell)


-----Original Message-----
From: Bastien Guerry [mailto:bastienguerry@googlemail.com] On Behalf Of Bastien
Sent: Sunday, February 27, 2011 6:37 AM
To: Sullivan, Gregory (US SSA)
Cc: Giovanni Ridolfi; Emacs-orgmode@gnu.org
Subject: Re: [Orgmode] using (id "Name") target in org-capture-templates

Hi Gregory,

"Sullivan, Gregory (US SSA)" <gregory.sullivan@baesystems.com> writes:

> It would be quite useful if I could use currentfile in place of
> "path/to/file" in the various Target patterns.  That is, it would be
> nice to write something like:

This is already implemented in Org's git version.  See the email you're
replying to, I gave the explanations.

Thanks,

-- 
 Bastien

  reply	other threads:[~2011-02-28  1:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-22 19:33 using (id "Name") target in org-capture-templates Sullivan, Gregory (US SSA)
2010-12-23 11:41 ` Giovanni Ridolfi
2011-01-06 16:54   ` Sullivan, Gregory (US SSA)
2011-02-11 10:21     ` Bastien
2011-02-12 18:09       ` [Accepted] " Bastien Guerry
2011-02-22 18:55       ` Sullivan, Gregory (US SSA)
2011-02-27 11:37         ` Bastien
2011-02-28  1:38           ` Sullivan, Gregory (US SSA) [this message]
     [not found] <20110228040226.9CDE5EADE@mx.altern.org>
2011-03-06 17:08 ` Bastien
2011-03-06 19:57   ` Sullivan, Gregory (US SSA)

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

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

  git send-email \
    --in-reply-to=E1Pts3p-0008QM-Gy@eggs.gnu.org \
    --to=gregory.sullivan@baesystems.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=bzg@altern.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.