]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2360: Scheme sandbox fails to load readline module
authorDavid Kastrup <dak@gnu.org>
Mon, 27 Feb 2012 10:57:45 +0000 (11:57 +0100)
committerDavid Kastrup <dak@gnu.org>
Fri, 2 Mar 2012 08:11:32 +0000 (09:11 +0100)
Documentation/extending/scheme-tutorial.itely
ly/scheme-sandbox.ly

index db3f09db05aa9fac04326e3aa3760b735b1928e6..c573cdf6268bae8eaa4e8c898c03d92f834fcd3a 100644 (file)
@@ -85,7 +85,12 @@ Once the sandbox is running, you will receive a guile prompt:
 guile>
 @end lisp
 
-You can enter Scheme expressions at this prompt to experiment with Scheme.
+You can enter Scheme expressions at this prompt to experiment with
+Scheme.  If you want to be able to use the GNU readline library for
+nicer editing of the Scheme command line, check the file
+@file{ly/scheme-sandbox.ly} for more information.  If you already have
+enabled the readline library for your interactive Guile sessions outside
+of LilyPond, this should work in the sandbox as well.
 
 @node Scheme variables
 @subsection Scheme variables
index eb38380256157866f19e14254a5f341a51cadffb..a811a1d5b611b662e3bc764b803e64bb5e733bad 100644 (file)
@@ -1,5 +1,16 @@
 \version "2.14.0"
-#(use-modules (ice-9 readline))
-#(activate-readline)
+
+#(load-user-init)
+
+% This loads the user's .guile file for interactive sessions.
+% One typical thing you might want to put there is
+% (use-modules (ice-9 readline))
+% (activate-readline)
+% in order to activate command line editing for interactive sessions.
+% You need libreadline support and the respective Guile module to be
+% installed for that.  In Debian, for example, this is part of the
+% guile-1.8-libs package.  Depending on your system and version, the
+% requirements may be different.
+
 #(newline)
 #(scm-style-repl)