]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4798/3: Define key?, key-list?, key-list-or-music?, key-list-or-symbol?
authorDavid Kastrup <dak@gnu.org>
Fri, 12 Feb 2016 17:02:10 +0000 (18:02 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 19 Mar 2016 13:20:03 +0000 (14:20 +0100)
commita2f0f4f890e4dbc3062a86f4d6e1e9bf65dcac98
treeeb742a7b7a113cefdb3ae2446017c08eeea2ea74
parent17440eeed8ec9fc6714d5b418387fb162d232003
Issue 4798/3: Define key?, key-list?, key-list-or-music?, key-list-or-symbol?

A key (previously a symbol) can be either a non-negative
integer (obeying the predicate index?) or a symbol.  When used for
overrides/reverts, the first elements of a path may not actually be
numbers but they are flagged as an error by other means: since a full
override path can be the concatenation of several key lists, the leading
elements are not treated differently by the list predicates.

Strictly speaking this should not be the case for key-list-or-music? or
key-list-or-symbol? predicates, but making them behave differently seems
unwarranted.  Arguably key-list-or-symbol? should possibly be
key-list-or-key? instead.
scm/c++.scm
scm/lily.scm