[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs mode indentation
From: |
Jan Nieuwenhuizen |
Subject: |
Re: Emacs mode indentation |
Date: |
Thu, 24 Jan 2002 11:20:42 +0100 |
Chris Jackson <address@hidden> writes:
> OK - The code below is a first attempt at indentation for lilypond-mode.
Wow. That first attempt seems to work quite well, at first try!
> However...
>
> The problem with the accents / phrase marks is that the standard Emacs
> syntax table is not able to deal with regexps as parenthesis-pairs, just
> single characters.
Ouch. Have you tried asking emacs gurus (eg address@hidden or
address@hidden)?
> As a result, this code is *very slow*, especially for indenting big
> blocks of text at once at the bottom of a source file... But it's OK for
> indenting single lines as you type.
I must say that the speed is not too bad. On my fairly old G3/233MHz,
it feels comparable with c-mode's indenting speed.
> diff -purN lilypond-1.5.28/AUTHORS.txt
> lilypond-1.5.28-new/AUTHORS.txt
That file is generated from Documentation/topdocs/AUTHORS.texi, so
i've added:
--- Documentation/topdocs/AUTHORS.texi~ Thu Oct 11 17:29:20 2001
+++ Documentation/topdocs/AUTHORS.texi Thu Jan 24 11:18:11 2002
@@ -37,6 +37,8 @@
American chord names, gnu-windows testing
@item @email{bjoern.jacke@@gmx.de, Bjoern Jacke}
German glossary stuff.
address@hidden @email{chris@@fluffhouse.org.uk, Chris Jackson},
+ Emacs mode indentation, directed arpeggios.
@item @email{nj104@@cus.cam.ac.uk, Neil Jerram}.
parts of Documentation/Vocab*
@item @email{heikki.junes@@hut.fi, Heikki Junes}.
> +;;; Chris Jackson <address@hidden>
> +;;; some code is taken from ESS (Emacs Speaks Statistics) S-mode by
> A.J.Rossini <address@hidden>
(that's gpl'd right?)
Oh, and could you please send a ChangeLog entry?
Thanks,
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org