1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 2004--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
5 ;;;; LilyPond is free software: you can redistribute it and/or modify
6 ;;;; it under the terms of the GNU General Public License as published by
7 ;;;; the Free Software Foundation, either version 3 of the License, or
8 ;;;; (at your option) any later version.
10 ;;;; LilyPond is distributed in the hope that it will be useful,
11 ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ;;;; GNU General Public License for more details.
15 ;;;; You should have received a copy of the GNU General Public License
16 ;;;; along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 (set! safe-objects (cons (cons sym (primitive-eval sym))
24 ly:all-grob-interfaces
25 ly:all-output-backend-commands
26 ly:all-stencil-expressions
33 ly:context-property-where-defined
34 ly:context-pushpop-property
35 ly:context-set-property!
36 ly:context-unset-property
54 ly:get-all-function-documentation
55 ly:get-all-translators
64 ly:grob-script-priority-less
66 ly:grob-staff-position
69 ly:grob-translate-axis!
71 ly:input-file-line-char-column
81 ly:make-music-function
89 ly:music-duration-compress
90 ly:music-duration-length
93 ly:music-mutable-properties
96 ly:music-set-property!
106 ly:output-description
113 ly:parser-parse-string
118 ly:pitch-quartertones
128 ly:spanner-broken-into
131 ly:staff-symbol-line-thickness
133 ly:stencil-aligned-to
134 ly:stencil-combine-at-edge
138 ly:stencil-translate-axis
140 ly:translator-description
143 ly:transpose-key-alist
149 ;; FIXME: cannot change staff size in --safe-mode
154 ly:accidental-interface::print
156 ly:arpeggio::brew-chord-bracket
158 ly:breathing-sign::offset-callback
161 ly:cluster-beacon::height
165 ly:hara-kiri-group-spanner::force-hara-kiri-callback
166 ly:hara-kiri-group-spanner::y-extent
167 ly:horizontal-bracket::print
168 ly:lyric-hyphen::print
169 ly:lyric-hyphen::set-spacing-rods
170 ly:key-signature-interface::print
171 ly:line-spanner::print
172 ly:lyric-extender::print
173 ly:measure-grouping::print
174 ly:mensural-ligature::brew-ligature-primitive
175 ly:mensural-ligature::print
176 ly:multi-measure-rest::percent
177 ly:multi-measure-rest::print
178 ly:multi-measure-rest::set-spacing-rods
180 ly:ottava-bracket::print
181 ly:paper-column::print
182 ly:percent-repeat-item-interface::beat-slash
183 ly:percent-repeat-item-interface::double-percent
184 ly:piano-pedal-bracket::print
186 ly:script-interface::print
189 ly:spacing-spanner::set-springs
191 ly:spanner::set-spacing-rods
192 ly:staff-symbol::print
193 ly:staff-symbol-referencer::callback
195 ly:stem::offset-callback
197 ly:stem-tremolo::print
198 ly:sustain-pedal::print
199 ly:system-start-delimiter::print
200 ly:text-interface::print
202 ly:time-signature::print
203 ly:tuplet-bracket::print
204 ly:vaticana-ligature::brew-ligature-primitive
205 ly:vaticana-ligature::print
206 ly:volta-bracket-interface::print
209 (define-public (make-safe-lilypond-module)
210 (let* ((m (make-safe-module)))
211 (for-each (lambda (p) (module-define! m (car p) (cdr p))) safe-objects)