On 08/12/2022 22:12, Alexei Gilev wrote:

However, org-capture buffers are indirect buffers, so the |buffer-file-name is nil, so it fails.|

Org sources are full of

    (buffer-file-name (buffer-base-buffer))

expressions. Unfortunately there are enough bugs due to direct usage of `buffer-file-name' as well.

You might be interested in org-attach as an alternative (I do not have a ready to use recipe for your particular task), but recently added `org--confirm-resource-safe' is affected by this kind of bugs.

Reply via email to