|
From: | Urs Liska |
Subject: | scheme-function to provide value for \include |
Date: | Tue, 28 Jun 2016 09:23:14 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
Hi all, I am surprised that \include refuses to accept a string that isn't passed literally but through a scheme-function:
\version "2.19.43" givePath = #(define-scheme-function ()() "some/path/that/will/probably/not/be/found.ily") #(display (givePath)) \include \givePath I would of course expect this to fail because it doesn't find the file, but instead I get:
error: wrong or undefined identifier: `givePath' \include \givePath /tmp/frescobaldi-AbipCK/tmpMjey3N/document.ly:9:10: error: Unfinished main input \include \givePath some/path/that/will/probably/not/be/found.ily This value was found in the table: #<Music function #<procedure #f ()>>fatal error: failed files: "/tmp/frescobaldi-AbipCK/tmpMjey3N/document.ly" Am I missing something here, is this expected to fail? Urs |
[Prev in Thread] | Current Thread | [Next in Thread] |