* [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument.
@ 2013-03-04 12:52 Ryo TAKAISHI
2013-03-04 13:45 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Ryo TAKAISHI @ 2013-03-04 12:52 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Ryo TAKAISHI
* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Change argument name collid org-babel-map-src-blocks's variable 'lang'.
---
lisp/ob-tangle.el | 4 ++--
1 file 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))
--
1.7.9.6 (Apple Git-31.1)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument.
2013-03-04 12:52 [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument Ryo TAKAISHI
@ 2013-03-04 13:45 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2013-03-04 13:45 UTC (permalink / raw)
To: Ryo TAKAISHI; +Cc: emacs-orgmode
Applied. Thanks,
Ryo TAKAISHI <ryo.takaishi.0@gmail.com> writes:
> * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Change argument name collid org-babel-map-src-blocks's variable 'lang'.
> ---
> lisp/ob-tangle.el | 4 ++--
> 1 file 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))
--
Eric Schulte
http://cs.unm.edu/~eschulte
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-04 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-04 12:52 [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument Ryo TAKAISHI
2013-03-04 13:45 ` Eric Schulte
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).