]> git.donarmstrong.com Git - lilypond.git/commitdiff
Guile v2: Set 'show-file-name option correctly.
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 18 Aug 2011 06:18:46 +0000 (23:18 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Thu, 18 Aug 2011 06:35:02 +0000 (23:35 -0700)
This fixes a compile issue with Guile v2.

Using the `debug-enable' procedure with non-boolean debug options raises
an error with Guile v2.  The internal type for `show-file-name' is
SCM_OPTION_SCM, and this is why we can't use `debug-enable' here.

The fix is to use `debug-set!', passing the unquoted option name and
the value as arguments (as stated in the Guile documentation).

scm/lily.scm

index c2b4fa7f2b4a06200d0cfe92154be2145fb11809..cf6c8b07c842408e6a57c88021939a57e747b6c3 100644 (file)
@@ -36,7 +36,7 @@
     (debug-enable 'debug)
     (begin
       (debug-enable 'backtrace)
-      (debug-enable 'show-file-name)))
+      (debug-set! show-file-name #t)))
 
 (define-public PLATFORM
   (string->symbol