* Babel ':session ' bug?
@ 2010-11-21 0:51 Charles C. Berry
2010-11-21 2:57 ` Charles C. Berry
0 siblings, 1 reply; 9+ messages in thread
From: Charles C. Berry @ 2010-11-21 0:51 UTC (permalink / raw)
To: emacs-orgmode
I think :session without passing a string used to start a session, but
now it does not. I think this is a bug. Details:
Just did git pull and now with this:
,----
| #+BEGIN_SRC R :session :results output
| xyz
| #+END_SRC
|
| #+results:
|
| #+BEGIN_SRC R :session *R* :results output
| xyz
| #+END_SRC
`----
If I put point after 'xyz' in the first block and do
M-x eval-expression RET (org-babel-get-src-block-info) RET
I get
("R" "xyz
" ((:colname-names) (:rowname-names) (:result-params "output" "replace") (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output replace") (::session\ \ ) ...) "" nil 0)
Note '(::session\ \ ).
Whilst putting point in the second block leads to
("R" "xyz
" ((:colname-names) (:rowname-names) (:result-params "output" "replace") (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output replace") (:session . "*R*") ...) "" nil 0)
Chuck
Charles C. Berry Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-21 0:51 Babel ':session ' bug? Charles C. Berry
@ 2010-11-21 2:57 ` Charles C. Berry
2010-11-21 4:01 ` Nick Dokos
2010-11-22 13:44 ` Eric Schulte
0 siblings, 2 replies; 9+ messages in thread
From: Charles C. Berry @ 2010-11-21 2:57 UTC (permalink / raw)
To: emacs-orgmode
Correction in line below. CCB
On Sat, 20 Nov 2010, Charles C. Berry wrote:
> I think :session without passing a string used to start a session, but
> now it does not. I think this is a bug. Details:
>
> Just did git pull and now with this:
>
> ,----
> | #+BEGIN_SRC R :session :results output xyz
> | #+END_SRC
> |
> | #+results:
> |
> | #+BEGIN_SRC R :session *R* :results output xyz
> | #+END_SRC
> `----
>
Oops! That should have been
,----
| #+BEGIN_SRC R :session :results output
| xyz
| #+END_SRC
|
| #+results:
|
| #+BEGIN_SRC R :session *R* :results output
| xyz
| #+END_SRC
`----
>
> If I put point after 'xyz' in the first block and do
>
> M-x eval-expression RET (org-babel-get-src-block-info) RET
>
> I get
>
> ("R" "xyz
> " ((:colname-names) (:rowname-names) (:result-params "output" "replace")
> (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
> (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
> replace") (::session\ \ ) ...) "" nil 0)
>
> Note '(::session\ \ ).
>
> Whilst putting point in the second block leads to
>
> ("R" "xyz
> " ((:colname-names) (:rowname-names) (:result-params "output" "replace")
> (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
> (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
> replace") (:session . "*R*") ...) "" nil 0)
>
>
> Chuck
>
>
> Charles C. Berry Dept of Family/Preventive
> Medicine
> cberry@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>
>
>
> _______________________________________________
> 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
>
>
Charles C. Berry Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-21 2:57 ` Charles C. Berry
@ 2010-11-21 4:01 ` Nick Dokos
2010-11-21 20:09 ` Charles C. Berry
2010-11-22 13:44 ` Eric Schulte
1 sibling, 1 reply; 9+ messages in thread
From: Nick Dokos @ 2010-11-21 4:01 UTC (permalink / raw)
To: Charles C. Berry; +Cc: nicholas.dokos, emacs-orgmode
Charles C. Berry <cberry@tajo.ucsd.edu> wrote:
>
> Correction in line below. CCB
>
> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>
> > I think :session without passing a string used to start a session, but
> > now it does not. I think this is a bug. Details:
> >
I ran into this too: see the footnote in
http://thread.gmane.org/gmane.emacs.orgmode/33016/focus=33294
Nick
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-21 4:01 ` Nick Dokos
@ 2010-11-21 20:09 ` Charles C. Berry
0 siblings, 0 replies; 9+ messages in thread
From: Charles C. Berry @ 2010-11-21 20:09 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
On Sat, 20 Nov 2010, Nick Dokos wrote:
> Charles C. Berry <cberry@tajo.ucsd.edu> wrote:
>
>>
>> Correction in line below. CCB
>>
>> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>>
>>> I think :session without passing a string used to start a session, but
>>> now it does not. I think this is a bug. Details:
>>>
>
> I ran into this too: see the footnote in
>
> http://thread.gmane.org/gmane.emacs.orgmode/33016/focus=33294
Thanks, I see your footnote.
Anyway, naming the session is an easy workaround till it does get
fixed.
Chuck
>
> Nick
>
Charles C. Berry Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-21 2:57 ` Charles C. Berry
2010-11-21 4:01 ` Nick Dokos
@ 2010-11-22 13:44 ` Eric Schulte
2010-11-22 21:27 ` Charles C. Berry
1 sibling, 1 reply; 9+ messages in thread
From: Eric Schulte @ 2010-11-22 13:44 UTC (permalink / raw)
To: Charles C. Berry; +Cc: emacs-orgmode
Hi Charles,
I've just pushed up a change which should fix this issue.
Thanks for the report -- Eric
"Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
> Correction in line below. CCB
>
> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>
>> I think :session without passing a string used to start a session, but
>> now it does not. I think this is a bug. Details:
>>
>> Just did git pull and now with this:
>>
>> ,----
>> | #+BEGIN_SRC R :session :results output xyz
>> | #+END_SRC
>> | | #+results:
>> | | #+BEGIN_SRC R :session *R* :results output xyz
>> | #+END_SRC
>> `----
>>
>
> Oops! That should have been
>
> ,----
> | #+BEGIN_SRC R :session :results output | xyz
> | #+END_SRC
> |
> | #+results:
> |
> | #+BEGIN_SRC R :session *R* :results output | xyz
> | #+END_SRC
> `----
>>
>
>
>
>> If I put point after 'xyz' in the first block and do
>>
>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>
>> I get
>>
>> ("R" "xyz
>> " ((:colname-names) (:rowname-names) (:result-params "output"
>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>> (:results . "output replace") (::session\ \ ) ...) "" nil 0)
>>
>> Note '(::session\ \ ).
>>
>> Whilst putting point in the second block leads to
>>
>> ("R" "xyz
>> " ((:colname-names) (:rowname-names) (:result-params "output"
>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>> (:results . "output replace") (:session . "*R*") ...) "" nil 0)
>>
>>
>> Chuck
>>
>>
>> Charles C. Berry Dept of
>> Family/Preventive Medicine
>> cberry@tajo.ucsd.edu UC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> Charles C. Berry Dept of Family/Preventive Medicine
> cberry@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>
>
>
> _______________________________________________
> 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] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-22 13:44 ` Eric Schulte
@ 2010-11-22 21:27 ` Charles C. Berry
2010-11-22 21:47 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: Charles C. Berry @ 2010-11-22 21:27 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
On Mon, 22 Nov 2010, Eric Schulte wrote:
> Hi Charles,
>
> I've just pushed up a change which should fix this issue.
>
Thanks.
':session' has the right number of colons, but is followed by '\ \ ', and
no session was started.
i.e.,
M-x eval-expression RET (org-babel-get-src-block-info) RET
gives:
("R" "xyz
" ((:colname-names) (:rowname-names) (:result-params "output" "replace")
(:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
(:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
replace") (:session\ \ ) ...) "" nil 0)
Chuck
> Thanks for the report -- Eric
>
> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>
>> Correction in line below. CCB
>>
>> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>>
>>> I think :session without passing a string used to start a session, but
>>> now it does not. I think this is a bug. Details:
>>>
>>> Just did git pull and now with this:
>>>
>>> ,----
>>> | #+BEGIN_SRC R :session :results output xyz
>>> | #+END_SRC
>>> | | #+results:
>>> | | #+BEGIN_SRC R :session *R* :results output xyz
>>> | #+END_SRC
>>> `----
>>>
>>
>> Oops! That should have been
>>
>> ,----
>> | #+BEGIN_SRC R :session :results output | xyz
>> | #+END_SRC
>> |
>> | #+results:
>> |
>> | #+BEGIN_SRC R :session *R* :results output | xyz
>> | #+END_SRC
>> `----
>>>
>>
>>
>>
>>> If I put point after 'xyz' in the first block and do
>>>
>>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>>
>>> I get
>>>
>>> ("R" "xyz
>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>> (:results . "output replace") (::session\ \ ) ...) "" nil 0)
>>>
>>> Note '(::session\ \ ).
>>>
>>> Whilst putting point in the second block leads to
>>>
>>> ("R" "xyz
>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>> (:results . "output replace") (:session . "*R*") ...) "" nil 0)
>>>
>>>
>>> Chuck
>>>
>>>
>>> Charles C. Berry Dept of
>>> Family/Preventive Medicine
>>> cberry@tajo.ucsd.edu UC San Diego
>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> Charles C. Berry Dept of Family/Preventive Medicine
>> cberry@tajo.ucsd.edu UC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>
>>
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>
Charles C. Berry Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-22 21:27 ` Charles C. Berry
@ 2010-11-22 21:47 ` Eric Schulte
2010-11-23 0:27 ` Charles C. Berry
0 siblings, 1 reply; 9+ messages in thread
From: Eric Schulte @ 2010-11-22 21:47 UTC (permalink / raw)
To: Charles C. Berry; +Cc: emacs-orgmode
Hi,
I get the following when calling (org-babel-get-src-block-info) on the
following code block
#+BEGIN_SRC R :session :results output
xyz
#+END_SRC
("R" "xyz
" ((:colname-names) (:rowname-names) (:result-params "output" "replace")
(:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
(:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
replace") (:session) ...) "" nil 0)
note that I'm getting "(:session)" for the session header argument, which
is correct. Could you send me a copy of the offending code block?
Thanks -- Eric
"Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
> On Mon, 22 Nov 2010, Eric Schulte wrote:
>
>> Hi Charles,
>>
>> I've just pushed up a change which should fix this issue.
>>
>
> Thanks.
>
> ':session' has the right number of colons, but is followed by '\ \ ',
> and no session was started.
>
> i.e.,
>
> M-x eval-expression RET (org-babel-get-src-block-info) RET
>
> gives:
>
> ("R" "xyz
> " ((:colname-names) (:rowname-names) (:result-params "output"
> "replace") (:result-type . output) (:comments . "") (:shebang . "")
> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
> (:results . "output replace") (:session\ \ ) ...) "" nil 0)
>
>
> Chuck
>
>
>> Thanks for the report -- Eric
>>
>> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>>
>>> Correction in line below. CCB
>>>
>>> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>>>
>>>> I think :session without passing a string used to start a session, but
>>>> now it does not. I think this is a bug. Details:
>>>>
>>>> Just did git pull and now with this:
>>>>
>>>> ,----
>>>> | #+BEGIN_SRC R :session :results output xyz
>>>> | #+END_SRC
>>>> | | #+results:
>>>> | | #+BEGIN_SRC R :session *R* :results output xyz
>>>> | #+END_SRC
>>>> `----
>>>>
>>>
>>> Oops! That should have been
>>>
>>> ,----
>>> | #+BEGIN_SRC R :session :results output | xyz
>>> | #+END_SRC
>>> |
>>> | #+results:
>>> |
>>> | #+BEGIN_SRC R :session *R* :results output | xyz
>>> | #+END_SRC
>>> `----
>>>>
>>>
>>>
>>>
>>>> If I put point after 'xyz' in the first block and do
>>>>
>>>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>>>
>>>> I get
>>>>
>>>> ("R" "xyz
>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>> (:results . "output replace") (::session\ \ ) ...) "" nil 0)
>>>>
>>>> Note '(::session\ \ ).
>>>>
>>>> Whilst putting point in the second block leads to
>>>>
>>>> ("R" "xyz
>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>> (:results . "output replace") (:session . "*R*") ...) "" nil 0)
>>>>
>>>>
>>>> Chuck
>>>>
>>>>
>>>> Charles C. Berry Dept of
>>>> Family/Preventive Medicine
>>>> cberry@tajo.ucsd.edu UC San Diego
>>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> Charles C. Berry Dept of Family/Preventive Medicine
>>> cberry@tajo.ucsd.edu UC San Diego
>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>>
>
> Charles C. Berry Dept of Family/Preventive Medicine
> cberry@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-22 21:47 ` Eric Schulte
@ 2010-11-23 0:27 ` Charles C. Berry
2010-11-23 16:40 ` Eric Schulte
0 siblings, 1 reply; 9+ messages in thread
From: Charles C. Berry @ 2010-11-23 0:27 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
On Mon, 22 Nov 2010, Eric Schulte wrote:
> Hi,
>
> I get the following when calling (org-babel-get-src-block-info) on the
> following code block
>
> #+BEGIN_SRC R :session :results output
> xyz
> #+END_SRC
>
> ("R" "xyz
> " ((:colname-names) (:rowname-names) (:result-params "output" "replace")
> (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
> (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
> replace") (:session) ...) "" nil 0)
>
> note that I'm getting "(:session)" for the session header argument, which
> is correct. Could you send me a copy of the offending code block?
>
To my eye, this seemed to be exactly what you have. But using hexl-mode, I
see I have three blanks between ':session' and ':results', and two of
them show up in '(:session\ \ )'. Using:
#+BEGIN_SRC R :session :results output
xyz
#+END_SRC
I get:
("R" "xyz
" ((:colname-names) (:rowname-names) (:result-params "output" "replace")
(:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
(:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
replace") (:session\ \ ) ...) "" nil 0)
Deleting the extra blanks gives the same result you have.
Chuck
> Thanks -- Eric
>
> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>
>> On Mon, 22 Nov 2010, Eric Schulte wrote:
>>
>>> Hi Charles,
>>>
>>> I've just pushed up a change which should fix this issue.
>>>
>>
>> Thanks.
>>
>> ':session' has the right number of colons, but is followed by '\ \ ',
>> and no session was started.
>>
>> i.e.,
>>
>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>
>> gives:
>>
>> ("R" "xyz
>> " ((:colname-names) (:rowname-names) (:result-params "output"
>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>> (:results . "output replace") (:session\ \ ) ...) "" nil 0)
>>
>>
>> Chuck
>>
>>
>>> Thanks for the report -- Eric
>>>
>>> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>>>
>>>> Correction in line below. CCB
>>>>
>>>> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>>>>
>>>>> I think :session without passing a string used to start a session, but
>>>>> now it does not. I think this is a bug. Details:
>>>>>
>>>>> Just did git pull and now with this:
>>>>>
>>>>> ,----
>>>>> | #+BEGIN_SRC R :session :results output xyz
>>>>> | #+END_SRC
>>>>> | | #+results:
>>>>> | | #+BEGIN_SRC R :session *R* :results output xyz
>>>>> | #+END_SRC
>>>>> `----
>>>>>
>>>>
>>>> Oops! That should have been
>>>>
>>>> ,----
>>>> | #+BEGIN_SRC R :session :results output | xyz
>>>> | #+END_SRC
>>>> |
>>>> | #+results:
>>>> |
>>>> | #+BEGIN_SRC R :session *R* :results output | xyz
>>>> | #+END_SRC
>>>> `----
>>>>>
>>>>
>>>>
>>>>
>>>>> If I put point after 'xyz' in the first block and do
>>>>>
>>>>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>>>>
>>>>> I get
>>>>>
>>>>> ("R" "xyz
>>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>>> (:results . "output replace") (::session\ \ ) ...) "" nil 0)
>>>>>
>>>>> Note '(::session\ \ ).
>>>>>
>>>>> Whilst putting point in the second block leads to
>>>>>
>>>>> ("R" "xyz
>>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>>> (:results . "output replace") (:session . "*R*") ...) "" nil 0)
>>>>>
>>>>>
>>>>> Chuck
>>>>>
>>>>>
>>>>> Charles C. Berry Dept of
>>>>> Family/Preventive Medicine
>>>>> cberry@tajo.ucsd.edu UC San Diego
>>>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>> Charles C. Berry Dept of Family/Preventive Medicine
>>>> cberry@tajo.ucsd.edu UC San Diego
>>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>> _______________________________________________
>>> 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
>>>
>>
>> Charles C. Berry Dept of Family/Preventive Medicine
>> cberry@tajo.ucsd.edu UC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>
Charles C. Berry Dept of Family/Preventive Medicine
cberry@tajo.ucsd.edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Babel ':session ' bug?
2010-11-23 0:27 ` Charles C. Berry
@ 2010-11-23 16:40 ` Eric Schulte
0 siblings, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2010-11-23 16:40 UTC (permalink / raw)
To: Charles C. Berry; +Cc: emacs-orgmode
Hi chuck,
I just pushed up a change (and an exercising unit test) which should now
finally actually fix this issue. Thanks for persistently pointing out
the problem.
Best -- Eric
"Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
> On Mon, 22 Nov 2010, Eric Schulte wrote:
>
>> Hi,
>>
>> I get the following when calling (org-babel-get-src-block-info) on the
>> following code block
>>
>> #+BEGIN_SRC R :session :results output
>> xyz
>> #+END_SRC
>>
>> ("R" "xyz
>> " ((:colname-names) (:rowname-names) (:result-params "output" "replace")
>> (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
>> (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
>> replace") (:session) ...) "" nil 0)
>>
>> note that I'm getting "(:session)" for the session header argument, which
>> is correct. Could you send me a copy of the offending code block?
>>
>
> To my eye, this seemed to be exactly what you have. But using hexl-mode, I
> see I have three blanks between ':session' and ':results', and two of
> them show up in '(:session\ \ )'. Using:
>
>
> #+BEGIN_SRC R :session :results output
> xyz
> #+END_SRC
>
>
> I get:
>
> ("R" "xyz
> " ((:colname-names) (:rowname-names) (:result-params "output" "replace")
> (:result-type . output) (:comments . "") (:shebang . "") (:cache . "no")
> (:noweb . "no") (:tangle . "no") (:exports . "code") (:results . "output
> replace") (:session\ \ ) ...) "" nil 0)
>
> Deleting the extra blanks gives the same result you have.
>
> Chuck
>
>
>> Thanks -- Eric
>>
>> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>>
>>> On Mon, 22 Nov 2010, Eric Schulte wrote:
>>>
>>>> Hi Charles,
>>>>
>>>> I've just pushed up a change which should fix this issue.
>>>>
>>>
>>> Thanks.
>>>
>>> ':session' has the right number of colons, but is followed by '\ \ ',
>>> and no session was started.
>>>
>>> i.e.,
>>>
>>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>>
>>> gives:
>>>
>>> ("R" "xyz
>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>> (:results . "output replace") (:session\ \ ) ...) "" nil 0)
>>>
>>>
>>> Chuck
>>>
>>>
>>>> Thanks for the report -- Eric
>>>>
>>>> "Charles C. Berry" <cberry@tajo.ucsd.edu> writes:
>>>>
>>>>> Correction in line below. CCB
>>>>>
>>>>> On Sat, 20 Nov 2010, Charles C. Berry wrote:
>>>>>
>>>>>> I think :session without passing a string used to start a session, but
>>>>>> now it does not. I think this is a bug. Details:
>>>>>>
>>>>>> Just did git pull and now with this:
>>>>>>
>>>>>> ,----
>>>>>> | #+BEGIN_SRC R :session :results output xyz
>>>>>> | #+END_SRC
>>>>>> | | #+results:
>>>>>> | | #+BEGIN_SRC R :session *R* :results output xyz
>>>>>> | #+END_SRC
>>>>>> `----
>>>>>>
>>>>>
>>>>> Oops! That should have been
>>>>>
>>>>> ,----
>>>>> | #+BEGIN_SRC R :session :results output | xyz
>>>>> | #+END_SRC
>>>>> |
>>>>> | #+results:
>>>>> |
>>>>> | #+BEGIN_SRC R :session *R* :results output | xyz
>>>>> | #+END_SRC
>>>>> `----
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> If I put point after 'xyz' in the first block and do
>>>>>>
>>>>>> M-x eval-expression RET (org-babel-get-src-block-info) RET
>>>>>>
>>>>>> I get
>>>>>>
>>>>>> ("R" "xyz
>>>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>>>> (:results . "output replace") (::session\ \ ) ...) "" nil 0)
>>>>>>
>>>>>> Note '(::session\ \ ).
>>>>>>
>>>>>> Whilst putting point in the second block leads to
>>>>>>
>>>>>> ("R" "xyz
>>>>>> " ((:colname-names) (:rowname-names) (:result-params "output"
>>>>>> "replace") (:result-type . output) (:comments . "") (:shebang . "")
>>>>>> (:cache . "no") (:noweb . "no") (:tangle . "no") (:exports . "code")
>>>>>> (:results . "output replace") (:session . "*R*") ...) "" nil 0)
>>>>>>
>>>>>>
>>>>>> Chuck
>>>>>>
>>>>>>
>>>>>> Charles C. Berry Dept of
>>>>>> Family/Preventive Medicine
>>>>>> cberry@tajo.ucsd.edu UC San Diego
>>>>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>> Charles C. Berry Dept of Family/Preventive Medicine
>>>>> cberry@tajo.ucsd.edu UC San Diego
>>>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>> Charles C. Berry Dept of Family/Preventive Medicine
>>> cberry@tajo.ucsd.edu UC San Diego
>>> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
>>
>
> Charles C. Berry Dept of Family/Preventive Medicine
> cberry@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-11-23 16:40 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-21 0:51 Babel ':session ' bug? Charles C. Berry
2010-11-21 2:57 ` Charles C. Berry
2010-11-21 4:01 ` Nick Dokos
2010-11-21 20:09 ` Charles C. Berry
2010-11-22 13:44 ` Eric Schulte
2010-11-22 21:27 ` Charles C. Berry
2010-11-22 21:47 ` Eric Schulte
2010-11-23 0:27 ` Charles C. Berry
2010-11-23 16:40 ` Eric Schulte
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).