Bugfix: Keep todo keyword list valid

An entry `#+TODO:' without content make `M-x org-mode' fail.
While it may cause problems to have no TODO keywords defined, this
should not make entering the mode fail.
This commit is contained in:
Carsten Dominik 2009-08-12 18:38:07 +02:00
parent b069091873
commit 8d59e10a06
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-08-12 Carsten Dominik <carsten.dominik@gmail.com> 2009-08-12 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-set-regexps-and-options): Make sure the list of done
keywords is not invalid.
* org-exp.el (org-export-interpolate-newlines): New function. * org-exp.el (org-export-interpolate-newlines): New function.
2009-08-11 Carsten Dominik <carsten.dominik@gmail.com> 2009-08-11 Carsten Dominik <carsten.dominik@gmail.com>

View File

@ -3697,7 +3697,8 @@ means to push this value onto the list in the variable.")
;; Compute the regular expressions and other local variables ;; Compute the regular expressions and other local variables
(if (not org-done-keywords) (if (not org-done-keywords)
(setq org-done-keywords (list (org-last org-todo-keywords-1)))) (setq org-done-keywords (and org-todo-keywords-1
(list (org-last org-todo-keywords-1)))))
(setq org-ds-keyword-length (+ 2 (max (length org-deadline-string) (setq org-ds-keyword-length (+ 2 (max (length org-deadline-string)
(length org-scheduled-string) (length org-scheduled-string)
(length org-clock-string) (length org-clock-string)