Fix "Symbol nil may not be buffer-local" error
* lisp/org.el (org-set-regexps-and-options): Fix "Symbol nil may not be buffer-local" error when encountering an nonexistent startup keyword. Reported-by: Mike McLean <mike.mclean@pobox.com> <http://permalink.gmane.org/gmane.emacs.orgmode/92279>
This commit is contained in:
parent
17d014ec65
commit
82de7dafa3
|
@ -4989,12 +4989,13 @@ related expressions."
|
||||||
(let ((startup (cdr (assq 'startup alist))))
|
(let ((startup (cdr (assq 'startup alist))))
|
||||||
(dolist (option startup)
|
(dolist (option startup)
|
||||||
(let ((entry (assoc-string option org-startup-options t)))
|
(let ((entry (assoc-string option org-startup-options t)))
|
||||||
|
(when entry
|
||||||
(let ((var (nth 1 entry))
|
(let ((var (nth 1 entry))
|
||||||
(val (nth 2 entry)))
|
(val (nth 2 entry)))
|
||||||
(if (not (nth 3 entry)) (org-set-local var val)
|
(if (not (nth 3 entry)) (org-set-local var val)
|
||||||
(unless (listp (symbol-value var))
|
(unless (listp (symbol-value var))
|
||||||
(org-set-local var nil))
|
(org-set-local var nil))
|
||||||
(add-to-list var val))))))
|
(add-to-list var val)))))))
|
||||||
;; TODO keywords.
|
;; TODO keywords.
|
||||||
(org-set-local 'org-todo-kwd-alist nil)
|
(org-set-local 'org-todo-kwd-alist nil)
|
||||||
(org-set-local 'org-todo-key-alist nil)
|
(org-set-local 'org-todo-key-alist nil)
|
||||||
|
|
Loading…
Reference in New Issue