summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2013-03-02 18:10:39 +0100
committerAchim Gratz <Stromeko@Stromeko.DE>2013-03-02 18:13:52 +0100
commit3773029db9594f7372fbe83d9dde90d955daddc6 (patch)
tree11b49f983b41fb48e3f46d94c5f8cca28309f986
parent82246f8196986d0cbfd20b22e9de013f04ac5b60 (diff)
downloadorg-mode-3773029db9594f7372fbe83d9dde90d955daddc6.tar.gz
fix 17131cbf63
* lisp/ob-tangle.el (org-babel-tangle): Do not change signature, a nil arg is even documented in the manual. * lisp/org-src.el: Change declaration of `org-babel-tangleĀ“ to "arg" for first argument.
-rw-r--r--lisp/ob-tangle.el2
-rw-r--r--lisp/org-src.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index 1b66eea..81fceb1 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -183,7 +183,7 @@ used to limit the exported source code blocks by language."
(mapc (lambda (el) (copy-file el pub-dir t)) (org-babel-tangle-file filename)))
;;;###autoload
-(defun org-babel-tangle (arg &optional target-file lang)
+(defun org-babel-tangle (&optional arg target-file lang)
"Write code blocks to source-specific files.
Extract the bodies of all source code blocks from the current
file into their own source-specific files.
diff --git a/lisp/org-src.el b/lisp/org-src.el
index edb97e7..81c0054 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -792,7 +792,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
(user-error "Use C-c ' to save and exit, C-c C-k to abort editing")
(org-src-in-org-buffer (save-buffer))))
-(declare-function org-babel-tangle "ob-tangle" (&optional only-this-block target-file lang))
+(declare-function org-babel-tangle "ob-tangle" (&optional arg target-file lang))
(defun org-src-tangle (arg)
"Tangle the parent buffer."