On Sat, Jan 26, 2019 at 11:17:21PM -0500, Hwaen Ch'uqi wrote: > I'm not sure if this is still on topic, but I have found that LilyPond > indentation on emacs goes off kilter when brackets (i.e., for beaming) > and parentheses (i.e., for slurs and phrasing slurs) are used. The > solution for brackets is easy enough; putting space around them > alleviates the problem. But parentheses are another matter. I code one > measure per line, and when slurs/phrasing slurs cross the barline, the > indentation goes asew. It "corrects" itself in the measure after the > slur has been closed. Any solution for this would be most fabulous!
Also the articulation "--->" cancels or resets the indentation. Whenever I use that articulation I put it in a separate one line defonition. Paul > > Hwaen Ch'uqi > > > On 1/26/19, David Wright <lily...@lionunicorn.co.uk> wrote: > > On Sun 27 Jan 2019 at 11:58:30 (+1100), Andrew Bernard wrote: > >> Frescobaldi has a great formatting function that indents all the code > >> very > >> nicely and nearly flawlessly. > >> > >> But since an upgrade to Debian 9 and as the complexity of my current > >> score > >> increases, F. has slowed down to a molasses like rate and has sadly > >> become > >> unusable. [I have never seen that before until now.] Consequently I have > >> returned to Emacs, as a long term Emacs user anyway. The PDF point and > >> click with Emacs all works splendidly on Debian 9, and everything is > >> lightning quick. > >> > >> The indenting in the current lilypond mode is to put it politely, less > >> than > >> optimal. My question is, can the lilypond-mode reformat and entire buffer > >> like F. does? > > > > Probably not the fastest way, but I > > > > . move to BOT to see how many lines, say, 1234 > > . move to TOP start at the top > > . ^X ( ^I ^N ^X ) define a macro that runs <TAB> <DOWN> > > . ESC 1234 ^PgDn run the last-defined macro 1234 times > > > > to reindent (not reformat). > > > > Cheers, > > David. > > > > _______________________________________________ > > lilypond-user mailing list > > lilypond-user@gnu.org > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user