From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] ob-perl variable handling broken
Date: Sun, 24 Mar 2013 19:54:33 -0400 [thread overview]
Message-ID: <m2y5dcl5fq.wl%rick@rickster.com> (raw)
The commit ca125b82b changed a lot of the variable handling in
ob-perl, and it now will not accept tables as input. Below is an org
doc with an example, the error message and a backtrace.
rick
-----
* Can't use table as input
#+name: t1
| 1 |
#+begin_src perl :var t=t1 :results value
$t
#+end_src
** Error
mapconcat: Wrong type argument: sequencep, 1
#+begin_example
org-babel-perl--var-to-perl(1)
mapconcat(org-babel-perl--var-to-perl (1) "")
org-babel-perl--var-to-perl((1))
mapconcat(org-babel-perl--var-to-perl ((1)) "")
org-babel-perl--var-to-perl(((1)))
org-babel-perl--var-to-perl(((1)) t)
#[(pair) "\301\bA\b@\"\207" [pair org-babel-perl--var-to-perl] 3]((t (1)))
mapcar(#[(pair) "\301\bA\b@\"\207" [pair org-babel-perl--var-to-perl] 3] ((t (1))))
org-babel-variable-assignments:perl(((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "results") (:results . "replace value") (:var t (1)) (:session . "none") (:hlines . "no") (:padnewline . "yes") (:result-type . value) (:result-params "value" "replace") (:rowname-names) (:colname-names)))
org-babel-execute:perl("$t" ((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "results") (:results . "replace value") (:var t (1)) (:session . "none") (:hlines . "no") (:padnewline . "yes") (:result-type . value) (:result-params "value" "replace") (:rowname-names) (:colname-names)))
org-babel-execute-src-block(nil ("perl" "$t" ((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . "results") (:results . "replace value") (:var t (1)) (:session . "none") (:hlines . "no") (:padnewline . "yes") (:result-type . value) (:result-params "value" "replace") (:rowname-names) (:colname-names)) "" nil 0))
org-babel-execute-src-block-maybe()
org-babel-execute-maybe()
org-babel-execute-safely-maybe()
run-hook-with-args-until-success(org-babel-execute-safely-maybe)
org-ctrl-c-ctrl-c(nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
#+end_example
next reply other threads:[~2013-03-24 23:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 23:54 Rick Frankel [this message]
2013-03-25 0:27 ` [BUG] ob-perl variable handling broken Eric Schulte
2013-03-25 8:22 ` Achim Gratz
2013-03-25 13:40 ` 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=m2y5dcl5fq.wl%rick@rickster.com \
--to=rick@rickster.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).