Hi Sullivan, "Sullivan, Gregory (US SSA)" <gregory.sulli...@baesystems.com> writes:
> 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: Sorry, I overlooked your request. > (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"))) Actually, you can already do this: (setq org-capture-templates '(("j" "Journal" entry (file+headline buffer-file-name "Journal") "* %a\n\n%i")) ("t" "To Do" entry (file+headline buffer-file-name "Tasks") "* TODO %? %i\n"))) See the documentation about file specification. So I removed (currentfile), which is simply (file buffer-file-name)). HTH, -- Bastien