Richard Lawrence wrote:
> Sébastien Vauban <
address@hidden> writes:
>> "Filippo A. Salustri" wrote:
>>> I would really like to be able to vary the file into which a captured item
>>> goes. Specifically, I'd like to insert the item into whatever file I was
>>> visiting when I started the capture.
>
>> You have to use backquotes so that expressions are considered as code to
>> execute, instead of data. See Emacs manual.
>
> I'm not sure that backquotes will do what the OP wants. Backquotes will
> allow the OP to compute the value of a target file at the time the (setq
> org-capture templates ...) form is evaluated. The OP needs a way to
> determine the target file at the time of capture (right?), not at the time
> the variable is set.
You're definitely right. I missed the distinction "at Org launch time" vs "at