mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-22 05:51:11 -07:00
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)
This commit is contained in:
parent
fd5410217f
commit
b6bef9f193
1 changed files with 1 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue