From 82ed908b7517658807ff7620b37979d0116b97c7 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 9 May 2004 13:06:36 +0000 Subject: [PATCH] *** empty log message *** --- Documentation/topdocs/NEWS.texi | 2 +- ly/music-functions-init.ly | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 ly/music-functions-init.ly diff --git a/Documentation/topdocs/NEWS.texi b/Documentation/topdocs/NEWS.texi index 1476b409ea..bbd55c2d44 100644 --- a/Documentation/topdocs/NEWS.texi +++ b/Documentation/topdocs/NEWS.texi @@ -8,7 +8,7 @@ @itemize @bullet @item The @code{--safe} mode has been revisited: it makes the basic -ly: interface available, and makes prevents Scheme or @TeX{} code. +ly: interface available, and stops malicious @TeX{} code. @item Music syntax can now be extended seamlessly. As an example, here is the new implementation @code{\applymusic}, diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly new file mode 100644 index 0000000000..7eeae8d54c --- /dev/null +++ b/ly/music-functions-init.ly @@ -0,0 +1,31 @@ +applymusic = #(ly:make-music-function + (list procedure? ly:music?) ; signature + (lambda (where func music) ; the function + (func music))) + +\version "2.3.1" + + + +%{ + +TODO: + +remove these from the parser, and softcode here: + + * \addlyrics + * \tag + * \appoggiatura, \acciaccatura, \grace + * \partcombine + * \autochange + * \applycontext + * \applyoutput + * \breathe + + +with small syntax changes, we could also do + + * \bar + * ? + +%} -- 2.39.5