* 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.
This commit is contained in:
Achim Gratz 2013-03-02 18:10:39 +01:00
parent 82246f8196
commit 3773029db9
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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."