Remove debug code.
[lilypond.git] / scm / safe-lily.scm
blob6c2917890e8a3c0003ed2f8b8c921229986e829c
1 ;;;; safe-lily.scm -- 
2 ;;;;
3 ;;;; source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 (map
8  (lambda (sym)
9    (set! safe-objects (cons (cons sym (primitive-eval sym))
10                             safe-objects)))
11  '(ly:add-interface
12    ly:moment-add
13    ly:all-grob-interfaces
14    ly:all-output-backend-commands
15    ly:all-stencil-expressions
16    ly:bracket
17    ly:context-find
18    ly:context-id
19    ly:context-name
20    ly:context-parent
21    ly:context-property
22    ly:context-property-where-defined
23    ly:context-pushpop-property
24    ly:context-set-property!
25    ly:context-unset-property
26    ly:context?
27    ly:dimension?
28    ly:dir?
29    ly:moment-div
30    ly:duration-dot-count
31    ly:duration-factor
32    ly:duration-log
33    ly:duration<?
34    ly:duration?
35    ly:error
36    ly:export
37    ly:font-get-glyph
38    ly:font-design-size
39    ly:font-file-name
40    ly:font-magnification
41    ly:font-metric?
42    ly:font-name
43    ly:format-output
44    ly:get-all-function-documentation
45    ly:get-all-translators
46    ly:get-glyph
47    ly:get-option
48    ly:grob-alist-chain
49    ly:grob-default-font
50    ly:grob-extent
51    ly:grob-original
52    ly:grob-layout
53    ly:grob-parent
54    ly:grob-property
55    ly:grob-script-priority-less
56    ly:grob-set-property!
57    ly:grob-staff-position
58    ly:grob-suicide!
59    ly:grob-system
60    ly:grob-translate-axis!
61    ly:grob?
62    ly:input-file-line-char-column
63    ly:input-location?
64    ly:input-message
65    ly:intlog2
66    ly:item-break-dir
67    ly:item?
68    ly:iterator?
69    ly:make-music
70    ly:make-duration
71    ly:make-moment
72    ly:make-music-function
73    ly:make-pitch
74    ly:make-stencil
75    ly:moment<?
76    ly:moment?
77    ly:moment-mul
78    ly:music-compress
79    ly:music-deep-copy
80    ly:music-duration-compress
81    ly:music-duration-length
82    ly:music-length
83    ly:music-list?
84    ly:music-mutable-properties
85    ly:music-property
86    ly:make-score
87    ly:music-set-property!
88    ly:music-transpose
89    ly:music?
90    ly:lily-parser?
91    ly:message
92    ly:number->string
93    ly:option-usage
94    ly:output-def-clone
95    ly:output-def-scope
96    ly:output-description
97    ly:paper-book?
98    ly:prob-property
99    ly:output-def?
100    ly:paper-get-font
101    ly:paper-get-number
102    ly:paper-system?
103    ly:output-def-lookup
104    ly:parser-parse-string
105    ly:pitch-alteration
106    ly:pitch-diff
107    ly:pitch-notename
108    ly:pitch-octave
109    ly:pitch-quartertones
110    ly:pitch-semitones
111    ly:pitch-steps
112    ly:pitch-transpose
113    ly:pitch<?
114    ly:pitch?
115    ly:round-filled-box
116    ly:run-translator
117    ly:set-option
118    ly:set-point-and-click
119    ly:spanner-broken-into
120    ly:spanner-bound
121    ly:spanner?
122    ly:stencil-add
123    ly:stencil-aligned-to
124    ly:stencil-combine-at-edge
125    ly:stencil-expr
126    ly:stencil-extent
127    ly:stencil-translate
128    ly:stencil-translate-axis
129    ly:stencil?
130    ly:text-dimension
131    ly:translator-description
132    ly:translator-name
133    ly:translator?
134    ly:transpose-key-alist
135    ly:unit
136    ly:usage
137    ly:version
138    ly:warning
140    ;; FIXME: cannot change staff size in --safe-mode
141    ;;$defaultpaper
142    ;;$defaultmidi
143    ;;$defaultlayout
145    ly:accidental-interface::print
146    ly:ambitus::print
147    ly:arpeggio::print
148    ly:arpeggio::brew-chord-bracket
149    ly:bar-line::print
150    ly:breathing-sign::offset-callback
151    ly:clef::print
152    ly:cluster::print
153    ly:cluster-beacon::height
154    ly:custos::print
155    ly:dots::print
156    ly:hairpin::print
157    ly:hara-kiri-group-spanner::force-hara-kiri-callback
158    ly:hara-kiri-group-spanner::y-extent
159    ly:horizontal-bracket::print
160    ly:lyric-hyphen::print
161    ly:lyric-hyphen::set-spacing-rods
162    ly:key-signature-interface::print
163    ly:line-spanner::print
164    ly:lyric-extender::print
165    ly:measure-grouping::print
166    ly:mensural-ligature::brew-ligature-primitive
167    ly:mensural-ligature::print
168    ly:multi-measure-rest::percent
169    ly:multi-measure-rest::print
170    ly:multi-measure-rest::set-spacing-rods
171    ly:note-head::print
172 ;;   ly:note-head::brew-ez-stencil
173    ly:ottava-bracket::print
174    ly:paper-column::print
175    ly:percent-repeat-item-interface::beat-slash
176    ly:percent-repeat-item-interface::double-percent
177    ly:piano-pedal-bracket::print
178    ly:rest::print
179    ly:script-interface::print
180    ly:slur::height
181    ly:slur::print
182    ly:spacing-spanner::set-springs
183    ly:span-bar::print
184    ly:spanner::set-spacing-rods
185    ly:staff-symbol::print
186    ly:staff-symbol-referencer::callback
187    ly:stem::height
188    ly:stem::offset-callback
189    ly:stem::print
190    ly:stem-tremolo::height
191    ly:stem-tremolo::print
192    ly:sustain-pedal::print
193    ly:system-start-delimiter::print
194    ly:text-interface::print
195    ly:tie::print
196    ly:time-signature::print
197    ly:tuplet-bracket::print
198    ly:vaticana-ligature::brew-ligature-primitive
199    ly:vaticana-ligature::print
200    ly:volta-bracket-interface::print
201    ))
203 (define-public (make-safe-lilypond-module)
204   (let* ((m (make-safe-module)))
205     (for-each (lambda (p) (module-define! m (car p) (cdr p))) safe-objects)
206     m))