Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(773)

Side by Side Diff: ly/music-functions-init.ly

Issue 5464045: T2026: Use new (scm markup-facility-defs) scheme module for markup commands. (Closed)
Patch Set: Implementing feedback from patchset 2 - also handle conditions thrown in markup module code Created 13 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 %%%% -*- Mode: Scheme -*- 1 %%%% -*- Mode: Scheme -*-
2 2
3 %%%% This file is part of LilyPond, the GNU music typesetter. 3 %%%% This file is part of LilyPond, the GNU music typesetter.
4 %%%% 4 %%%%
5 %%%% Copyright (C) 2003--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> 5 %%%% Copyright (C) 2003--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 %%%% Jan Nieuwenhuizen <janneke@gnu.org> 6 %%%% Jan Nieuwenhuizen <janneke@gnu.org>
7 %%%% 7 %%%%
8 %%%% LilyPond is free software: you can redistribute it and/or modify 8 %%%% LilyPond is free software: you can redistribute it and/or modify
9 %%%% it under the terms of the GNU General Public License as published by 9 %%%% it under the terms of the GNU General Public License as published by
10 %%%% the Free Software Foundation, either version 3 of the License, or 10 %%%% the Free Software Foundation, either version 3 of the License, or
(...skipping 10 matching lines...) Expand all
21 \version "2.15.18" 21 \version "2.15.18"
22 22
23 23
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
25 %% this file is alphabetically sorted. 25 %% this file is alphabetically sorted.
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 27
28 %% need SRFI-1 for filter; optargs for lambda* 28 %% need SRFI-1 for filter; optargs for lambda*
29 #(use-modules (srfi srfi-1) 29 #(use-modules (srfi srfi-1)
30 (ice-9 optargs)) 30 (ice-9 optargs))
31 %% need (scm markup-facility-defs)for markup?
dak 2012/01/02 14:04:39 Wasn't this supposed to get removed? This was not
Ian Hulin (gmail) 2012/01/02 21:19:24 No. This isn't a user-level document, it's part o
dak 2012/01/02 21:33:07 Argl. I just don't get along with Rietveld: I tho
32 #(use-modules (scm markup-facility-defs))
31 33
32 %% TODO: using define-music-function in a .scm causes crash. 34 %% TODO: using define-music-function in a .scm causes crash.
33 35
34 acciaccatura = 36 acciaccatura =
35 #(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic 37 #(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic
36 (_i "Create an acciaccatura from the following music expression")) 38 (_i "Create an acciaccatura from the following music expression"))
37 39
38 %% keep these two together 40 %% keep these two together
39 "instrument-definitions" = #'() 41 "instrument-definitions" = #'()
40 addInstrumentDefinition = 42 addInstrumentDefinition =
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 Use this if you want to have a scheme expression evaluated 1173 Use this if you want to have a scheme expression evaluated
1172 because of its side-effects, but its value ignored.")) 1174 because of its side-effects, but its value ignored."))
1173 1175
1174 withMusicProperty = 1176 withMusicProperty =
1175 #(define-music-function (parser location sym val music) 1177 #(define-music-function (parser location sym val music)
1176 (symbol? scheme? ly:music?) 1178 (symbol? scheme? ly:music?)
1177 (_i "Set @var{sym} to @var{val} in @var{music}.") 1179 (_i "Set @var{sym} to @var{val} in @var{music}.")
1178 1180
1179 (set! (ly:music-property music sym) val) 1181 (set! (ly:music-property music sym) val)
1180 music) 1182 music)
OLDNEW
« no previous file with comments | « input/regression/bookparts.ly ('k') | ly/titling-init.ly » ('j') | ly/titling-init.ly » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b