|
From: | Jeff Olson |
Subject: | Re: accessing current file name in markup function |
Date: | Thu, 7 Dec 2023 11:47:33 -0700 |
User-agent: | Mozilla Thunderbird |
\version "2.24.2" locationOf = #(define-scheme-function () () (apply format #f "~a:~a:~a:~a" (ly:input-file-line-char-column (*location*)))) \markup { \locationOf }
Documentation question from trying to understand *location* in David's solution:
I found that function in the IR documentation[1], but I could not find the definition of a sip:
Function: ly:input-file-line-char-column
sipReturn input location in sip as
(file-name line char column)
.
Guessing, is sip a stream input pointer? Where would I look to find the definition/example of sip?
Or, David, does *location* mean a string literal containing the
name of the file like "eso.ly"?
TIA,
Jeff
[Prev in Thread] | Current Thread | [Next in Thread] |