Setting org-todo-keywords through directory-local variables

2020-05-20 Thread Kévin Le Gouguec
Hello, I'd like to set org-todo-keywords and org-todo-keyword-faces through directory-local variables, to get rid of duplicate #+SEQ_TODO lines in my Org files[1]. Right now I see two obstacles for this to work: (1) org-set-regexps-and-options, which sets up a bunch of TODO-related machinery

Re: Setting org-todo-keywords through directory-local variables

2020-06-24 Thread Kévin Le Gouguec
Hello, I would like to re-submit this idea, now that I am reasonably sure that my implementation will not impact users who do not use the feature. (I understand that Org 9.4 is on the way. I am not asking for this feature to be included right now; I would like to get some feedback first, then mo

Re: Setting org-todo-keywords through directory-local variables

2020-09-05 Thread Bastien
Hi Kévin, Kévin Le Gouguec writes: > I would like to re-submit this idea, now that I am reasonably sure that > my implementation will not impact users who do not use the feature. FWIW it looks fine to me, thanks for hacking this together. We are in feature freeze for 9.4 so let's wait until yo

Re: Setting org-todo-keywords through directory-local variables

2022-10-29 Thread Ihor Radchenko
[sending to Org ML in-reply to the relevant thread] Kévin Le Gouguec writes: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 28.1.90; Can local variables be loaded before loading major mode? > … reminded me of a patch I submitted to the Org ML… some time ago 😣 > (sorry for not following up)

Re: Setting org-todo-keywords through directory-local variables

2022-10-30 Thread Kévin Le Gouguec
Ihor Radchenko writes: > [sending to Org ML in-reply to the relevant thread] [Thanks!] > Kévin Le Gouguec writes: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 > 28.1.90; Can local variables be loaded before loading major mode? > >> … reminded me of a patch I submitted to the Org ML…

Re: Setting org-todo-keywords through directory-local variables

2022-10-30 Thread Ihor Radchenko
Kévin Le Gouguec writes: >> Maybe the hook approach can work better. But I'd prefer to discuss all >> the possible caveats first. > > My reasoning for keeping the current initialization code untouched and > _re_computing stuff in hack-local-variables-hook hinged on… I would avoid re-computing st

Re: Setting org-todo-keywords through directory-local variables

2020-05-21 Thread Kévin Le Gouguec
Kévin Le Gouguec 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

Re: Setting org-todo-keywords through directory-local variables

2020-05-22 Thread Nicolas Goaziou
Hello, Kévin Le Gouguec writes: > I'd like to set org-todo-keywords and org-todo-keyword-faces through > directory-local variables, to get rid of duplicate #+SEQ_TODO lines in > my Org files[1]. > > Right now I see two obstacles for this to work: > > (1) org-set-regexps-and-options, which sets u

Re: Setting org-todo-keywords through directory-local variables

2020-05-22 Thread Nicolas Goaziou
Hello, Kévin Le Gouguec writes: > Kévin Le Gouguec 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-tod

Re: Setting org-todo-keywords through directory-local variables

2020-05-23 Thread Kévin Le Gouguec
Nicolas Goaziou writes: > This looks hackish. Any bit in particular? AFAICT hack-local-variables-hook is the expected way to perform plumbing that might be affected by file/directory-local variables. It is used by e.g. shell-script-mode, cc-mode, markdown-mode and AUCTeX, to name a few. The d