Fix problem with completing #+STARTUP
This commit is contained in:
parent
bd8e816ea0
commit
bd8e4e248a
13
lisp/org.el
13
lisp/org.el
|
@ -9056,11 +9056,14 @@ At all other locations, this simply calls the value of
|
||||||
(setq type :opt)
|
(setq type :opt)
|
||||||
(require 'org-exp)
|
(require 'org-exp)
|
||||||
(append
|
(append
|
||||||
(mapcar
|
(delq nil
|
||||||
(lambda (x)
|
(mapcar
|
||||||
(string-match "^#\\+\\(\\([A-Z_]+:?\\).*\\)" x)
|
(lambda (x)
|
||||||
(cons (match-string 2 x) (match-string 1 x)))
|
(if (string-match
|
||||||
(org-split-string (org-get-current-options) "\n"))
|
"^#\\+\\(\\([A-Z_]+:?\\).*\\)" x)
|
||||||
|
(cons (match-string 2 x)
|
||||||
|
(match-string 1 x))))
|
||||||
|
(org-split-string (org-get-current-options) "\n")))
|
||||||
(mapcar 'list org-additional-option-like-keywords)))
|
(mapcar 'list org-additional-option-like-keywords)))
|
||||||
(startup
|
(startup
|
||||||
(setq type :startup)
|
(setq type :startup)
|
||||||
|
|
Loading…
Reference in New Issue