Re: [O] :session question -- and changes to #+Property: syntax

2013-06-25 Thread Eric Schulte
Hopefully the simpler solution which uses the existing value of `org-babel-current-src-block-location' will prove sufficient (once someone implements it that is...). I'll implement it and see if this seems more useful than the current behaviour. If it is, then we'll have to decide if that

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-25 Thread Achim Gratz
Eric Schulte writes: This is great, thanks. I now see that we had different things in mind when talking about the location used when evaluating header arguments, however both were required and are now implemented. Indeed. You implemented location-specific look up of header argument

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-23 Thread Achim Gratz
Achim Gratz writes: Eric Schulte writes: Oh, I understand now. I would also be happy with using *no* header arguments for this ephemeral elisp block if that is easily accomplished. I'll make a patch for testing this. I'll have to think about his some more. The info block produced from the

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Hi Eric, while starting to write up a test document I've found some behaviour when executing LOB calls that warrant discussion, I think: 1. The properties are evaluated at the site of the definition rather than the site of the call. I see what

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Achim Gratz
Eric Schulte writes: 2. The evaluation of header arguments assumes emacs-lisp as a language. Yes, if one wants to execute a language other than Emacs-Lisp, then they should use a full fledged code block and pass a reference to that code block into the header argument. […] For the second, I

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: 2. The evaluation of header arguments assumes emacs-lisp as a language. Yes, if one wants to execute a language other than Emacs-Lisp, then they should use a full fledged code block and pass a reference to that code block into the

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Achim Gratz
Eric Schulte writes: Oh, I understand now. I would also be happy with using *no* header arguments for this ephemeral elisp block if that is easily accomplished. I'll make a patch for testing this. Hopefully the simpler solution which uses the existing value of

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
Hopefully the simpler solution which uses the existing value of `org-babel-current-src-block-location' will prove sufficient (once someone implements it that is...). I'll implement it and see if this seems more useful than the current behaviour. If it is, then we'll have to decide if that

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-19 Thread Michael Brand
Hi Achim On Tue, Jun 18, 2013 at 10:41 PM, Achim Gratz strom...@nexgo.de wrote: Hi Eric, while starting to write up a test document I've found some behaviour when executing LOB calls that warrant discussion, I think: 1. The properties are evaluated at the site of the definition rather than

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-18 Thread Achim Gratz
Hi Eric, while starting to write up a test document I've found some behaviour when executing LOB calls that warrant discussion, I think: 1. The properties are evaluated at the site of the definition rather than the site of the call. This is simply how org-babel-process-params works, it jumps to

Re: [O] :session question

2013-06-10 Thread Rainer M Krug
top post - sorry: I overlooked this thread somehow. Eric Schulte schulte.e...@gmail.com writes: Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: If you mean that there should be new syntax for setting header arguments on a file or sub-tree basis w/o using file local variables,

Re: [O] :session question

2013-06-10 Thread Rainer M Krug
Achim Gratz strom...@nexgo.de writes: Achim Gratz writes: The change on the Babel side was just a few lines, but reconciling Org's notion of property syntax in various places proved to be more difficult. It's still not very well tested (it does survive the test suite obviously) and I'll

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-10 Thread Rainer M Krug
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Achim, Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: As I recall I was fully in favor of applying these changes, however I am not qualified to address the changes to property behaviors. Hopefully someone who works

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-10 Thread Rainer M Krug
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: Great. Would you be willing to go ahead and apply these changes (including documentation)? If it upsets anyone we'll sort things out on the mailing list. All right, then. I've pushed the first part as it is a preparation for

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-10 Thread Achim Gratz
Rainer M Krug writes: As mentioned, I would then change my optional syntax of PROPERTY tomorrow. If you prefer earlier feedback, I could give it. An actual user document is much better than me trying to construct test cases (I'll still have do that later along with the documentation in the

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-08 Thread Achim Gratz
Eric Schulte writes: As I recall I was fully in favor of applying these changes, however I am not qualified to address the changes to property behaviors. Hopefully someone who works more on that side of things can address those aspects. Oh wait, now I understand what you're getting at, let me

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-08 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: As I recall I was fully in favor of applying these changes, however I am not qualified to address the changes to property behaviors. Hopefully someone who works more on that side of things can address those aspects. Oh wait, now I

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-08 Thread Achim Gratz
Eric Schulte writes: Great. Would you be willing to go ahead and apply these changes (including documentation)? If it upsets anyone we'll sort things out on the mailing list. All right, then. I've pushed the first part as it is a preparation for the actual change. I can push that second

Re: [O] :session question

2013-06-07 Thread Achim Gratz
Achim Gratz writes: The change on the Babel side was just a few lines, but reconciling Org's notion of property syntax in various places proved to be more difficult. It's still not very well tested (it does survive the test suite obviously) and I'll need to write tests and documentation (help

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-07 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Achim Gratz writes: The change on the Babel side was just a few lines, but reconciling Org's notion of property syntax in various places proved to be more difficult. It's still not very well tested (it does survive the test suite obviously) and I'll

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-07 Thread Achim Gratz
Eric Schulte writes: As I recall I was fully in favor of applying these changes, however I am not qualified to address the changes to property behaviors. Hopefully someone who works more on that side of things can address those aspects. I am still hoping that one of the users that was asking

Re: [O] :session question

2013-05-09 Thread Achim Gratz
Eric Schulte writes: I think these are great ideas. Personally I'd love to see them implemented. Unfortunately I don't have time to work on an implementation currently. I'm surprised that none of the users who motivated this discussion have chimed in. Their opinions may be more valuable

Re: [O] :session question

2013-05-01 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Eric Schulte writes: If you mean that there should be new syntax for setting header arguments on a file or sub-tree basis w/o using file local variables, I'd be happy to apply a patch. I'm thinking that something like #+PROPERTY: header-args:R

Re: [O] :session question

2013-05-01 Thread Achim Gratz
Eric Schulte writes: #+PROPERTY: header-args:R :session *R* :exports none I hate to change syntax, but the syntax you mention above does look both appealing and natural. Even with working file local variables [1]. OK, so let's settle for this. I've checked that the property interface

Re: [O] :session question

2013-04-28 Thread Achim Gratz
Eric Schulte writes: If you mean that there should be new syntax for setting header arguments on a file or sub-tree basis w/o using file local variables, I'd be happy to apply a patch. I'm thinking that something like #+PROPERTY: header-args:R :session *R* :exports none should work. I've

Re: [O] :session question - a simple PATCH

2013-03-29 Thread Achim Gratz
Am 28.03.2013 20:35, schrieb Andreas Leha: so it seems, currently, I (and John...) can not have both, /file local/ and /language local/ variables. - The emacs-lisp-block #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session . org-R))) #+end_src works,

Re: [O] :session question - a simple PATCH

2013-03-29 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes: Am 28.03.2013 20:35, schrieb Andreas Leha: so it seems, currently, I (and John...) can not have both, /file local/ and /language local/ variables. - The emacs-lisp-block #+begin_src emacs-lisp (setq org-babel-default-header-args:R

Re: [O] :session question

2013-03-28 Thread Andreas Leha
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: [...] Is that just not working for me? And any ideas, what I could do about it? I have no good ideas. Is the `org-babel-default-header-args:R' variable defined on your system

Re: [O] :session question

2013-03-28 Thread John Hendy
On Thu, Mar 28, 2013 at 5:25 AM, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: [...] Is that just not working for me? And any ideas, what I could do about it? I have

Re: [O] :session question

2013-03-28 Thread John Hendy
On Wed, Mar 27, 2013 at 3:35 PM, Eric Schulte schulte.e...@gmail.com wrote: Andreas Leha andreas.l...@med.uni-goettingen.de writes: [...] Is that just not working for me? And any ideas, what I could do about it? I have no good ideas. Is the `org-babel-default-header-args:R' variable

Re: [O] :session question - a simple PATCH

2013-03-28 Thread Andreas Leha
John Hendy jw.he...@gmail.com writes: [...] Haven't really been following along, but this works for me (after execution): #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session . org-R))) #+end_src These aren't: -*- org-babel-default-header-args:R:

Re: [O] :session question - header argument setting

2013-03-27 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/03/13 16:31, Eric Schulte wrote: Achim Gratz strom...@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

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 26.03.2013 13:37, schrieb Eric Schulte: Question from here: I use mainly R and have there set file wide #+PROPERTY: session R-session But I also have bash code, which would be evaluated in the R session, unless I use #+begin_src sh :session sh-session ... #+end_src But I do not need

Re: [O] :session question - header argument setting

2013-03-27 Thread Sebastien Vauban
Hi Rainer, Rainer M Krug wrote: #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session . org-R))) #+end_src OK - that I see how this works. Although I would very much like to have a syntax to define this default language header as #+PROPERTY as it would be more

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@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

Re: [O] :session question

2013-03-27 Thread Andreas Leha
Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@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

Re: [O] :session question

2013-03-27 Thread Andreas Leha
Hi Eric, [...] #+begin_src emacs-lisp (setq org-babel-default-header-args:R '((:session . org-R))) #+end_src thanks a lot for this. I've looked for that option for such a long time, but simply did not find it. Now I have an emacs question: How would I use that

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013 13:37, schrieb Eric Schulte: This can be done system wide by setting the language-specific header

Re: [O] :session question

2013-03-27 Thread Nick Dokos
Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013 13:37, schrieb Eric Schulte: This can

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 12:48, schrieb Nick Dokos: Andreas Röhler andreas.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am 26.03.2013 16:31, schrieb Eric Schulte: Achim Gratz strom...@nexgo.de writes: Am 26.03.2013

Re: [O] :session question

2013-03-27 Thread 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.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler andreas.roeh...@easy-emacs.de writes: Am

Re: [O] :session question

2013-03-27 Thread Eric Schulte
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? No one has said or implied that. i.e.

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
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.roeh...@easy-emacs.de wrote: Am 27.03.2013 10:27, schrieb Andreas Leha: Andreas Röhler

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
Am 27.03.2013 13:43, schrieb Eric Schulte: 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? No

Re: [O] :session question

2013-03-27 Thread Andreas Leha
Hi Eric, [...] As a side note, if one wants to set these R defaults for a single file the following syntax at the top of the file will suffice. # -*- org-babel-default-header-args:R: ((:session . foo)) -*- That does not work for me. (I am on GNU Emacs 24.3.50.1, org-mode version

Re: [O] :session question

2013-03-27 Thread Eric Schulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, [...] As a side note, if one wants to set these R defaults for a single file the following syntax at the top of the file will suffice. # -*- org-babel-default-header-args:R: ((:session . foo)) -*- That does not work

Re: [O] :session question

2013-03-27 Thread Andreas Leha
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi Eric, [...] As a side note, if one wants to set these R defaults for a single file the following syntax at the top of the file will suffice. # -*-

Re: [O] :session question

2013-03-27 Thread Eric Schulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes: [...] Is that just not working for me? And any ideas, what I could do about it? I have no good ideas. Is the `org-babel-default-header-args:R' variable defined on your system before you load this file? If not, maybe you should be

Re: [O] :session question

2013-03-27 Thread Andreas Röhler
[ ... ] But non-R code blocks do not have a default session value. #+begin_src sh date #+end_src #+RESULTS: : Mi 27. Mär 21:18:49 CET 2013 #+end_org Would say rather: global defaults are not predictable from users perspective, as global :seesion settings may have an effect or not.

Re: [O] :session question

2013-03-26 Thread Andreas Röhler
Am 26.03.2013 00:58, schrieb Michael Gauland: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. I don't think so, but perhaps I'm just used to the way it works now. I use a mix of session

Re: [O] :session question

2013-03-26 Thread Andreas Röhler
Thanks! Am 26.03.2013 01:46, schrieb Eric Schulte: Michael Gauland mikely...@no8wireless.co.nz writes: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. Header argument defaults are

Re: [O] :session question

2013-03-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/03/13 01:46, Eric Schulte wrote: Michael Gauland mikely...@no8wireless.co.nz writes: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new

Re: [O] :session question

2013-03-26 Thread Andreas Leha
Rainer M Krug r.m.k...@gmail.com writes: On 26/03/13 01:46, Eric Schulte wrote: Michael Gauland mikely...@no8wireless.co.nz writes: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one.

Re: [O] :session question

2013-03-26 Thread Andreas Leha
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: Question from here: I use mainly R and have there set file wide #+PROPERTY: session R-session But I also have bash code, which would be evaluated in the R session, unless I use #+begin_src sh :session sh-session ... #+end_src

Re: [O] :session question

2013-03-26 Thread Achim Gratz
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. This can also be done file-wide through the use of file local variables (instead of the property line above). Still,

Re: [O] :session question

2013-03-26 Thread Eric Schulte
Achim Gratz strom...@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

[O] :session question

2013-03-25 Thread Andreas Röhler
Hi all, org-babel uses the header argument :session keeping the environment for consecutive evaluations. That feels the opposite of all on-the-fly evaluations commonly done by a (language)-shell. Commonly a shell keeps is values until a new one is created. Would find it more natural if

Re: [O] :session question

2013-03-25 Thread Michael Gauland
Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. I don't think so, but perhaps I'm just used to the way it works now. I use a mix of session and non-session blocks. When I use plantuml, dot,

Re: [O] :session question

2013-03-25 Thread Eric Schulte
Michael Gauland mikely...@no8wireless.co.nz writes: Andreas Röhler andreas.roehler at easy-emacs.de writes: Would find it more natural if :session is the default, while a command refresh makes a new one. Header argument defaults are easy to accomplish on a per user or per file basis, just