From 1f84e8613c950b773562b95d87c5e051c8016650 Mon Sep 17 00:00:00 2001 From: Valentin Villenave Date: Sun, 24 Oct 2010 01:49:11 +0200 Subject: [PATCH] Fix #903: minor addition The 'pitchname variable is actually used by the parser and the display-method thingy. Therefore the \language command should update it as well. --- ly/music-functions-init.ly | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly index 6419b642e6..ad53afe592 100644 --- a/ly/music-functions-init.ly +++ b/ly/music-functions-init.ly @@ -383,10 +383,11 @@ language = #f))) (if extract-alist - (begin + (let ((lang-alist (eval-string extract-alist))) (if (ly:get-option 'verbose) (ly:message (_ "Using ~a note names...") str)) - (ly:parser-set-note-names parser (eval-string extract-alist))) + (set! pitchnames lang-alist) + (ly:parser-set-note-names parser lang-alist)) (ly:error (_ "Cannot process ~a as a language file. Use \\include \"~a\" instead.") file-name file-name)) make-void-music)) -- 2.39.2