[PATCH] Emacs-mode: Saving keystrokes with a simple interface

2002-05-27 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > > Just for fun, I made the following interface for Emacs which saves some > keystrokes when you write a sequence of notes. added. -- Han-Wen Nienhuys | [EMAIL PROTECTED]| http://www.cs.uu.nl/~hanwen/ ___ Lilypon

[PATCH] Emacs-mode: Saving keystrokes with a simple interface

2002-05-27 Thread Han-Wen
[EMAIL PROTECTED] writes: > > Just for fun, I made the following interface for Emacs which saves some > keystrokes when you write a sequence of notes. thanks, put it in. -- Han-Wen Nienhuys | [EMAIL PROTECTED] | http://www.cs.uu.nl/~hanwen ___

[PATCH] Emacs-mode: Saving keystrokes with a simple interface

2002-05-26 Thread Heikki Johannes Junes
Just for fun, I made the following interface for Emacs which saves some keystrokes when you write a sequence of notes. Index: VERSION === RCS file: /home/lilypond/lilypond/VERSION,v retrieving revision 1.399 diff -p -u -r1.399 VERSI

Re: [PATCH] Emacs-mode

2002-04-21 Thread Heikki Johannes Junes
On Fri, 19 Apr 2002, Rune Zedeler wrote: > Strange. I opgraded to emacs 21.2.1 - and now (hjj5) the multiline > scheme is completely out of order - doesn't even work after C-c f... :-/ > > -Rune > There would be a better way to recognize scheme which would work more reliably than regexps: Simp

Re: [PATCH] Emacs-mode

2002-04-19 Thread Rune Zedeler
Heikki Johannes Junes wrote: > After the last patch sent by me (-hjj5) fontifying works with Emacs > version 21.1.1 and helps _a lot_ to find out typos. As already mentioned, > font-locking could be implement a more clever way. Strange. I opgraded to emacs 21.2.1 - and now (hjj5) the multiline

Re: [PATCH] Emacs-mode

2002-04-16 Thread Heikki Johannes Junes
> Heikki, I don't think there's any need for those complicated regexps for > matching strings and comments. If you remove "font-lock-keywords-only", > the fontification works perfectly well using just the syntax table, and > it recognises strings within strings, comments within comments... Hmm. B

Re: [PATCH] Emacs-mode

2002-04-16 Thread Chris Jackson
On Tue, Apr 16, 2002 at 10:01:12PM +0200, Rune Zedeler wrote: > Chris Jackson wrote: > > >Because they're recognised by the syntax table, and don't need a > >multi-line regexp to match them. As they should in lilypond... > > How comes that c++ comments are easier to recognise than > lilypond-c

Re: [PATCH] Emacs-mode

2002-04-16 Thread Rune Zedeler
Chris Jackson wrote: > Because they're recognised by the syntax table, and don't need a > multi-line regexp to match them. As they should in lilypond... How comes that c++ comments are easier to recognise than lilypond-comments...??? -Rune ___ Lil

Re: [PATCH] Emacs-mode

2002-04-16 Thread Rune Zedeler
Heikki Johannes Junes wrote: >>Hmmm, then why does C-mode multi line comments work? > Hmmm. You are right. > + Set 'font-lock-multiline' true. What should that do? I get no difference... -Rune ___ Lilypond-devel mailing list [EMAIL PROTECTED

Re: [PATCH] Emacs-mode

2002-04-16 Thread Chris Jackson
On Tue, Apr 16, 2002 at 08:36:20PM +0200, Rune Zedeler wrote: > Heikki Johannes Junes wrote: > > >>When the mode is invoked (when a file is read or with M-x LilyPond-mode) > >>then all multi-line schemes and multi-line comments are correctly > >>parsed. But if you edit any of those - or create

Re: [PATCH] Emacs-mode

2002-04-16 Thread Heikki Johannes Junes
> Hmmm, then why does C-mode multi line comments work? Hmmm. You are right. Index: VERSION === RCS file: /home/lilypond/lilypond/VERSION,v retrieving revision 1.385 diff -u -p -r1.385 VERSION --- VERSION 16 Apr 2002 11:58:57 -

Re: [PATCH] Emacs-mode

2002-04-16 Thread Rune Zedeler
Heikki Johannes Junes wrote: >>When the mode is invoked (when a file is read or with M-x LilyPond-mode) >>then all multi-line schemes and multi-line comments are correctly >>parsed. But if you edit any of those - or create a new one - then the >>colouring gets wrong. > Yes. This is problem of

[PATCH] Emacs-mode, fontifying

2002-04-16 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > > The patch helps to proof-read the source by using colors (for example, > erronous "a,." now easier to see by an eye). Further comments within. > > This patch is against latest CVS. I consider my earlier patch (-hjj2), > which was sent to HWN, not merged. I had som

[PATCH] Emacs-mode

2002-04-16 Thread Heikki Johannes Junes
There was a copy paste-error. Below is the correct patch. Now menus work the right way. Index: lilypond-mode.el === RCS file: /home/lilypond/lilypond/lilypond-mode.el,v retrieving revision 1.33 diff -p -u -r1.33 lilypond-mode.el --

[PATCH] Emacs-mode

2002-04-16 Thread Heikki Johannes Junes
>Well, I hope that the emacs mode will end up being able to fully cope >with multi line comments and multiline scheme. >When the mode is invoked (when a file is read or with M-x LilyPond-mode) >then all multi-line schemes and multi-line comments are correctly >parsed. But if you edit any of th

[PATCH] Emacs-mode, fontifying

2002-04-14 Thread Heikki Johannes Junes
The patch helps to proof-read the source by using colors (for example, erronous "a,." now easier to see by an eye). Further comments within. This patch is against latest CVS. I consider my earlier patch (-hjj2), which was sent to HWN, not merged. Index: VERSION

[PATCH] Emacs-mode: Highlight block comments

2002-04-13 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > > Is the following idea correct ? > - Block comments can have also ordinary comments inside. You can have lines starting with % in %{ %}, but they are not treated especially. -- Han-Wen Nienhuys | [EMAIL PROTECTED]| http://www.cs.uu.nl/~hanwen/ __

[PATCH] Emacs-mode: Highlight block comments

2002-04-13 Thread Heikki Johannes Junes
Is the following idea correct ? - Block comments can have also ordinary comments inside. For me it seems reasonable. Index: VERSION === RCS file: /home/lilypond/lilypond/VERSION,v retrieving revision 1.381 diff -p -u -r1.381 VERSIO

[PATCH] Emacs-mode: un-comment-region

2002-04-08 Thread Heikki Johannes Junes
Inspired by LaTeX-mode, there is now new grouping in menus which separates commands which execute something outside Emacs ("Command"-menu) and commands which edit the buffer ("LilyPond"-menu"). New feature is un-comment-region. --- VERSION.~1.375.~Mon Apr 8 23:51:12 2002 +++ VERSION Tue

[PATCH] Emacs-mode: font-lock-keywords

2002-03-26 Thread Heikki Johannes Junes
Here is an update for font-lock-keywords in Emacs-mode. It covers most new keywords added to LilyPond. I also removes some non-keywords. In manual, at Articulation page: http://lilypond.org/development/Documentation/user/out-www/lilypond/Articulations.html#Articulations there are non-visible/non

[PATCH] Emacs-mode: Inserting tags

2001-10-10 Thread Heikki Johannes Junes
I made a patch with which skeletons of code can be inserted. This is first try, hence there are only '\header'- and '\notes'-tags. I made this, because if one have not used the programs for some time it is easy to forget the syntax. The idea use either the keyboard shortcuts or menu commands. If

[PATCH] Emacs-mode

2001-09-16 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes: > > Here is a patch which makes the typesetting with Emacs nicer for an eye. > Identifiers are separated from keywords and some dynamics are included in > the font-locking. I make a forecast that this patch makes typing with > Emacs even a bit more fun! thanks. I put in

[PATCH] Emacs-mode

2001-09-13 Thread Heikki Johannes Junes
Here is a patch which makes the typesetting with Emacs nicer for an eye. Identifiers are separated from keywords and some dynamics are included in the font-locking. I make a forecast that this patch makes typing with Emacs even a bit more fun! Since I did not know where to find complete lists of

Re: [PATCH] Emacs-mode: Keyboard shortcuts

2001-09-11 Thread Heikki Johannes Junes
Sorry about the misspelling. --- lilypond-1.5.9.patched/lilypond-mode.el Wed Sep 12 02:39:51 2001 +++ lilypond-1.5.9.NEW/lilypond-mode.el Wed Sep 12 02:40:27 2001 @@ -422,7 +422,7 @@ (define-key LilyPond-mode-map "\C-c\C-c" 'LilyPond-command-master) (define-key LilyPond-mode-map "\C-c\

[PATCH] Emacs-mode: Keyboard shortcuts

2001-09-11 Thread Heikki Johannes Junes
I made keyboard shortcuts for Emacs-mode. The keyboard bindings are shown shown in the "Command"-menu. This was inspired by long-time experience of LaTeXing with Emacs. Here is the patch... --- lilypond-1.5.9/CHANGES Sat Sep 8 21:11:09 2001 +++ lilypond-1.5.9.NEW/CHANGES Wed Sep 12 02:16: