Browse Source

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.
Achim Gratz 12 years ago
parent
commit
3773029db9
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lisp/ob-tangle.el
  2. 1 1
      lisp/org-src.el

+ 1 - 1
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.

+ 1 - 1
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."