aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-05-03 07:03:00 +0800
committerLeo Liu2013-05-03 07:03:00 +0800
commit271350180c103c2db7dbf15f11b9ddf07def8085 (patch)
tree57c9542969519749bfd08b97523bdefe4b7b4454
parent0d634d3a3c2ad4e0a741b3e42a1784e6f2d797dc (diff)
downloademacs-271350180c103c2db7dbf15f11b9ddf07def8085.tar.gz
emacs-271350180c103c2db7dbf15f11b9ddf07def8085.zip
* progmodes/octave.el (octave-mode-syntax-table): Correct syntax
for \. (octave-font-lock-keywords): Include [ and {. Fixes: debbugs:14332
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/progmodes/octave.el4
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 695f66c272c..86202e98a33 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12013-05-02 Leo Liu <sdl.web@gmail.com> 12013-05-02 Leo Liu <sdl.web@gmail.com>
2 2
3 * progmodes/octave.el (octave-mode-syntax-table): Correct syntax
4 for \. (bug#14332)
5 (octave-font-lock-keywords): Include [ and {.
6
72013-05-02 Leo Liu <sdl.web@gmail.com>
8
3 * progmodes/octave.el (inferior-octave-startup-file): Change default. 9 * progmodes/octave.el (inferior-octave-startup-file): Change default.
4 (inferior-octave): Remove calling comint-mode and return the buffer. 10 (inferior-octave): Remove calling comint-mode and return the buffer.
5 (inferior-octave-startup): Cosmetic changes. 11 (inferior-octave-startup): Cosmetic changes.
@@ -24,7 +30,7 @@
242013-05-01 Leo Liu <sdl.web@gmail.com> 302013-05-01 Leo Liu <sdl.web@gmail.com>
25 31
26 * progmodes/octave.el: Compatible with older emacs-24 releases. 32 * progmodes/octave.el: Compatible with older emacs-24 releases.
27 (inferior-octave-has-built-in-variables): Remove. Buil-in 33 (inferior-octave-has-built-in-variables): Remove. Built-in
28 variables were removed from Octave in 2007. 34 variables were removed from Octave in 2007.
29 (inferior-octave-startup): Fix uses. 35 (inferior-octave-startup): Fix uses.
30 (comint-line-beginning-position): Remove compatibility code for 36 (comint-line-beginning-position): Remove compatibility code for
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index 56f2805d48e..695ad1c4ffd 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -111,7 +111,7 @@ parenthetical grouping.")
111 (progn 111 (progn
112 (goto-char (match-beginning 0)) 112 (goto-char (match-beginning 0))
113 (backward-up-list) 113 (backward-up-list)
114 (unless (eq (char-after) ?\() 114 (unless (memq (char-after) '(?\( ?\[ ?\{))
115 font-lock-keyword-face)) 115 font-lock-keyword-face))
116 (error font-lock-keyword-face))) 116 (error font-lock-keyword-face)))
117 t)) 117 t))
@@ -233,7 +233,7 @@ parenthetical grouping.")
233 (modify-syntax-entry ?& "." table) 233 (modify-syntax-entry ?& "." table)
234 (modify-syntax-entry ?| "." table) 234 (modify-syntax-entry ?| "." table)
235 (modify-syntax-entry ?! "." table) 235 (modify-syntax-entry ?! "." table)
236 (modify-syntax-entry ?\\ "\\" table) 236 (modify-syntax-entry ?\\ "." table)
237 (modify-syntax-entry ?\' "." table) 237 (modify-syntax-entry ?\' "." table)
238 ;; Was "w" for abbrevs, but now that it's not necessary any more, 238 ;; Was "w" for abbrevs, but now that it's not necessary any more,
239 (modify-syntax-entry ?\` "." table) 239 (modify-syntax-entry ?\` "." table)