|
@@ -1092,7 +1092,9 @@ BACKEND is an export back-end, as return by, e.g,,
|
|
for the shape of the return value.
|
|
for the shape of the return value.
|
|
|
|
|
|
Unlike to `org-export-backend-options', this function also
|
|
Unlike to `org-export-backend-options', this function also
|
|
-returns options inherited from parent back-ends, if any."
|
|
|
|
|
|
+returns options inherited from parent back-ends, if any.
|
|
|
|
+
|
|
|
|
+Return nil if BACKEND is unknown."
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
(when backend
|
|
(when backend
|
|
(let ((options (org-export-backend-options backend))
|
|
(let ((options (org-export-backend-options backend))
|
|
@@ -1396,7 +1398,7 @@ specific items to read, if any."
|
|
alist))
|
|
alist))
|
|
alist))
|
|
alist))
|
|
;; Priority is given to back-end specific options.
|
|
;; Priority is given to back-end specific options.
|
|
- (all (append (and backend (org-export-get-all-options backend))
|
|
|
|
|
|
+ (all (append (org-export-get-all-options backend)
|
|
org-export-options-alist))
|
|
org-export-options-alist))
|
|
(plist))
|
|
(plist))
|
|
(when line
|
|
(when line
|
|
@@ -1433,7 +1435,7 @@ for export. Return options as a plist."
|
|
(match-string-no-properties 4))))))
|
|
(match-string-no-properties 4))))))
|
|
;; Look for both general keywords and back-end specific
|
|
;; Look for both general keywords and back-end specific
|
|
;; options, with priority given to the latter.
|
|
;; options, with priority given to the latter.
|
|
- (options (append (and backend (org-export-get-all-options backend))
|
|
|
|
|
|
+ (options (append (org-export-get-all-options backend)
|
|
org-export-options-alist)))
|
|
org-export-options-alist)))
|
|
;; Handle other keywords. Then return PLIST.
|
|
;; Handle other keywords. Then return PLIST.
|
|
(dolist (option options plist)
|
|
(dolist (option options plist)
|
|
@@ -1469,7 +1471,7 @@ Assume buffer is in Org mode. Narrowing, if any, is ignored."
|
|
(let* ((case-fold-search t)
|
|
(let* ((case-fold-search t)
|
|
(options (append
|
|
(options (append
|
|
;; Priority is given to back-end specific options.
|
|
;; Priority is given to back-end specific options.
|
|
- (and backend (org-export-get-all-options backend))
|
|
|
|
|
|
+ (org-export-get-all-options backend)
|
|
org-export-options-alist))
|
|
org-export-options-alist))
|
|
(regexp (format "^[ \t]*#\\+%s:"
|
|
(regexp (format "^[ \t]*#\\+%s:"
|
|
(regexp-opt (nconc (delq nil (mapcar #'cadr options))
|
|
(regexp-opt (nconc (delq nil (mapcar #'cadr options))
|
|
@@ -1606,7 +1608,7 @@ which back-end specific export options should also be read in the
|
|
process."
|
|
process."
|
|
(let (plist
|
|
(let (plist
|
|
;; Priority is given to back-end specific options.
|
|
;; Priority is given to back-end specific options.
|
|
- (all (append (and backend (org-export-get-all-options backend))
|
|
|
|
|
|
+ (all (append (org-export-get-all-options backend)
|
|
org-export-options-alist)))
|
|
org-export-options-alist)))
|
|
(dolist (cell all plist)
|
|
(dolist (cell all plist)
|
|
(let ((prop (car cell)))
|
|
(let ((prop (car cell)))
|
|
@@ -3059,7 +3061,8 @@ Return code as a string."
|
|
(org-combine-plists
|
|
(org-combine-plists
|
|
info (org-export-get-environment backend subtreep ext-plist)))
|
|
info (org-export-get-environment backend subtreep ext-plist)))
|
|
;; De-activate uninterpreted data from parsed keywords.
|
|
;; De-activate uninterpreted data from parsed keywords.
|
|
- (dolist (entry org-export-options-alist)
|
|
|
|
|
|
+ (dolist (entry (append (org-export-get-all-options backend)
|
|
|
|
+ org-export-options-alist))
|
|
(pcase entry
|
|
(pcase entry
|
|
(`(,p ,_ ,_ ,_ parse)
|
|
(`(,p ,_ ,_ ,_ parse)
|
|
(let ((value (plist-get info p)))
|
|
(let ((value (plist-get info p)))
|