]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove duplicated code in octave-eldoc-function
authorMauro Aranda <maurooaranda@gmail.com>
Mon, 8 Jul 2019 22:22:20 +0000 (19:22 -0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Jul 2019 09:13:38 +0000 (12:13 +0300)
* 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

index 3f7d1856658ba8d9512244138af180254be4ce31..8b472052f7317a12cdc3f8f6b509db2aef1afc1c 100644 (file)
@@ -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)