summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2014-01-17 22:08:33 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2014-01-17 22:16:41 +0100
commitb0ac2f6ac00ece71d01bc160746ccc863cc0e5d9 (patch)
tree264b71b0fd1ea3cafa14368426796a34eca47fed
parent1e25d087dd09822396cf53d28d6d0e49ce988cef (diff)
downloadorg-mode-b0ac2f6ac00ece71d01bc160746ccc863cc0e5d9.tar.gz
ox: Remove clutter from export templates
* lisp/ox.el (org-export-insert-default-template): Only insert keywords and options relatives to the selected back-end. Ignore those relatives to its parent in the case of a derived back-end.
-rw-r--r--lisp/ox.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 0102523..2d1ed1a 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -3124,8 +3124,8 @@ locally for the subtree through node properties."
;; Populate OPTIONS and KEYWORDS.
(dolist (entry (cond ((eq backend 'default) org-export-options-alist)
((org-export-backend-p backend)
- (org-export-get-all-options backend))
- (t (org-export-get-all-options
+ (org-export-backend-options backend))
+ (t (org-export-backend-options
(org-export-get-backend backend)))))
(let ((keyword (nth 1 entry))
(option (nth 2 entry)))