Search code examples
emacsorg-mode

What does sequence keyword exactly do in this Elisp (Emacs Lisp) statement?


I can't get the meaning of the sequence keyword.

(setq org-todo-keywords
  '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))

I tried Emacs help and googling. Know much better elisp sequence types now. But can't figure out why we can't just use a list of todo keywords and what sequence stands for here. I found only sequencep predicate and org-todo-keywords is sequence indeed.

It must be dead simple, but my mind can't move over it without an answer.


Solution

  • sequence is a symbol in this context.

    Checking the documentation for org-todo-keywords, the first element of the list can be either sequence or type. Following are the strings for the actual keywords.

    For the documentation, M-x describe-variable RET org-todo-keywords RET.