lilypond-devel
[Top][All Lists]
Advanced

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

Re: Add Scheme function to return column associated with Item. (issue 20


From: David Nalesnik
Subject: Re: Add Scheme function to return column associated with Item. (issue 203910043 by address@hidden)
Date: Sun, 15 Feb 2015 13:14:25 -0600

On Sun, Feb 15, 2015 at 12:34 PM, Thomas Morley <address@hidden>
wrote:

> 2015-02-15 19:28 GMT+01:00 Thomas Morley <address@hidden>:
>


>
> Oops, definition for 'grob-name' is missing:
>
> #(define grob-name
>   (lambda (x)
>     (if (ly:grob? x)
>         (assq-ref (ly:grob-property x 'meta) 'name)
>         (ly:error "~a is not a grob" x))))
>
>
Now, a function to get a grob's name would certainly be useful.  I'm sick
to death of constantly recreating it or looking it up (as I bet you are)!
If there's a question of usefulness, I think we've established the need...

The benefit of doing this in C++ is that there's probably something in
place already and it will get automatically documented in the Scheme
functions list.


reply via email to

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