David Kastrup <d...@gnu.org> writes: > Johan Vromans <jvrom...@squirrel.nl> writes: > >> Wilbert Berendsen <wbs...@xs4all.nl> writes: >> >> Given a (section of) .ly with barchecks and line number comments, e.g. >> >> d16 c8.~ c4 r2 | % 9 >> \bar "||" >> R1 | % 10 >> R1 | % 10 >> R1 | % 12 >> e4 e8 e16 f16~ f8. c16 f8 e8 | % 13 >> >> can ly recalculate the line numbers? For example, in Emacs, select a >> section and then >> >> C-u M-| ly "renumber;start=8" >> >> would result in >> >> d16 c8.~ c4 r2 | % 8 >> \bar "||" >> R1 | % 9 >> R1 | % 10 >> R1 | % 11 >> e4 e8 e16 f16~ f8. c16 f8 e8 | % 12 > > In Emacs, you can just do > M-C-: % \([0-9]\)+$ RET % \,(+ \# 8) RET > > Assign it to a keyboard macro/command if you do it more frequently...
Of course, M-C-% rather than M-C-:, sorry for any confusion. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user