+2003-05-05 Heikki Junes <hjunes@cc.hut.fi>
+
+ * lilypond-mode.el: Move comments of parenthesis matching below.
+
+ * lilypond-font-lock.el: Fix parent-matching for Emacs:
+ Emacs knows only "13"-style, XEmacs knows also "1b3b", etc.
+
+ * lilypond-indent.el: Add TODO.
+
2003-05-03 Heikki Junes <hjunes@cc.hut.fi>
* lilypond-mode.el: Fix XEmacs:
(defvar LilyPond-mode-syntax-table nil
"Syntax table used in `LilyPond-mode' buffers.")
-;;
(if LilyPond-mode-syntax-table
()
(setq LilyPond-mode-syntax-table (make-syntax-table))
+ ;; NOTE: Emacs knows only "13"-style (used), XEmacs knows also "1b3b", etc.
(mapcar (function
(lambda (x) (modify-syntax-entry
(car x) (cdr x) LilyPond-mode-syntax-table)))
'(( ?\( . "." ) ( ?\) . "." )
- ( ?\[ . "(]" ) ( ?\] . ")[" ) ;; all the other paren characters are now handled by
- ( ?\{ . ". 2b" ) ;; lily-specific indenting/matching code in lilypond-indent.el
- ( ?\} . ". 4b" )
+ ( ?\[ . "(]" ) ( ?\] . ")[" ) ; all the other paren characters are now handled by
+ ( ?\{ . ". 2" ) ; lily-specific indenting/matching code in lilypond-indent.el
+ ( ?\} . ". 4" )
( ?\< . "." )( ?\> . ".")
( ?\$ . "." ) ( ?\& . "." )
( ?\* . "." ) ( ?\+ . "." )
( ?\- . "." ) ( ?\_ . "." ) ( ?\^ . "." ) ; accent positioners: puctuation characters
( ?\' . "w") ( ?\, . "w") ; transposing octaves, parts of words (notes)
( ?\" . "\"" ) ; string quote characters
- ( ?\% . "< 1b3b" ) ; (block-)comment starter (or ender)
+ ( ?\% . "< 13" ) ; (block-)comment starter (or ender)
( ?\n . ">") ; newline: comment ender
( ?\r . ">") ; formfeed: comment ender
))
;;; Variables for customising indentation style
+;;; TODO:
+;;; * emulate show-paren-mode
+;;; * separate slurs '(' and ')' from '\(' and '\)'
+;;; * blinking is not shonw in Emacs, but is shown in XEmacs
+
(defcustom LilyPond-indent-level 4
"*Indentation of lilypond statements with respect to containing block.")
(progn (backward-char 1)
(LilyPond-blink-matching-open close-char)
(forward-char 1)))))
-
-
-;;; TODO:
-;;; emulate show-paren-mode
;;; Look lilypond-init.el or Documentation/topdocs/INSTALL.texi
;;; for installing instructions.
-;;; TODO:
-;;; * parenthesis matching
-
(require 'easymenu)
(require 'compile)
(define-key LilyPond-mode-map "\C-cs" 'LilyPond-insert-tag-score)
(define-key LilyPond-mode-map "\C-c:" 'LilyPond-un-comment-region)
(define-key LilyPond-mode-map "\C-c;" 'comment-region)
- (define-key LilyPond-mode-map ")" 'LilyPond-electric-close-paren) ; urgh
- (define-key LilyPond-mode-map ">" 'LilyPond-electric-close-paren) ; argh
- (define-key LilyPond-mode-map "}" 'LilyPond-electric-close-paren) ; ..rgh
+ (define-key LilyPond-mode-map ")" 'LilyPond-electric-close-paren)
+ (define-key LilyPond-mode-map ">" 'LilyPond-electric-close-paren)
+ (define-key LilyPond-mode-map "}" 'LilyPond-electric-close-paren)
(define-key LilyPond-mode-map [(shift iso-lefttab)] 'LilyPond-autocompletion)
(define-key LilyPond-mode-map "\C-c\t" 'LilyPond-info-index-search)
)
(setq imenu-generic-expression LilyPond-imenu-generic-expression)
(imenu-add-to-menubar "Index")
- (easy-menu-add LilyPond-mode-menu) ;; automatically added in Emacs, but
- (easy-menu-add LilyPond-command-menu) ;; explicitly added in XEmacs
+ (easy-menu-add LilyPond-mode-menu) ; automatically added in Emacs, but
+ (easy-menu-add LilyPond-command-menu) ; explicitly added in XEmacs
;; run the mode hook. LilyPond-mode-hook use is deprecated
(run-hooks 'LilyPond-mode-hook))