Re: book-predicate / mail delay

2012-03-05 Thread Jan-Peter Voigt
Hello David, thank you for answering! Now I know about (make-module) and (module-define! ...) - these are the two I was missing, while reading the guile 1.8 docs ... So these are the set-book/score-headers! functions: --snip-- (define-public (set-book-headers! book header) (let ((bookhead

Re: book-predicate / mail delay

2012-03-05 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: So AFAICS there are at least 3 different ways to create a module to use in a header: 1: (eval-string (define-module (a b))) What's with the eval-string nonsense? Why don't you just use (define-module (a b)) instead? because: define-module can only be

Re: book-predicate

2012-03-04 Thread Jan-Peter Voigt
Hello David, sorry for this kind-a-basic-scheme-question(s) ... ;-) How do I inject variables into an empty module? I assume, the string-eval approach loads up the whole guile-tool-chain, so that define is defined. The function I am thinking of shall work like this: pseudo-snip

Re: book-predicate

2012-03-04 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: sorry for this kind-a-basic-scheme-question(s) ... ;-) How do I inject variables into an empty module? I assume, the string-eval approach loads up the whole guile-tool-chain, so that define is defined. The function I am thinking of shall work like

Re: book-predicate

2012-03-03 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: On 02.03.2012 10:30, David Kastrup wrote: Jan-Peter Voigtjp.vo...@gmx.de writes: Hello David, hello lists, now, when we have a book-predicate, we are dealing with books in scheme. And then we might want to set a header after creating a book

Re: book-predicate

2012-03-02 Thread Jan-Peter Voigt
Hello David, hello lists, now, when we have a book-predicate, we are dealing with books in scheme. And then we might want to set a header after creating a book. There is a function ly:score-set-header!, which I copied and adapted for the Book-class. This patch compiled and works

Re: book-predicate

2012-03-02 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: Hello David, hello lists, now, when we have a book-predicate, we are dealing with books in scheme. And then we might want to set a header after creating a book. There is a function ly:score-set-header!, which I copied and adapted for the Book-class

Re: book-predicate

2012-03-02 Thread Jan-Peter Voigt
On 02.03.2012 10:30, David Kastrup wrote: Jan-Peter Voigtjp.vo...@gmx.de writes: Hello David, hello lists, now, when we have a book-predicate, we are dealing with books in scheme. And then we might want to set a header after creating a book. There is a function ly:score-set-header!, which I

Re: book-predicate

2012-02-28 Thread Jan-Peter Voigt
Again: Thank you, David! So now (with upcoming 2.15.31 or 2.16) one can write functions like: --snip-- bookif = #(define-scheme-function (parser location book pred)(ly:book? procedure?) (if (pred parser location)(collect-bookpart-for-book parser book) )) --snip-- to conditionally add

Re: book-predicate

2012-02-27 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: Am 24.02.2012 um 16:24 schrieb: Jan-Peter Voigt jp.vo...@gmx.de writes: Hello list, when I use books or bookparts for (scheme-)function arguments, I haven't found the predicate for it. paper-book? is something else, or am I missing something?

book-predicate

2012-02-24 Thread Jan-Peter Voigt
Hello list, when I use books or bookparts for (scheme-)function arguments, I haven't found the predicate for it. paper-book? is something else, or am I missing something? Cheers, Jan-Peter ___ lilypond-user mailing list lilypond-user@gnu.org

book-predicate

2012-02-24 Thread Jan-Peter Voigt
Hello list, when I use books or bookparts for (scheme-)function arguments, I haven't found the predicate for it. paper-book? is something else, or am I missing something? Cheers, Jan-Peter ___ lilypond-user mailing list lilypond-user@gnu.org

Re: book-predicate

2012-02-24 Thread David Kastrup
Jan-Peter Voigt jp.vo...@gmx.de writes: Hello list, when I use books or bookparts for (scheme-)function arguments, I haven't found the predicate for it. paper-book? is something else, or am I missing something? Well, you can always use scheme? and file a feature request in the mean time.

Re: book-predicate

2012-02-24 Thread Jan-Peter Voigt
Thank you David, the scheme?-solution is what I do right now. I will send a feature request next days. Cheers, Jan-Peter Am 24.02.2012 um 16:24 schrieb David Kastrup d...@gnu.org: Jan-Peter Voigt jp.vo...@gmx.de writes: Hello list, when I use books or bookparts for (scheme-)function