Dilip <id...@protonmail.com> writes: > You get ~Wrong type argument: stringp, nil~ error when you > =org-babel-tangle= on a source block in capture buffer. > > To reproduce: > > 1. set a template > (setq org-capture-templates > '(("t" "Test" entry (file "/tmp/debug.org") > "* TODO %?\n %i\n %a"))) > > 2. Create a source block (C-c C-, s) add :tangle header > 3. Tangle it. (C-u C-c C-v C-t) > > In fact,at the same time with capture buffer active if you go the file > (/tmp/debug.org) and do tangle on so far written src block it tangles > properly.
That's because capture buffer is an indirect buffer and indirect buffers are technically not associated with any file. We should probably fix handling indirect buffers across Org mode. Confirmed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>