bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LilyPond – Extending: value and guile prompt on same line despite ne


From: David Kastrup
Subject: Re: LilyPond – Extending: value and guile prompt on same line despite newline procedure
Date: Sun, 26 Apr 2015 11:20:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

pls <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]