Re: Custom Barlines in 2.26

Thomas Morley <[email protected]> Sat, 20 Jun 2026 21:10:14 +0200
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <CABsfGyUQSEfcmsmpvS=+k5Uc4CcFUMK0TQ12rU13Lq8PMEZ1yA@mail.gmail.com>
Am Sa., 20. Juni 2026 um 17:49 Uhr schrieb Fr. Samuel Springuel
<[email protected]>:
>
> I’m in the process of updating a project from 2.24.4 to 2.26.0 and have run into a problem with my custom barlines that convert-ly does not solve.  Attached is the MWE.  The only change that convert-ly applied to the file was to change the version number.  The file compiles fine under 2.24.4 but fails under 2.26.0 with the following message:
>
> Starting lilypond 2.26.0 [Untitled]...
> Processing `/var/folders/tv/x_zp1q8d1rg57dwssmpdp0cw0000gn/T/frescobaldi-1_jwkfzm/tmpvztr8650/document.ly'
> Parsing...
> Interpreting music...
> Preprocessing graphical objects...
> /Users/ss/Documents/Programming/lilypond-executables/2.26.0/share/lilypond/2.26.0/ly/init.ly:66:2: error: Guile signaled an error for the expression beginning here
> #
> (let ((book-handler (if (defined? 'default-toplevel-book-handler)
> Wrong number of arguments to #<procedure 1058af2a0 at ice-9/eval.scm:336:13 (a b)>
> Exited with return code 1.
>
> Note: without the code to customize the barlines the score compiles just fine.
>
> How do I customize the barlines under 2.26.0?

Before 2.26. print-procedures for bar-lines took two
default-arguments: grob extent
For 2.26. you need three: is-span grob extent

Your definitions should read now:
#(define ((make-custom-tick-bar-line x y) is-span grob extent)
  ...)
#(define ((make-custom-half-bar-line x y) is-span grob extent)
  ...)

And all should work fine again.

Cheers,
  Harm