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