emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Karl Berg <kalle465@hotmail.com>
To: emacs-orgmode@gnu.org
Subject: org-babel-parse-src-block-match params parse bug
Date: Wed, 16 May 2012 11:30:16 +0200	[thread overview]
Message-ID: <DUB101-W47B12A54205EC5EEB8BDBA97180@phx.gbl> (raw)

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]


Hi, 

Seems like the org-babel-parse-src-block-match function does something
wrong when parsing the block parameters. In my case I am trying to use the :file param with plantuml but it does not get down to the execute function.
To me it seems like the (string-match "-i\\>" switches) call messes up the (match-string
4) call further down.

Attaching a patch
Best regards,
Karl Berg 		 	   		  

[-- Attachment #2: org-babel.patch --]
[-- Type: application/octet-stream, Size: 798 bytes --]

--- ob.el.orig	2012-05-16 11:15:25.000000000 +0200
+++ ob.el	2012-05-16 11:14:58.000000000 +0200
@@ -1148,6 +1148,7 @@
 	 (lang (org-babel-clean-text-properties (match-string 2)))
          (lang-headers (intern (concat "org-babel-default-header-args:" lang)))
 	 (switches (match-string 3))
+     (params (match-string 4))
          (body (org-babel-clean-text-properties
 		(let* ((body (match-string 5))
 		       (sub-length (- (length body) 1)))
@@ -1169,7 +1170,7 @@
            (org-babel-params-from-properties lang)
 	   (if (boundp lang-headers) (eval lang-headers) nil)
 	   (org-babel-parse-header-arguments
-            (org-babel-clean-text-properties (or (match-string 4) ""))))
+            (org-babel-clean-text-properties (or params ""))))
 	  switches
 	  block-indentation)))
 

             reply	other threads:[~2012-05-16  9:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16  9:30 Karl Berg [this message]
2012-05-16 17:16 ` org-babel-parse-src-block-match params parse bug 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=DUB101-W47B12A54205EC5EEB8BDBA97180@phx.gbl \
    --to=kalle465@hotmail.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).