Re: Programmatically set TODO labels per file?

2021-04-30 Thread Arthur Miller
Arthur Miller writes: If anyone is interested, this is how I understand the org TODO per file parsing: The file is parsed in org-collect-keywords-1 in org.el. Each #+TODO: line is lumped into one single string, which is a problem when strings with spaces a concerned. Multiple #+TODO: lines

Re: Programmatically set TODO labels per file?

2021-04-30 Thread Arthur Miller
Nick Dokos writes: > Arthur Miller writes: > >> I have a simple question, but I wasn't able to find answer on the web, >> so finally I'll try my luck here. >> > >> I know I can setq org-todo-keywords with a list '((sequence "TODO" >> DONE")), as an example. But what variable is used for

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Nick Dokos
Arthur Miller writes: > I have a simple question, but I wasn't able to find answer on the web, > so finally I'll try my luck here. > > I know I can setq org-todo-keywords with a list '((sequence "TODO" > DONE")), as an example. But what variable is used for per-file keywords? > Once that are

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Arthur Miller
Samuel Wales writes: > as you discovered, spaces can work for todo kw for at least some > purposes. [i have one, because i prefer space to snake_case and > kebab-case might not search well.] but you should check to see if it > is guaranteed to work. i vaguely recall spc is not allowable. > >

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Samuel Wales
as you discovered, spaces can work for todo kw for at least some purposes. [i have one, because i prefer space to snake_case and kebab-case might not search well.] but you should check to see if it is guaranteed to work. i vaguely recall spc is not allowable. if it were guaranteed to work,

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Arthur Miller
Russell Adams writes: > On Thu, Apr 29, 2021 at 10:49:54PM +0200, Arthur Miller wrote: >> >> Hi all, >> >> I have a simple question, but I wasn't able to find answer on the web, >> so finally I'll try my luck here. >> >> I know I can setq org-todo-keywords with a list '((sequence "TODO" >>

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Arthur Miller
writes: > On Thu, Apr 29, 2021 at 10:49:54PM +0200, Arthur Miller wrote: >> >> Hi all, >> >> I have a simple question, but I wasn't able to find answer on the web, >> so finally I'll try my luck here. >> >> I know I can setq org-todo-keywords with a list '((sequence "TODO" >> DONE")), as an

Re: Programmatically set TODO labels per file?

2021-04-29 Thread Russell Adams
On Thu, Apr 29, 2021 at 10:49:54PM +0200, Arthur Miller wrote: > > Hi all, > > I have a simple question, but I wasn't able to find answer on the web, > so finally I'll try my luck here. > > I know I can setq org-todo-keywords with a list '((sequence "TODO" > DONE")), as an example. But what

Re: Programmatically set TODO labels per file?

2021-04-29 Thread tomas
On Thu, Apr 29, 2021 at 10:49:54PM +0200, Arthur Miller wrote: > > Hi all, > > I have a simple question, but I wasn't able to find answer on the web, > so finally I'll try my luck here. > > I know I can setq org-todo-keywords with a list '((sequence "TODO" > DONE")), as an example. But what

Programmatically set TODO labels per file?

2021-04-29 Thread Arthur Miller
Hi all, I have a simple question, but I wasn't able to find answer on the web, so finally I'll try my luck here. I know I can setq org-todo-keywords with a list '((sequence "TODO" DONE")), as an example. But what variable is used for per-file keywords? Once that are set with #+TODO: ... line?