Function: org-export--get-global-options
org-export--get-global-options is a byte-compiled function defined in
ox.el.gz.
Signature
(org-export--get-global-options &optional BACKEND)
Documentation
Return global export options as a plist.
Optional argument BACKEND, if non-nil, is an export back-end, as
returned by, e.g., org-export-create-backend. It specifies
which back-end specific export options should also be read in the
process.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export--get-global-options (&optional backend)
"Return global export options as a plist.
Optional argument BACKEND, if non-nil, is an export back-end, as
returned by, e.g., `org-export-create-backend'. It specifies
which back-end specific export options should also be read in the
process."
(let (plist
;; Priority is given to back-end specific options.
(all (append (org-export-get-all-options backend)
org-export-options-alist)))
(dolist (cell all plist)
(let ((prop (car cell)))
(unless (plist-member plist prop)
(setq plist
(plist-put
plist
prop
;; Evaluate default value provided.
(let ((value (eval (nth 3 cell) t)))
(if (eq (nth 4 cell) 'parse)
(org-element-parse-secondary-string
value (org-element-restriction 'keyword))
value)))))))))