[O] Set org-todo-keywords as file-local variables

2014-10-07 Thread Thorsten Jolitz

Hi List,

I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
org-todo-keywords' in that file's buffer suggests I was successfull:

,
| org-todo-keywords is a variable defined in `org.el'.
| Its value is shown below.
| 
|   This variable's value is file-local.
| 
| Documentation: [...]
| Value:
| ((sequence | E(e) X(x) C(c) R(r) M(m)))
| 
| Original value was 
| ((sequence TODO DONE))
| 
| Local in buffer foo-test.org; global value is 
| ((sequence TODO(t) NEXT(n) | DONE(d!/!))
|  (sequence WAITING(w@/!) HOLD(h@/!) | CANCELLED(c@/!) PHONE))
| 
| [back]
`

but when doing C-c C-t in that buffer, 'org-todo' still offers me the
usual selection menu based on the variable's global value.

Am I missing something here?

-- 
cheers,
Thorsten





Re: [O] Set org-todo-keywords as file-local variables

2014-10-07 Thread Andreas Leha
Hi Thorsten,


Thorsten Jolitz tjol...@gmail.com writes:
 Hi List,

 I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
 org-todo-keywords' in that file's buffer suggests I was successfull:

 ,
 | org-todo-keywords is a variable defined in `org.el'.
 | Its value is shown below.
 | 
 |   This variable's value is file-local.
 | 
 | Documentation: [...]
 | Value:
 | ((sequence | E(e) X(x) C(c) R(r) M(m)))
 | 
 | Original value was 
 | ((sequence TODO DONE))
 | 
 | Local in buffer foo-test.org; global value is 
 | ((sequence TODO(t) NEXT(n) | DONE(d!/!))
 |  (sequence WAITING(w@/!) HOLD(h@/!) | CANCELLED(c@/!) PHONE))
 | 
 | [back]
 `

 but when doing C-c C-t in that buffer, 'org-todo' still offers me the
 usual selection menu based on the variable's global value.

 Am I missing something here?

I have some files with locally set todo keywords.  I use a different
interface through:

--8---cut here---start-8---
#+TODO: TODO(t) WAITING(w!) | DONE(d!) CANCELED(c@/!)
--8---cut here---end---8---

Does that help?
Andreas




Re: [O] Set org-todo-keywords as file-local variables

2014-10-07 Thread Thorsten Jolitz
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

Hi Andreas,

 Thorsten Jolitz tjol...@gmail.com writes:
 Hi List,

 I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
 org-todo-keywords' in that file's buffer suggests I was successfull:

[...]

 but when doing C-c C-t in that buffer, 'org-todo' still offers me the
 usual selection menu based on the variable's global value.

 Am I missing something here?

 I have some files with locally set todo keywords.  I use a different
 interface through:

 --8---cut here---start-8---
 #+TODO: TODO(t) WAITING(w!) | DONE(d!) CANCELED(c@/!)
 --8---cut here---end---8---

 Does that help?

Yes, thanks, that works and is much better than directly setting
file-local vars!

-- 
cheers,
Thorsten