From 7a7567d2bea13ef5ef8ad916be79ca8b2013bc1c Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 22 Nov 2013 10:32:35 +0800 Subject: [PATCH] * progmodes/octave.el (octave-operator-regexp): Exclude newline. Fixes: debbugs:15076 --- lisp/ChangeLog | 5 +++++ lisp/progmodes/octave.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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))) -- 2.39.2