From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Rainer@krugs.de
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: :session question
Date: Wed, 27 Mar 2013 13:47:40 +0100 [thread overview]
Message-ID: <5152EA6C.2030007@easy-emacs.de> (raw)
In-Reply-To: <5152E485.4080707@gmail.com>
Am 27.03.2013 13:22, schrieb Rainer M Krug:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 27/03/13 13:18, Andreas Röhler wrote:
>> Am 27.03.2013 12:48, schrieb Nick Dokos:
>>> Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:
>>>
>>>> Am 27.03.2013 10:27, schrieb Andreas Leha:
>>>>> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>>>>>
>>>>>> Am 26.03.2013 16:31, schrieb Eric Schulte:
>>>>>>> Achim Gratz <Stromeko@Nexgo.DE> writes:
>>>>>>>
>>>>>>>> Am 26.03.2013 13:37, schrieb Eric Schulte:
>>>>>>>>> This can be done system wide by setting the language-specific header arguments.
>>>>>>>>
>>>>>>>> I've yet to see an example on how to do this.
>>>>>>>>
>>>>>>>
>>>>>>> #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session .
>>>>>>> "org-R"))) #+end_src
>>>>>>>
>>>>>>> #+RESULTS: | (:session . org-R) |
>>>>>>>
>>>>>>> #+begin_src R x <- 1 x #+end_src
>>>>>>>
>>>>>>> #+RESULTS: : 1
>>>>>>>
>>>>>>> #+begin_src R x #+end_src
>>>>>>>
>>>>>>> #+RESULTS: : 1
>>>>>>>
>>>>>>>>
>>>>>>
[ ... ]
>>>>
>>>>
>>>> Okay, that's the expected usage. How do you read the example displayed?
>>>>
>>>> Looks like a named (:session . "org-R") affects global R namespace.
>>>>
>>>> What did "org-R" say here, what might be the purpose?
>>>>
>>>> Assume it should switch it on. Then "org-R" represents a boolean here?
>>>>
>>>
>>> "org-R" is the name of the session. The code blocks illustrate that the value of x (set in
>>> the first code block) is preserved and can be used in the second (and subsequent) code
>>> blocks.
>>>
>>> Nick
>>>
>>>
>>
>> Okay, so the :session argument must not be repeated?
>>
>> i.e. doesn't look like a session, resp. not a named session
>>
>>>>>>> #+begin_src R x <- 1 x #+end_src
>>
>>
>> Once a named session "org-R" is started all non-sessioned source goes there? Looks like a
>> broken namespace.
>
> Isn't it the same with all header arguments? when they are set file wide, they are used for the
> source block unless specified otherwise.
>
> Rainer
>
Hmm, may you point me to the file-wide setting?
Form at stake
(setq org-babel-default-header-args:R '((:session . "org-R")))
seems to put all remaining R-evaluations into a named session "org-R"
Don't see any restriction onto a file resp. buffer. Maybe that's thought implicit?
Thanks,
Andreas
next prev parent reply other threads:[~2013-03-27 12:46 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-25 9:37 :session question Andreas Röhler
2013-03-25 23:58 ` Michael Gauland
2013-03-26 0:46 ` Eric Schulte
2013-03-26 8:37 ` Andreas Röhler
2013-03-26 9:12 ` Rainer M Krug
2013-03-26 9:23 ` Andreas Leha
2013-03-26 12:37 ` Eric Schulte
2013-03-26 12:44 ` Andreas Leha
2013-03-26 12:55 ` Achim Gratz
2013-03-26 15:31 ` Eric Schulte
2013-03-27 8:01 ` :session question - header argument setting Rainer M Krug
2013-03-27 8:35 ` Sebastien Vauban
2013-03-27 8:52 ` :session question Andreas Röhler
2013-03-27 9:27 ` Andreas Leha
2013-03-27 11:37 ` Andreas Röhler
2013-03-27 11:48 ` Nick Dokos
2013-03-27 12:18 ` Andreas Röhler
2013-03-27 12:22 ` Rainer M Krug
2013-03-27 12:47 ` Andreas Röhler [this message]
2013-03-27 12:43 ` Eric Schulte
2013-03-27 13:26 ` Andreas Röhler
2013-03-27 13:29 ` Andreas Leha
2013-03-27 15:47 ` Eric Schulte
2013-03-27 20:20 ` Andreas Leha
2013-03-27 20:35 ` Eric Schulte
2013-03-28 10:25 ` Andreas Leha
2013-03-28 13:06 ` John Hendy
2013-03-28 19:35 ` :session question - a simple PATCH Andreas Leha
2013-03-29 9:59 ` Achim Gratz
2013-03-29 14:38 ` Eric Schulte
2013-03-28 13:22 ` :session question John Hendy
2013-03-27 20:59 ` Andreas Röhler
2013-03-27 11:19 ` Andreas Leha
2013-04-28 15:46 ` Achim Gratz
2013-05-01 17:18 ` Eric Schulte
2013-05-01 17:36 ` Achim Gratz
2013-05-09 18:52 ` Achim Gratz
2013-06-07 16:15 ` Achim Gratz
2013-06-07 19:07 ` :session question -- and changes to #+Property: syntax Eric Schulte
2013-06-07 19:49 ` Achim Gratz
2013-06-07 20:22 ` Andreas Leha
2013-06-10 8:16 ` Rainer M Krug
2013-06-08 7:47 ` Achim Gratz
2013-06-08 18:08 ` Eric Schulte
2013-06-08 20:48 ` Achim Gratz
2013-06-10 8:21 ` Rainer M Krug
2013-06-10 19:16 ` Achim Gratz
2013-06-18 20:41 ` Achim Gratz
2013-06-19 10:10 ` Michael Brand
2013-06-20 16:27 ` Eric Schulte
2013-06-20 17:47 ` Achim Gratz
2013-06-20 18:31 ` Eric Schulte
2013-06-20 19:14 ` Achim Gratz
2013-06-20 19:28 ` Eric Schulte
2013-06-23 17:50 ` Achim Gratz
2013-06-25 14:20 ` Eric Schulte
2013-06-25 18:28 ` Achim Gratz
2013-06-10 8:14 ` :session question Rainer M Krug
2013-06-10 8:12 ` Rainer M Krug
2013-03-27 8:26 ` Andreas Röhler
2013-03-26 6:41 ` Andreas Röhler
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=5152EA6C.2030007@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=Rainer@krugs.de \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
/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).