|
From: | Han-Wen Nienhuys |
Subject: | Re: Problem with "-e" (execute Scheme code) option |
Date: | Thu, 09 Mar 2006 22:54:46 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
Alan Stern wrote:
The "-e" command line option (execute Scheme code) doesn't work right. The code gets executed twice(!) and the results aren't available during the remainder of the Lilypond run -- which makes the facility useless. Here's an example with 2.7.33 (behavior under 2.7.37 is the same, but I can't run the later version on this machine):
thanks. I've added the following to the docs The expression will be evaluated in the @code{guile-user} module, so if you want to use definitions in @var{expr}, use @example lilypond -e '(define-public a 42)' @end example @noindent on the command-line, and include @example #(use-modules (guile-user)) @end example @noindent at the top of the @code{.ly} file. -- Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com
[Prev in Thread] | Current Thread | [Next in Thread] |