summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2013-08-03 09:45:42 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2013-08-03 09:45:42 +0200
commitb95d7842f2638e7db59a4932c305a3f8ec6dfd50 (patch)
tree1b546cfdf0f2faf938bb8bccb04469c9917a24a4
parent6db74e8d5c7ddb310185dfba6c13ed825b702fb5 (diff)
parentf5161671ceb882b7a946d0632fbbf5c380952556 (diff)
downloadorg-mode-b95d7842f2638e7db59a4932c305a3f8ec6dfd50.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ox.el b/lisp/ox.el
index 5d28a81..70dcc34 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -290,6 +290,17 @@ and its CDR is a list of export options.")
This marker will be used with `C-u C-c C-e' to make sure export repetition
uses the same subtree if the previous command was restricted to a subtree.")
+;; For compatibility with Org < 8
+(defvar org-export-current-backend nil
+ "Name, if any, of the back-end used during an export process.
+
+Its value is a symbol such as `html', `latex', `ascii', or nil if
+the back-end is anonymous (see `org-export-create-backend') or if
+there is no export process in progress.
+
+It can be used to teach Babel blocks how to act differently
+according to the back-end used.")
+
;;; User-configurable Variables
;;
@@ -2961,7 +2972,8 @@ Return code as a string."
(narrow-to-region (point) (point-max))))
;; Initialize communication channel with original buffer
;; attributes, unavailable in its copy.
- (let* ((info (org-combine-plists
+ (let* ((org-export-current-backend backend)
+ (info (org-combine-plists
(list :export-options
(delq nil
(list (and subtreep 'subtree)