emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert McIntyre <rlm@mit.edu>
To: Eric Schulte <schulte.eric@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: question about :results scalar
Date: Tue, 21 Jun 2011 12:14:42 -0500	[thread overview]
Message-ID: <BANLkTi=fSvudgahDb_WGoBV6OP3VBWSjKg@mail.gmail.com> (raw)
In-Reply-To: <87oc1twhb7.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2368 bytes --]

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 <schulte.eric@gmail.com>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 <rlm@mit.edu> 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/
>

[-- Attachment #2: Type: text/html, Size: 3262 bytes --]

  reply	other threads:[~2011-06-21 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 19:50 question about :results scalar Robert McIntyre
2011-06-19 23:08 ` Eric Schulte
2011-06-21 17:14   ` Robert McIntyre [this message]
2011-06-21 17:40     ` Eric Schulte

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='BANLkTi=fSvudgahDb_WGoBV6OP3VBWSjKg@mail.gmail.com' \
    --to=rlm@mit.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.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).