1 ;;;; This file is part of LilyPond, the GNU music typesetter.
3 ;;;; Copyright (C) 2004--2011 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
55 ly:get-all-function-documentation
56 ly:get-all-translators
65 ly:grob-script-priority-less
67 ly:grob-staff-position
70 ly:grob-translate-axis!
72 ly:input-file-line-char-column
82 ly:make-music-function
90 ly:music-duration-compress
91 ly:music-duration-length
94 ly:music-mutable-properties
97 ly:music-set-property!
107 ly:output-description
114 ly:parser-parse-string
119 ly:pitch-quartertones
129 ly:spanner-broken-into
132 ly:staff-symbol-line-thickness
134 ly:stencil-aligned-to
135 ly:stencil-combine-at-edge
139 ly:stencil-translate-axis
141 ly:translator-description
144 ly:transpose-key-alist
150 ;; FIXME: cannot change staff size in --safe-mode
155 ly:accidental-interface::print
157 ly:arpeggio::brew-chord-bracket
159 ly:breathing-sign::offset-callback
162 ly:cluster-beacon::height
166 ly:hara-kiri-group-spanner::force-hara-kiri-callback
167 ly:hara-kiri-group-spanner::y-extent
168 ly:horizontal-bracket::print
169 ly:lyric-hyphen::print
170 ly:lyric-hyphen::set-spacing-rods
171 ly:key-signature-interface::print
172 ly:line-spanner::print
173 ly:lyric-extender::print
174 ly:measure-grouping::print
175 ly:mensural-ligature::brew-ligature-primitive
176 ly:mensural-ligature::print
177 ly:multi-measure-rest::percent
178 ly:multi-measure-rest::print
179 ly:multi-measure-rest::set-spacing-rods
181 ly:ottava-bracket::print
182 ly:paper-column::print
183 ly:percent-repeat-item-interface::beat-slash
184 ly:percent-repeat-item-interface::double-percent
185 ly:piano-pedal-bracket::print
187 ly:script-interface::print
190 ly:spacing-spanner::set-springs
192 ly:spanner::set-spacing-rods
193 ly:staff-symbol::print
194 ly:staff-symbol-referencer::callback
196 ly:stem::offset-callback
198 ly:stem-tremolo::height
199 ly:stem-tremolo::print
200 ly:sustain-pedal::print
201 ly:system-start-delimiter::print
202 ly:text-interface::print
204 ly:time-signature::print
205 ly:tuplet-bracket::print
206 ly:vaticana-ligature::brew-ligature-primitive
207 ly:vaticana-ligature::print
208 ly:volta-bracket-interface::print
211 (define-public (make-safe-lilypond-module)
212 (let* ((m (make-safe-module)))
213 (for-each (lambda (p) (module-define! m (car p) (cdr p))) safe-objects)