From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Babel SML oddity
Date: Tue, 13 Nov 2018 23:42:54 -0600 [thread overview]
Message-ID: <CAFAhFSUbYt2D_vM7Ar1tfkqBrs+9is0LyPfa+7+PUUxrULtdbg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]
I'm following a Coursera course that uses ML. I have SML up and running on
Emacs 26.1/orgmode 9.1.14. So in an orgmode buffer I have
#+begin_src sml
val u = 1;
val v = 2;
val w = u + v;
#+end_src
and C-c C-c produces
#+RESULTS[8b5...]:
: val v = 2 : int
while the REPL (*sml*) produces
- val u = 1;
val v = 2;
val w = u + v;
; "stdIn";
val u = 1 : int
- val v = 2 : int
- val w = 3 : int
- val it = "stdIn" : string
So the RESULTS block in the orgmode buffer is not giving the full results
as does the REPL. More bizarre, I can do something later, e.g.,
#+begin_src sml
fun area_c (r) = Math.pi * r * r;
#+end_src
and the RESULTS simply replaces the RESULTS above, again only including
some of the REPL's response. I'm saying it doesn't do the normal thing of
giving a new RESULTS below the code block, rather just replaces the
previous RESULTS block's contents with incomplete information. I can add
many code blocks -- and I only ever get that lone RESULTS block
overwritten. What am I missing?
LB
[-- Attachment #2: Type: text/html, Size: 1674 bytes --]
reply other threads:[~2018-11-14 5:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFAhFSUbYt2D_vM7Ar1tfkqBrs+9is0LyPfa+7+PUUxrULtdbg@mail.gmail.com \
--to=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.