* 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)
(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)