summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-12-16 18:09:51 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-12-16 18:09:51 -0700
commitf8000a9bc14ff9c30c949b1bad425de875c49bdf (patch)
tree58068a24ff55c079a5c7b0c625ccd29cdce76621
parent8aacc708dd038fd0d351abbed04d49f813f8a7bf (diff)
downloadorg-mode-f8000a9bc14ff9c30c949b1bad425de875c49bdf.tar.gz
org-export-string now accepts symbolic or string fmt argument
* lisp/org-exp.el (org-export-string): Use `format' to construct function call to allow symbolic or string arguments.
-rw-r--r--lisp/org-exp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index d45ef9c..32a5f86 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2658,7 +2658,7 @@ to the value of `temporary-file-directory'."
(setq org-local-vars (org-get-local-variables)))
(eval ;; convert to fmt -- mimicing `org-run-like-in-org-mode'
(list 'let org-local-vars
- (list (intern (concat "org-export-as-" fmt))
+ (list (intern (format "org-export-as-%s" fmt))
nil nil nil ''string t))))
(delete-file tmp-file))))