Fix order of TODO keywords with S-right
* lisp/org.el (org-set-regexps-and-options): Fix order of TODO keywords with S-right. Thanks to Sébastien Vauban for reporting it. <http://permalink.gmane.org/gmane.emacs.orgmode/92708>
This commit is contained in:
parent
919722a6a6
commit
1dfa77dee4
11
lisp/org.el
11
lisp/org.el
|
@ -5008,12 +5008,11 @@ related expressions."
|
||||||
(org-set-local 'org-todo-sets nil)
|
(org-set-local 'org-todo-sets nil)
|
||||||
(org-set-local 'org-todo-log-states nil)
|
(org-set-local 'org-todo-log-states nil)
|
||||||
(let ((todo-sequences
|
(let ((todo-sequences
|
||||||
(reverse
|
(or (nreverse (cdr (assq 'todo alist)))
|
||||||
(or (cdr (assq 'todo alist))
|
(let ((d (default-value 'org-todo-keywords)))
|
||||||
(let ((d (default-value 'org-todo-keywords)))
|
(if (not (stringp (car d))) d
|
||||||
(if (not (stringp (car d))) d
|
;; XXX: Backward compatibility code.
|
||||||
;; XXX: Backward compatibility code.
|
(list (cons org-todo-interpretation d)))))))
|
||||||
(list (cons org-todo-interpretation d))))))))
|
|
||||||
(dolist (sequence todo-sequences)
|
(dolist (sequence todo-sequences)
|
||||||
(let* ((sequence (or (run-hook-with-args-until-success
|
(let* ((sequence (or (run-hook-with-args-until-success
|
||||||
'org-todo-setup-filter-hook sequence)
|
'org-todo-setup-filter-hook sequence)
|
||||||
|
|
Loading…
Reference in New Issue