emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Why are src_perl{} immediately executed?
@ 2010-11-13 22:04 Dov Grobgeld
  2010-11-14  2:49 ` Noorul Islam
  0 siblings, 1 reply; 5+ messages in thread
From: Dov Grobgeld @ 2010-11-13 22:04 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 352 bytes --]

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?

Thanks!
Dov

[-- Attachment #1.2: Type: text/html, Size: 476 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Why are src_perl{} immediately executed?
  2010-11-13 22:04 Why are src_perl{} immediately executed? Dov Grobgeld
@ 2010-11-14  2:49 ` Noorul Islam
  2010-11-14  7:27   ` Dov Grobgeld
  0 siblings, 1 reply; 5+ messages in thread
From: Noorul Islam @ 2010-11-14  2:49 UTC (permalink / raw)
  To: Dov Grobgeld; +Cc: emacs-orgmode

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 "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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Why are src_perl{} immediately executed?
  2010-11-14  2:49 ` Noorul Islam
@ 2010-11-14  7:27   ` Dov Grobgeld
  2010-11-14 16:03     ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Dov Grobgeld @ 2010-11-14  7:27 UTC (permalink / raw)
  To: Noorul Islam; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]

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 <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 "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
>

[-- Attachment #1.2: Type: text/html, Size: 1434 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Why are src_perl{} immediately executed?
  2010-11-14  7:27   ` Dov Grobgeld
@ 2010-11-14 16:03     ` Eric Schulte
  2010-11-14 19:46       ` Dov Grobgeld
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Schulte @ 2010-11-14 16:03 UTC (permalink / raw)
  To: Dov Grobgeld; +Cc: emacs-orgmode, Noorul Islam

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 <dov.grobgeld@gmail.com> 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 <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 "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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Why are src_perl{} immediately executed?
  2010-11-14 16:03     ` Eric Schulte
@ 2010-11-14 19:46       ` Dov Grobgeld
  0 siblings, 0 replies; 5+ messages in thread
From: Dov Grobgeld @ 2010-11-14 19:46 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode, Noorul Islam


[-- Attachment #1.1: Type: text/plain, Size: 1777 bytes --]

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> 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 <dov.grobgeld@gmail.com> 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 <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 "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
>

[-- Attachment #1.2: Type: text/html, Size: 2814 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-14 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-13 22:04 Why are src_perl{} immediately executed? Dov Grobgeld
2010-11-14  2:49 ` Noorul Islam
2010-11-14  7:27   ` Dov Grobgeld
2010-11-14 16:03     ` Eric Schulte
2010-11-14 19:46       ` Dov Grobgeld

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