pls <[email protected]> writes: > Hey all, > > at > http://www.lilypond.org/doc/v2.19/Documentation/extending/scheme-variables > it says: > > Note that both the value 2 and the guile prompt guile showed up on the > same line. This can be avoided by calling the newline procedure or > displaying a newline character. > > > guile> (display a)(newline) > 2 > guile> (display a)(display "\n") > 2 > guile> > > But when I try this in the scheme sandbox (LilyPond v2.19.15) on > Ubuntu 14.10 (and Mac OS 10.9.5) I get: > > guile> (display a)(newline) > 2guile> > guile> (display a)(display "\n") > 2guile> > > Am I missing something?
I don't get those. So yes, you are missing something. Once I do mv ~/.guile ~/.guilex however, I get the double prompt in both the GUILE-1.8 command line and the Scheme sandbox, but not in the GUILE-2.0 command line. So it is likely a REPL "feature" of Guile-1.8 when the readline library is not loaded. For the record, my ~/.guile looks like (use-modules (ice-9 readline)) (activate-readline) So maybe we should instead advertise (format #t "~a\n" a) here? Or put a (begin ...) around this example? -- David Kastrup _______________________________________________ bug-lilypond mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-lilypond
