Ihor Radchenko <yanta...@gmail.com> writes: > Ihor Radchenko <yanta...@gmail.com> writes: > >> I've seen multiple issues coming from the above behavior. >> Hence, I'd like to propose Org to call `hack-local-variables' early >> during startup. The patch is attached. > > Applied onto main via e22b4eb7a. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e22b4eb7aab9668826dc8ba76ea1d1d7b144a856
Unfortunately, I had to revert the patch. It creates too many issues with no good workarounds. I instead asked Emacs devs to implement an API to let major mode decide when local variables are loaded. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 Best, Ihor