]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix syntax-table.
authorHeikki Junes <heikki.junes@hut.fi>
Mon, 5 May 2003 19:38:51 +0000 (19:38 +0000)
committerHeikki Junes <heikki.junes@hut.fi>
Mon, 5 May 2003 19:38:51 +0000 (19:38 +0000)
ChangeLog
lilypond-font-lock.el
lilypond-indent.el
lilypond-mode.el

index 3fa284196019cb35df3e47bbb06444a6103ed057..2683fb55271e3b1e77457cec22dfbcf112d1b38c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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: 
index f8518df97c77309d750eea0714d51d29c46d680f..ae8d0e36164363612f540398890fbb165461526c 100644 (file)
 (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
            ))
index 4e11faae60d050b74098481dec23e210a7de4d6e..ca463e838cb83f0fa525deba5d2a51d685b0cba6 100644 (file)
@@ -5,6 +5,11 @@
 
 ;;; 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.")
 
@@ -435,7 +440,3 @@ the syntax table"
        (progn (backward-char 1)
               (LilyPond-blink-matching-open close-char)
               (forward-char 1)))))
-
-
-;;; TODO:
-;;; emulate show-paren-mode 
index 677e2a76d9ed0fdbf53ad0329aef8fd3c6088ed6..6937de863a134f6e4d55e061013cda5476941446 100644 (file)
@@ -19,9 +19,6 @@
 ;;; Look lilypond-init.el or Documentation/topdocs/INSTALL.texi
 ;;; for installing instructions.
 
-;;; TODO:
-;;;    * parenthesis matching
-
 (require 'easymenu)
 (require 'compile)
 
@@ -675,9 +672,9 @@ command."
   (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)
   )
@@ -1080,8 +1077,8 @@ LilyPond-xdvi-command\t\tcommand to display dvi files -- bit superfluous"
   (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))