[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master b6bef9f: Remove duplicated code in octave-eldoc-fun
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master b6bef9f: Remove duplicated code in octave-eldoc-function |
Date: |
Sat, 20 Jul 2019 05:14:33 -0400 (EDT) |
branch: master
commit b6bef9f19311e4ea2287ac172f400d3146ba3cbb
Author: Mauro Aranda <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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 3f7d185..8b47205 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master b6bef9f: Remove duplicated code in octave-eldoc-function,
Eli Zaretskii <=