Commit b6bef9f1 authored by Mauro Aranda's avatar Mauro Aranda Committed by Eli Zaretskii

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)
parent fd541021
Pipeline #2491 failed with stage
in 90 minutes
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment