bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-match unbound


From: Phil Holmes
Subject: Re: string-match unbound
Date: Fri, 27 May 2011 17:37:00 +0100

"Piers Titus" <address@hidden> wrote in message news:address@hidden
I'm not top posting.

% The function string-match is not available, while it is in GUILE.
% Lilypond gives error: Unbound variable: string-match
% This bug has been noticed before, see
http://lilypond-s-support-for-tablatures.3383434.n2.nabble.com/slides-td3533701i20.html
% (this is just a test file, which doesn't have a meaning if there was no error,
the real problem is redefining the /clef command with code copied from
scm/parser-clef.scm)
\version "2.12.3"

clef = #(define-music-function (parser location clef-name) (string?)
  (string-match "^(.*)([_^])([1-9][0-9]*)$" clef-name))
\relative c'' {
 \clef "treble_8"
 c
}

I don't understand the code so don't know whether it should work or not - could someone who does understand this say whether it's a LilyPond bug, please?

--
Phil Holmes
Bug Squad






reply via email to

[Prev in Thread] Current Thread [Next in Thread]