summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyo TAKAISHI <ryo.takaishi.0@gmail.com>2013-03-04 21:52:04 +0900
committerEric Schulte <schulte.eric@gmail.com>2013-03-04 06:44:11 -0700
commit8ef0eb467f903b9bc07df4dea9a57ec317f41b81 (patch)
treee6d89a76a3815a71afc0b1b1a41dd4b77446055e
parent40fc9e869f5c45964383b45fbb66942fd47fb1f6 (diff)
downloadorg-mode-8ef0eb467f903b9bc07df4dea9a57ec317f41b81.tar.gz
fix bug: org-babel-tangle-file can't limit collected source code block by argument.
* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Change argument name collid org-babel-map-src-blocks's variable 'lang'. TINYCHANGE
-rw-r--r--lisp/ob-tangle.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el
index ef14f22..95433ee 100644
--- a/lisp/ob-tangle.el
+++ b/lisp/ob-tangle.el
@@ -352,7 +352,7 @@ that the appropriate major-mode is set. SPEC has the form:
(org-fill-template org-babel-tangle-comment-format-end link-data)))))
(defvar org-comment-string) ;; Defined in org.el
-(defun org-babel-tangle-collect-blocks (&optional lang tangle-file)
+(defun org-babel-tangle-collect-blocks (&optional language tangle-file)
"Collect source blocks in the current Org-mode file.
Return an association list of source-code block specifications of
the form used by `org-babel-spec-to-string' grouped by language.
@@ -378,7 +378,7 @@ used to limit the collected code blocks by target file."
(unless (or (string-match (concat "^" org-comment-string) current-heading)
(string= (cdr (assoc :tangle (nth 2 info))) "no")
(and tangle-file (not (equal tangle-file src-tfile))))
- (unless (and lang (not (string= lang src-lang)))
+ (unless (and language (not (string= language src-lang)))
;; Add the spec for this block to blocks under it's language
(setq by-lang (cdr (assoc src-lang blocks)))
(setq blocks (delq (assoc src-lang blocks) blocks))