From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert McIntyre Subject: Re: question about :results scalar Date: Tue, 21 Jun 2011 12:14:42 -0500 Message-ID: References: <87oc1twhb7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502cc49dc7b5504a63bfcb2 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4XJ-0000Hc-Sc for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 13:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ4XF-0001yh-57 for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 13:14:49 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:39287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4XE-0001xv-4o for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 13:14:44 -0400 Received: by pzk4 with SMTP id 4so5500725pzk.0 for ; Tue, 21 Jun 2011 10:14:42 -0700 (PDT) In-Reply-To: <87oc1twhb7.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte , emacs-orgmode@gnu.org --00504502cc49dc7b5504a63bfcb2 Content-Type: text/plain; charset=ISO-8859-1 Excellent --- I'm glad that the interaction with emacs-lisp is straightened out! I've been continuing working with source blocks and the same problem seems to be present with clojure interaction. #+begin_src clojure :exports both :results scalar (ns whatever) (defn works? [] true) #+end_src #+results: | function | whatever/works? | The clojure repl would normally output the text "#'whatever/works?" but this is being converted into an org-mode table, ignoring the :results scalar declaration. futrhermore, the same test with emacs-lisp also fails as in this example #+begin_src clojure :results scalar '(1 2 3) #+end_src #+results: | 1 | 2 | 3 | ------------------------------------------------------------------------------------------------------- also, although :results scalar still works, :results verbatim does not work quite yet for emacs-lisp #+begin_src emacs-lisp :results scalar ;;(debug t nil) '(1 2 3) #+end_src #+results: : (1 2 3) #+begin_src emacs-lisp :results verbatim ;;(debug t nil) '(1 2 3) #+end_src #+results: | 1 | 2 | 3 | M-x org-version returns: Org-mode version 7.5 (release_7.5.414.g56de5.dirty) Thank you so much for your prompt attention to my last comments! sincerely, --Robert McIntyre On Sun, Jun 19, 2011 at 6:08 PM, Eric Schulte wrote: > Hi Rob, > > Thanks for pointing this out. The emacs-lisp interaction is so simple > we apparently never implemented checks which are routine in other > languages. I just pushed up a fix to the git repository so the > ":results scalar" header argument combination should now be respected > for emacs-lisp. > > Thanks -- Eric > > Robert McIntyre writes: > > > hi --- I'm working through the org manual and have run into a strange > > problem with ":results scalar" > > > > M-x org-version gives "Org-mode version 7.5 > (release_7.5.288.gcec8.dirty)". > > > > I've made a code block using #+begin_src emacs-lisp :results scalar, > > with the source just being '(1 2 3), but I get back an org-table > > instead of the expected : (1 2 3). what am I doing wrong? > > > > a minimal example file can be found here: > > https://gist.github.com/1034648 > > > > I also get the same thing when trying the stable Org-mode version 7.5. > > > > sincerely, > > --Robert McIntyre > > > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ > --00504502cc49dc7b5504a63bfcb2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Excellent --- I'm glad that the interaction with emacs-lisp is straight= ened out!

I've been continuing working with source blocks and th= e same problem seems to be present with clojure interaction.

#+begin= _src clojure :exports both :results scalar
(ns whatever)
(defn works? [] true)
#+end_src

#+results:
| = function | whatever/works? |


The clojure repl would normally out= put the text

"#'whatever/works?"

but this is b= eing converted into an org-mode table, ignoring the :results scalar declara= tion.

futrhermore, the same test with emacs-lisp also fails as in this exampl= e


#+begin_src clojure :results scalar
'(1 2 3)
#+end_s= rc

#+results:
| 1 | 2 | 3 |

------------------------------= -------------------------------------------------------------------------

also, although :results scalar still works,=A0 :results verbatim do= es not work quite yet for emacs-lisp

#+begin_src emacs-lisp :results= scalar
;;(debug t nil)
'(1 2 3)
#+end_src

#+results: : (1 2 3)


#+begin_src emacs-lisp :results verbatim
;;(debug t= nil)
'(1 2 3)
#+end_src

#+results:
| 1 | 2 | 3 |


M-x org-version returns:
Org-mode version 7.5 (release_7.5.41= 4.g56de5.dirty)


Thank you so much for your prompt attention to my last comments!
sincerely,
--Robert McIntyre


= On Sun, Jun 19, 2011 at 6:08 PM, Eric Schulte <schulte.eric@gmail.com> wr= ote:
Hi Rob,

Thanks for pointing this out. =A0The emacs-lisp interaction is so simple we apparently never implemented checks which are routine in other
languages. =A0I just pushed up a fix to the git repository so the
":results scalar" header argument combination should now be respe= cted
for emacs-lisp.

Thanks -- Eric

Robert McIntyre <rlm@mit.edu> writ= es:

> hi --- I'm working through the org manual and have run into a stra= nge
> problem with ":results scalar"
>
> M-x org-version gives "Org-mode version 7.5 (release_7.5.288.gcec= 8.dirty)".
>
> I've made a code block using #+begin_src emacs-lisp :results scala= r,
> with the source just being '(1 2 3), but I get back an org-table > instead of the expected : (1 2 3). what am I doing wrong?
>
> a minimal example file can be found here:
> =A0https= ://gist.github.com/1034648
>
> I also get the same thing when trying the stable Org-mode version 7.5.=
>
> sincerely,
> --Robert McIntyre
>

--
Eric Schulte
http://cs.unm.= edu/~eschulte/

--00504502cc49dc7b5504a63bfcb2--