]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4456: Syntax constructors should not be exported
authorDavid Kastrup <dak@gnu.org>
Wed, 17 Jun 2015 17:22:33 +0000 (19:22 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 23 Jun 2015 08:19:40 +0000 (10:19 +0200)
Their argument types constitute an internal parser detail.

scm/ly-syntax-constructors.scm

index 9f2c98048df5eaf78561d1ee5713695973711572..423726900b6ad3a0708de74f78bab3033e730f72 100644 (file)
@@ -18,7 +18,7 @@
 ;; TODO: use separate module for syntax
 ;; constructors. Also create wrapper around the constructor?
 (defmacro define-ly-syntax (args . body)
-  `(define-public ,args ,@body))
+  `(define ,args ,@body))
 
 ;; A ly-syntax constructor can access location data as (*location*).
 ;; This is mainly used for reporting errors and warnings. This
@@ -26,7 +26,7 @@
 ;; origin of the returned music object; this behaviour is usually
 ;; desired.
 (defmacro define-ly-syntax-loc (args . body)
-  `(define-public ,args
+  `(define ,args
      (let ((m ,(cons 'begin body)))
        (set! (ly:music-property m 'origin) (*location*))
        m)))