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.sulli...@baesystems.com (781)262-4553 (office) (978)430-3461 (cell) -----Original Message----- From: Bastien Guerry [mailto:bastiengue...@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.sulli...@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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode