* progmodes/octave.el (octave-operator-regexp): Exclude newline.

Fixes: debbugs:15076
This commit is contained in:
Leo Liu 2013-11-22 10:32:35 +08:00
parent 724bc26587
commit 7a7567d2be
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-22 Leo Liu <sdl.web@gmail.com>
* progmodes/octave.el (octave-operator-regexp): Exclude newline.
(Bug#15076)
2013-11-22 Leo Liu <sdl.web@gmail.com>
* progmodes/octave.el (inferior-octave-process-live-p): New helper.

View file

@ -363,7 +363,8 @@ Non-nil means always go to the next Octave code line after sending."
;; corresponding continuation lines).
(defconst octave-operator-regexp
(regexp-opt (apply 'append (mapcar 'cdr octave-operator-table))))
(regexp-opt (remove "\n" (apply 'append
(mapcar 'cdr octave-operator-table)))))
(defun octave-smie-backward-token ()
(let ((pos (point)))