Achim> Eric Schulte writes:
>> Are you familiar with `org-babel-expand-src-block' bound to C-c C-v v?
Achim> I wasn't, obviously, and neither was the OP.
>> If I understand the desire correctly, it should be what you're after.
>> Perhaps an option to raise the expanded source code buffer
Achim> D M German writes:
Achim> […]
Achim> Please leave the formats alone, if you change the number of parameters
Achim> there folks that use their own definitions won't know what hit them.
Achim> What you want is to prepend something to the body that Babel gives you,
Achim> so let-bind
Eric Schulte writes:
> Are you familiar with `org-babel-expand-src-block' bound to C-c C-v v?
I wasn't, obviously, and neither was the OP.
> If I understand the desire correctly, it should be what you're after.
> Perhaps an option to raise the expanded source code buffer along with
> the error bu
Eric Schulte writes:
> I just added the variable `org-babel-perl-var-wrap', into ob-perl.el
>
> ;; emacs-lisp
> (defvar org-babel-perl-var-wrap "q(%s)"
> "Wrapper for variables inserted into Perl code.")
>
> This way we will get what sounds like improved wrapping by default, but
> use
Achim Gratz writes:
> D M German writes:
>> I see two ways to solve this. The first is simply to replace the output
>> format of the variable from "%S" to "'%s'" (use quotes ').
>
> I think that's the right thing to do. There shouldn't be anything in
> the table that needs to be interpolated by
D M German writes:
[…]
Please leave the formats alone, if you change the number of parameters
there folks that use their own definitions won't know what hit them.
What you want is to prepend something to the body that Babel gives you,
so let-bind that result and use it. You could even advise the
D M German writes:
> I see two ways to solve this. The first is simply to replace the output
> format of the variable from "%S" to "'%s'" (use quotes ').
I think that's the right thing to do. There shouldn't be anything in
the table that needs to be interpolated by Perl while the variable is
defi
dmg> Mm, I also noticed that when :results output is used, there is no way
dmg> to insert perl code before or after the executed code.
dmg> org-babel-perl-wrapper-method only works for all the methods but
dmg> output. It would be nice to have a variable that
dmg> does this for any output typ
Mm, I also noticed that when :results output is used, there is no way
to insert perl code before or after the executed code.
org-babel-perl-wrapper-method only works for all the methods but
output. It would be nice to have a variable that
does this for any output type.
--dmg
On Sun, Feb 24, 2013