From: Mauro Aranda Date: Mon, 8 Jul 2019 22:22:20 +0000 (-0300) Subject: Remove duplicated code in octave-eldoc-function X-Git-Tag: emacs-27.0.90~1853 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b6bef9f19311e4ea2287ac172f400d3146ba3cbb;p=emacs.git Remove duplicated code in octave-eldoc-function * lisp/progmodes/octave.el (octave-eldoc-function): The test of position of the opening parenthesis in inferior-octave-process was duplicated. Remove one of the tests. (Bug#36557) --- diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index 3f7d1856658..8b472052f73 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -1631,12 +1631,7 @@ code line." (paren-pos (cadr ppss)) (fn (save-excursion (if (and paren-pos - ;; PAREN-POS must be after the prompt - (>= paren-pos - (if (eq (get-buffer-process (current-buffer)) - inferior-octave-process) - (process-mark inferior-octave-process) - (point-min))) + ;; PAREN-POS must be after the prompt. (or (not (eq (get-buffer-process (current-buffer)) inferior-octave-process)) (< (process-mark inferior-octave-process)