]> git.donarmstrong.com Git - lilypond.git/blob - ly/init.ly
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[lilypond.git] / ly / init.ly
1 %% Toplevel initialisation file. 
2
3 %% switch on debugging.
4 #(if (and #t (defined? 'set-debug-cell-accesses!))
5   (set-debug-cell-accesses! 5000))
6
7 #(define-public midi-debug  #f)
8
9
10
11
12 \version "2.10.0"
13
14 \include "declarations-init.ly"
15
16
17 #(ly:set-option 'old-relative #f)
18 #(define toplevel-scores '())
19 #(define output-count 0) 
20 #(define $defaultheader #f)
21 #(define version-seen #f)
22
23
24 #(use-modules (scm clip-region))
25 \maininput
26 %% there is a problem at the end of the input file
27
28 %%
29 %% Above and below comments compensate for the parser's look-ahead.
30 %%
31
32 #(if (and (ly:get-option 'old-relative)
33       (defined? 'input-file-name)
34       (not (ly:get-option 'old-relative-used)))
35   (old-relative-not-used-message input-file-name))%% there is a problem at the end of the input file
36
37 #(if (and (not version-seen)
38       (defined? 'input-file-name))
39   (version-not-seen-message input-file-name))
40
41 #(if (pair? toplevel-scores)
42   (toplevel-book-handler
43    parser
44    (apply ly:make-book $defaultpaper $defaultheader toplevel-scores)))