On 30 October 2010 22:40, Marc Hohl <m...@hohlart.de> wrote:

>  File "/home/marc/git/lilypond/python/out/book_snippets.py", line 561, in
> compose_ly
>    if self.global_options.safe_mode:
> AttributeError: Values instance has no attribute 'safe_mode'

I don't think this has anything to do with your patch.  It looks like
lilypond-book is out of date (the safe_mode option was only added a
week or two ago).

> What is to be done? Is there a clean solution to enable scheme engravers in
> engraver-init.ly?

Scheme engravers need to link up with the existing code which makes
all the translator documentation accessible from scheme
(translator_description () and ly:translator-description).

This is what I get from a clean build (I can't even get to the doc build stage):

Writing "internals.texi"...Backtrace:
In 
/home/neil/lilypond/out/share/lilypond/current/scm/documentation-generate.scm:
 159:  3* [list #<<texi-node> 2ba01bc1ffa0> ...
 161:  4* [translation-doc-node]
In /home/neil/lilypond/out/share/lilypond/current/scm/document-translation.scm:
 276:  5  [make-instance #<<class> <texi-node> 2ba01c1ae900> #:name ... ...
 280:  6* [list ...
 281:  7* [all-contexts-doc]
 239:  8  (let* (# # #) (make <texi-node> # "Contexts" ...))
 245:  9  [make-instance #<<class> <texi-node> 2ba01c1ae900> #:name ... ...
 249: 10* [map #<procedure context-doc (context-desc)> (# # # # ...)]
In unknown file:
   ?: 11* [context-doc (# # # # ...)]
In /home/neil/lilypond/out/share/lilypond/current/scm/document-translation.scm:
 162: 12* (let* (# # # # ...) (make <texi-node> # name ...))
 169: 13* [context-grobs (# # # # ...)]
 228: 14  (let* ((group #) (consists #) (grobs #)) grobs)
 234: 15* [apply #<primitive-procedure append> ...
 235: 16* [map #<procedure engraver-grobs #> #]
In unknown file:
   ?: 17* [engraver-grobs {#<procedure Tab_tie_follow_engraver (context)>}]
In /home/neil/lilypond/out/share/lilypond/current/scm/document-translation.scm:
 220: 18* (let* ((eg (if # # ...))) (if (eq? eg #f) (quote ()) ...))
 223: 19  (if (eq? eg #f) (quote ()) ...)
 225: 20  [map #<primitive-procedure symbol->string> ...
 225: 21* [ly:assoc-get grobs-created ...
 225: 22* [ly:translator-description {#<procedure Tab_tie_follow_engraver #>}]

/home/neil/lilypond/out/share/lilypond/current/scm/document-translation.scm:225:55:
In procedure ly:translator-description in expression
(ly:translator-description eg):
/home/neil/lilypond/out/share/lilypond/current/scm/document-translation.scm:225:55:
Wrong type argument in position 1 (expecting Translator): #<procedure
Tab_tie_follow_engraver (context)>

Cheers,
Neil

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to