emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ryo TAKAISHI <ryo.takaishi.0@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Ryo TAKAISHI <ryo.takaishi.0@gmail.com>
Subject: [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument.
Date: Mon,  4 Mar 2013 21:52:04 +0900	[thread overview]
Message-ID: <1362401524-84463-1-git-send-email-ryo.takaishi.0@gmail.com> (raw)

* 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)

             reply	other threads:[~2013-03-04 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-04 12:52 Ryo TAKAISHI [this message]
2013-03-04 13:45 ` [PATCH] fix bug: org-babel-tangle-file can't limit collected source code block by argument Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362401524-84463-1-git-send-email-ryo.takaishi.0@gmail.com \
    --to=ryo.takaishi.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).