[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \noSpace macro?
From: |
David Kastrup |
Subject: |
Re: \noSpace macro? |
Date: |
Thu, 30 May 2013 18:26:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Kieren MacMillan <address@hidden> writes:
> Hi David,
>
>> Maybe
>> [...]
>> -\tweak #'vertical-skylines #f -\tweak #'X-offset #-3
>> -\tweak #'extra-spacing-width #empty-interval
>> -\tweak #'extra-spacing-height #empty-interval
>
> Man, you know all the good stuff!! =)
Not really. I tried horizontal-skyline first, did a grep, corrected to
horizontal-skylines, saw no difference, tried out vertical...
> Thanks!
>
> Can this be made into a macro? I tried every variation I could think of, e.g.
>
> empty = { -\tweak #'vertical-skylines #f -\tweak #'extra-spacing-width
> #empty-interval -\tweak #'extra-spacing-height #empty-interval }
empty-interval is just "short" for (or rather, less likely to typos
than) '(+inf.0 . -inf.0).
empty seems rather generic as a function name. I'd rather pick
something less likely for collisions. An any rate:
empty =
#(define-music-function (parser location item) (symbol-list-or-music?)
#{ \tweak #'vertical-skylines #f \tweak #'extra-spacing-width
#empty-interval \tweak #'extra-spacing-height #empty-interval
#item #})
should likely do the trick. Possibly you want to stomp out the
horizontal-skylines as well: that would seem to make sense in connection
with extra-spacing-width.
--
David Kastrup