* Using sessions.
@ 2014-10-26 10:03 abonnements
2014-10-26 14:19 ` Andreas Leha
0 siblings, 1 reply; 5+ messages in thread
From: abonnements @ 2014-10-26 10:03 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I would like to know if it is possible to desactivate a previously
"open session".
Example :
* Test
:PROPERTIES:
:HEAGER-ARGS: :session SESS-TEST
:END:
<....> some code in session mode
#+begin_src python
<...> some code for which I dont what to use the session.
#+end_src
Is there something like ":session NONE" or ":session DISABLE"?
Thanks.
Thierry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sessions.
2014-10-26 10:03 Using sessions abonnements
@ 2014-10-26 14:19 ` Andreas Leha
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Leha @ 2014-10-26 14:19 UTC (permalink / raw)
To: emacs-orgmode
Hi Thierry,
abonnements <abonnements@thierry-pelle.eu> writes:
> Hi,
> I would like to know if it is possible to desactivate a previously
> "open session".
> Example :
> * Test
> :PROPERTIES:
> :HEAGER-ARGS: :session SESS-TEST
> :END:
>
> <....> some code in session mode
>
> #+begin_src python
> <...> some code for which I dont what to use the session.
> #+end_src
>
> Is there something like ":session NONE" or ":session DISABLE"?
>
There is: ":session none"
Best,
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sessions.
@ 2014-10-27 6:47 abonnements
2014-12-01 15:25 ` Bastien
0 siblings, 1 reply; 5+ messages in thread
From: abonnements @ 2014-10-27 6:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
Thank you.
I wonder if it is worth including this usage in the manual?
---------------------------------------
Hi Thierry,
abonnements<abonnements@thierry-pelle.eu> writes:
> Hi,
> I would like to know if it is possible to desactivate a previously
> "open session".
> Example :
> * Test
> :PROPERTIES:
> :HEAGER-ARGS: :session SESS-TEST
> :END:
>
> <....> some code in session mode
>
> #+begin_src python
> <...> some code for which I dont what to use the session.
> #+end_src
>
> Is there something like ":session NONE" or ":session DISABLE"?
>
There is: ":session none"
Best,
Andreas
[-- Attachment #2: Type: text/html, Size: 1140 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sessions.
2014-10-27 6:47 abonnements
@ 2014-12-01 15:25 ` Bastien
2014-12-01 16:48 ` abonnements
0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-12-01 15:25 UTC (permalink / raw)
To: abonnements; +Cc: emacs-orgmode
abonnements <abonnements@thierry-pelle.eu> writes:
> I wonder if it is worth including this usage in the manual?
Can you specify the suggestion by sending a patch?
Thanks!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Using sessions.
2014-12-01 15:25 ` Bastien
@ 2014-12-01 16:48 ` abonnements
0 siblings, 0 replies; 5+ messages in thread
From: abonnements @ 2014-12-01 16:48 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Le 01/12/2014 16:25, Bastien a écrit :
> abonnements <abonnements@thierry-pelle.eu> writes:
>
>> I wonder if it is worth including this usage in the manual?
> Can you specify the suggestion by sending a patch?
>
> Thanks!
>
Hi, sorry if this is the second time I send it but the first time failed
(for my MUA).
I hope this work, it's the first time I dare...
diff --git a/doc/org.texi b/doc/org.texi
index d508c06..c229187 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -15563,13 +15563,18 @@ execution.
@cindex @code{:session}, src header argument
The @code{:session} header argument starts a session for an interpreted
-language where state is preserved.
+language where state is preserved. By default, a session is not started.
-By default, a session is not started.
-
-A string passed to the @code{:session} header argument will give the session
-a name. This makes it possible to run concurrent sessions for each
-interpreted language.
+@itemize @bullet
+@item @code{none}
+The default. Each block is evaluated in its own session. The session is
+not preserved after the evaluation.
+@item @code{other}
+Any other string passed to the @code{:session} header argument will give the
+session a name. All blocks with the same session name share the same
+session. Using different session name enables concurrent sessions (even for
+the same interpreted language). E.g., @code{:session mysession}.
+@end itemize
@node noweb
@subsubsection @code{:noweb}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-12-01 16:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 10:03 Using sessions abonnements
2014-10-26 14:19 ` Andreas Leha
-- strict thread matches above, loose matches on Subject: below --
2014-10-27 6:47 abonnements
2014-12-01 15:25 ` Bastien
2014-12-01 16:48 ` abonnements
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).