summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2014-05-28 14:52:14 +0200
committerAchim Gratz <Stromeko@Stromeko.DE>2014-05-28 14:52:14 +0200
commit790f5b4d3a898f00bda38a7ea09b8cb51e801a45 (patch)
treefe310fc08d47f676960af8ab645195913b0f4068
parent61b80915964f304f5778e6476c2ce5470a7a6d4d (diff)
downloadorg-mode-790f5b4d3a898f00bda38a7ea09b8cb51e801a45.tar.gz
ob-core, ob-exp, ob-haskell, ob-python: declarations for org-src-preserve-indentations
* lisp/ob-core.el: Add comment to forward declaration of 'org-src-preserve-indentations'. * lisp/ob-exp.el: Require org-src to import 'org-src-preserve-indentations'. * lisp/ob-haskell.el, lisp/ob-python.el: Remove superfluous forward declaration of 'org-src-preserve-indentations', since it gets imported by other requires.
-rw-r--r--lisp/ob-core.el2
-rw-r--r--lisp/ob-exp.el1
-rw-r--r--lisp/ob-haskell.el1
-rw-r--r--lisp/ob-python.el2
4 files changed, 2 insertions, 4 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 20d3f56..eef408f 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -1349,7 +1349,7 @@ specified in the properties of the current outline entry."
(org-entry-get org-babel-current-src-block-location
(concat "header-args:" lang) 'inherit))))))
-(defvar org-src-preserve-indentation)
+(defvar org-src-preserve-indentation) ;; declare defcustom from org-src
(defun org-babel-parse-src-block-match ()
"Parse the results from a match of the `org-babel-src-block-regexp'."
(let* ((block-indentation (length (match-string 1)))
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 6d65496..761c9f1 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -24,6 +24,7 @@
;;; Code:
(require 'ob-core)
+(require 'org-src)
(eval-when-compile
(require 'cl))
diff --git a/lisp/ob-haskell.el b/lisp/ob-haskell.el
index 22240ad..0006670 100644
--- a/lisp/ob-haskell.el
+++ b/lisp/ob-haskell.el
@@ -147,7 +147,6 @@ specifying a variable of the same value."
(concat "[" (mapconcat #'org-babel-haskell-var-to-haskell var ", ") "]")
(format "%S" var)))
-(defvar org-src-preserve-indentation)
(defvar org-export-copy-to-kill-ring)
(declare-function org-export-to-file "ox"
(backend file
diff --git a/lisp/ob-python.el b/lisp/ob-python.el
index baa5764..7cee104 100644
--- a/lisp/ob-python.el
+++ b/lisp/ob-python.el
@@ -56,8 +56,6 @@ This will typically be either 'python or 'python-mode."
:package-version '(Org . "8.0")
:type 'symbol)
-(defvar org-src-preserve-indentation)
-
(defcustom org-babel-python-hline-to "None"
"Replace hlines in incoming tables with this when translating to python."
:group 'org-babel