From: Leo Liu Date: Fri, 22 Nov 2013 02:32:35 +0000 (+0800) Subject: * progmodes/octave.el (octave-operator-regexp): Exclude newline. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~751 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a7567d2bea13ef5ef8ad916be79ca8b2013bc1c;p=emacs.git * progmodes/octave.el (octave-operator-regexp): Exclude newline. Fixes: debbugs:15076 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 01cc8e48847..17f3f4c0c1f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-22 Leo Liu + + * progmodes/octave.el (octave-operator-regexp): Exclude newline. + (Bug#15076) + 2013-11-22 Leo Liu * progmodes/octave.el (inferior-octave-process-live-p): New helper. diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 6187e5f098f..3d68b57cd65 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -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)))