emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r112443: * progmodes/octave.el (octav


From: Leo Liu
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112443: * progmodes/octave.el (octave-mode-syntax-table): Correct syntax
Date: Fri, 03 May 2013 07:03:00 +0800
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 112443
fixes bug: http://debbugs.gnu.org/14332
committer: Leo Liu <address@hidden>
branch nick: trunk
timestamp: Fri 2013-05-03 07:03:00 +0800
message:
  * progmodes/octave.el (octave-mode-syntax-table): Correct syntax
  for \. 
  (octave-font-lock-keywords): Include [ and {.
modified:
  lisp/ChangeLog
  lisp/progmodes/octave.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-05-02 21:34:53 +0000
+++ b/lisp/ChangeLog    2013-05-02 23:03:00 +0000
@@ -1,5 +1,11 @@
 2013-05-02  Leo Liu  <address@hidden>
 
+       * progmodes/octave.el (octave-mode-syntax-table): Correct syntax
+       for \.  (bug#14332)
+       (octave-font-lock-keywords): Include [ and {.
+
+2013-05-02  Leo Liu  <address@hidden>
+
        * progmodes/octave.el (inferior-octave-startup-file): Change default.
        (inferior-octave): Remove calling comint-mode and return the buffer.
        (inferior-octave-startup): Cosmetic changes.
@@ -24,7 +30,7 @@
 2013-05-01  Leo Liu  <address@hidden>
 
        * progmodes/octave.el: Compatible with older emacs-24 releases.
-       (inferior-octave-has-built-in-variables): Remove.  Buil-in
+       (inferior-octave-has-built-in-variables): Remove.  Built-in
        variables were removed from Octave in 2007.
        (inferior-octave-startup): Fix uses.
        (comint-line-beginning-position): Remove compatibility code for

=== modified file 'lisp/progmodes/octave.el'
--- a/lisp/progmodes/octave.el  2013-05-02 21:34:53 +0000
+++ b/lisp/progmodes/octave.el  2013-05-02 23:03:00 +0000
@@ -111,7 +111,7 @@
                             (progn
                               (goto-char (match-beginning 0))
                               (backward-up-list)
-                              (unless (eq (char-after) ?\()
+                              (unless (memq (char-after) '(?\( ?\[ ?\{))
                                 font-lock-keyword-face))
                           (error font-lock-keyword-face)))
                       t))
@@ -233,7 +233,7 @@
     (modify-syntax-entry ?& "."   table)
     (modify-syntax-entry ?| "."   table)
     (modify-syntax-entry ?! "."   table)
-    (modify-syntax-entry ?\\ "\\" table)
+    (modify-syntax-entry ?\\ "."  table)
     (modify-syntax-entry ?\' "."  table)
     ;; Was "w" for abbrevs, but now that it's not necessary any more,
     (modify-syntax-entry ?\` "."  table)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]