From 6689e8f96b7dd5465f6b6839e0b33d9655c040f9 Mon Sep 17 00:00:00 2001 From: Heikki Junes Date: Fri, 1 Aug 2003 18:25:39 +0000 Subject: [PATCH] put to menu post-syntaxed slur pairs and syntax for \times. --- ChangeLog | 4 ++++ lilypond-mode.el | 25 +++++++++++++++++-------- lilypond.words | 4 +++- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index d754d98404..38cc87b28b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,10 @@ * lilypond.words: add useful `\context Staff =' and `\context Voice ='. + * lilypond-mode.el: add menu keywords separately. + + * lilypond.words: post-syntaxed slur pairs and syntax for \times. + 2003-08-01 Mats Bengtsson * Documentation/topdocs/INSTALL.texi (Top): Documentation of the diff --git a/lilypond-mode.el b/lilypond-mode.el index 399055c946..278afe01cf 100644 --- a/lilypond-mode.el +++ b/lilypond-mode.el @@ -88,15 +88,26 @@ Finds file lilypond-words from load-path." (LilyPond-add-dictionary-word (list copy))) (kill-buffer b))) -(defconst LilyPond-menu-keywords nil - "Keywords which can be inserted from the menu.") +(defconst LilyPond-menu-keywords + (let ((wordlist '()) ; add syntax entries to lilypond.words + (co (all-completions "" (LilyPond-add-dictionary-word ()))) + (currword "")) + (progn + (while (> (length co) 0) + (setq currword (car co)) + (if (string-equal "-" (car (setq co (cdr co)))) + (progn + (add-to-list 'wordlist currword) + (while (and (> (length co) 0) + (not (string-equal "-" (car (setq co (cdr co)))))))))) + wordlist)) + "Keywords inserted from LilyPond-Insert-menu.") -(defconst LilyPond-keywords +(defconst LilyPond-keywords (let ((wordlist '("\\score")) ; add \keywords to lilypond.words (co (all-completions "" (LilyPond-add-dictionary-word ()))) (currword "")) (progn - (setq LilyPond-menu-keywords '()) (while (> (length co) 0) (setq currword (car co)) (if (> (length currword) 1) @@ -105,10 +116,8 @@ Finds file lilypond-words from load-path." (string-equal (downcase currword) currword)) (add-to-list 'wordlist currword))) (if (string-equal "-" (car (setq co (cdr co)))) - (progn - (add-to-list 'LilyPond-menu-keywords currword) - (while (and (> (length co) 0) - (not (string-equal "-" (car (setq co (cdr co)))))))))) + (while (and (> (length co) 0) + (not (string-equal "-" (car (setq co (cdr co))))))))) wordlist)) "LilyPond \\keywords") diff --git a/lilypond.words b/lilypond.words index a3437a05fb..acec2bfd35 100644 --- a/lilypond.words +++ b/lilypond.words @@ -1,3 +1,5 @@ +-\( - _ -\) - +-\\\( - _ -\\\) - \\accent \\accentus \\accepts @@ -445,7 +447,7 @@ Thread \\tiltup \\timb \\time -\\times +\\times - % { _ } - TimeSignature \\tiny \\toeters -- 2.39.5