Hello, Kévin Le Gouguec <kevin.legoug...@gmail.com> writes:
> Kévin Le Gouguec <kevin.legoug...@gmail.com> writes: > >> Can anyone confirm that this would (in principle) be the way forward, or >> tell me if I am missing something[3]? > > I went ahead and cooked up a proof-of-concept patch, which > > (1) adds safe-local-variable properties to org-todo-keywords and > org-todo-keyword-faces, > > (2) stops applying default-value to org-todo-keywords, > > (3) delays regexps/font-lock setups until after file- and dir-local > variables have been set. > > While this patch contains a few things that make me weary[1], it solves > my use-case, and passes the current test suite with Emacs 26.3 and 28. > > Does this look sound overall? Does anyone have any idea what kind of > breakage might be slipping through the test suite? This looks hackish. Also, Org needs the STARTUP part early on, so you cannot really delay it. I /think/ the rest can be delayed, but I admit I'm not too sure either. I think the expected way to do this is to add a SETUPFILE. Regards, -- Nicolas Goaziou