From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dov Grobgeld Subject: Re: Why are src_perl{} immediately executed? Date: Sun, 14 Nov 2010 21:46:22 +0200 Message-ID: References: <877hgfzydk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0268547335==" Return-path: Received: from [140.186.70.92] (port=59401 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHiWy-0007Jj-K6 for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 14:46:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHiWu-0001zc-L2 for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 14:46:28 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:53450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHiWu-0001zU-Gy for emacs-orgmode@gnu.org; Sun, 14 Nov 2010 14:46:24 -0500 Received: by qyk1 with SMTP id 1so1688786qyk.0 for ; Sun, 14 Nov 2010 11:46:23 -0800 (PST) In-Reply-To: <877hgfzydk.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org, Noorul Islam --===============0268547335== Content-Type: multipart/alternative; boundary=0016364274b4002f18049508944e --0016364274b4002f18049508944e Content-Type: text/plain; charset=ISO-8859-1 Ok. Thanks for clarifying it. The documentation isn't clear on this issue. Regards, Dov On Sun, Nov 14, 2010 at 18:03, Eric Schulte wrote: > Hi Dov, > > That is correct, there is no method of highlighting inline code blocks, > the begin_src constructs are just for evaluation of inline code. > > You can customized the `org-babel-default-inline-header-args' to inhibit > the execution of inline code blocks on export. > > Best -- Eric > > Dov Grobgeld writes: > > > From the documentation I see now difference between inline and multi-line > > behavior. Note that I did not wish to evaluate the code at all but just > have > > inline syntax highlighting in my html export. Is src_perl{foo()} for > > evaluation only and not for source highlighting? > > > > Thanks, > > Dov > > > > On Sun, Nov 14, 2010 at 04:49, Noorul Islam wrote: > > > >> On Sun, Nov 14, 2010 at 3:34 AM, Dov Grobgeld > >> wrote: > >> > From the documentation it seems like a statement such as > src_perl{foo()} > >> are > >> > inline version of the multi line: > >> > > >> > #+src_perl > >> > foo(); > >> > #+end_src > >> > > >> > But when exporting the org file to html I get the question "Evaluate > this > >> > perl code on your system" for the inline version, but not for the > >> multiline > >> > version. Is this a bug or did I miss something? > >> > > >> > >> > >> You can customize this with the variable org-confirm-babel-evaluate > >> > >> Thanks and Regards > >> Noorul > >> > > _______________________________________________ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016364274b4002f18049508944e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ok. Thanks for clarifying it. The documentation isn't = clear on this issue.

Regards,
Dov

On Sun, Nov 14, 2010 at 18:03, Eric Schulte <schulte.eric@gmail.com> w= rote:
Hi Dov,

That is correct, there is no method of highlighting inline code blocks,
the begin_src constructs are just for evaluation of inline code.

You can customized the `org-babel-default-inline-header-args' to inhibi= t
the execution of inline code blocks on export.

Best -- Eric

Dov Grobgeld <dov.grobgeld@gma= il.com> writes:

> From the documentation I see now difference between inline and multi-l= ine
> behavior. Note that I did not wish to evaluate the code at all but jus= t have
> inline syntax highlighting in my html export. Is src_perl{foo()} for > evaluation only and not for source highlighting?
>
> Thanks,
> Dov
>
> On Sun, Nov 14, 2010 at 04:49, Noorul Islam <noorul@noorul.com> wrote:
>
>> On Sun, Nov 14, 2010 at 3:34 AM, Dov Grobgeld <dov.grobgeld@gmail.com>
>> wrote:
>> > From the documentation it seems like a statement such as src_= perl{foo()}
>> are
>> > inline version of the multi line:
>> >
>> > #+src_perl
>> > foo();
>> > #+end_src
>> >
>> > But when exporting the org file to html I get the question &q= uot;Evaluate this
>> > perl code on your system" for the inline version, but no= t for the
>> multiline
>> > version. Is this a bug or did I miss something?
>> >
>>
>>
>> You can customize this with the variable org-confirm-babel-evaluat= e
>>
>> Thanks and Regards
>> Noorul
>>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016364274b4002f18049508944e-- --===============0268547335== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0268547335==--