Derek Chen-Becker <de...@chen-becker.org> writes: > OK, I can start working on the new function and plumb it in. I agree that > "org-base-buffer-file-name" would be better.
Thanks in advance! Do note that we still cannot blindly replace every instance of buffer-file-name with the new function. At least a cursory case-by-case check is necessary to make sure that logic will not be broken. > ... For the case you mentioned > about an Org buffer not yet associated with a file, that seems like a > complication that we can't solve at this level. Do we leave that as a known > issue, or are there straightforward ways to maybe deal with that? It feels > like that may be case-by-case. It will certainly be case-by-case. Sometimes, the code can only be evaluated in a file buffer. Ever. Sometimes not. This one is rather theoretical. -- Ihor Radchenko // yantar92, Org mode maintainer, 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>