From b6bef9f19311e4ea2287ac172f400d3146ba3cbb Mon Sep 17 00:00:00 2001 From: Mauro Aranda Date: Mon, 8 Jul 2019 19:22:20 -0300 Subject: [PATCH] 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) --- lisp/progmodes/octave.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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) -- 2.39.2