diff options
| author | Leo Liu | 2013-05-03 07:03:00 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-05-03 07:03:00 +0800 |
| commit | 271350180c103c2db7dbf15f11b9ddf07def8085 (patch) | |
| tree | 57c9542969519749bfd08b97523bdefe4b7b4454 | |
| parent | 0d634d3a3c2ad4e0a741b3e42a1784e6f2d797dc (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/progmodes/octave.el | 4 |
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 @@ | |||
| 1 | 2013-05-02 Leo Liu <sdl.web@gmail.com> | 1 | 2013-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 | |||
| 7 | 2013-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 @@ | |||
| 24 | 2013-05-01 Leo Liu <sdl.web@gmail.com> | 30 | 2013-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) |