]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/safe-utility-defs.scm
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scm / safe-utility-defs.scm
index 0c699fbbbc1a92f8530940e4604af73725760bf8..9591edb4f55ba43820447c7c5f3f4d37372227d3 100644 (file)
@@ -1,6 +1,6 @@
 ;;;; This file is part of LilyPond, the GNU music typesetter.
 ;;;;
-;;;; Copyright (C) 1998--2014 Jan Nieuwenhuizen <janneke@gnu.org>
+;;;; Copyright (C) 1998--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 ;;;; Han-Wen Nienhuys <hanwen@xs4all.nl>
 ;;;;
 ;;;; LilyPond is free software: you can redistribute it and/or modify
   #:export-syntax (define-safe-public)
   #:re-export-syntax (define*-public))
 
+(if (string>? (version) "1.9.10")
+    (use-modules (ice-9 curried-definitions)))
+
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Safe definitions utility
 
@@ -44,8 +48,9 @@ LilyPond safe mode.  The syntax is the same as `define*-public'."
 
   (let ((safe-symbol (get-symbol arglist)))
     `(begin
-       (define*-public ,arglist
+       (define* ,arglist
          ,@body)
        (set! safe-objects (cons (cons ',safe-symbol ,safe-symbol)
                                 safe-objects))
+       (export ,safe-symbol)
        ,safe-symbol)))