all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Babel SML oddity
@ 2018-11-14  5:42 Lawrence Bottorff
  0 siblings, 0 replies; only message in thread
From: Lawrence Bottorff @ 2018-11-14  5:42 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-14  5:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-14  5:42 Babel SML oddity Lawrence Bottorff

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.