aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-05-17 00:02:59 -0300
committerFabián Ezequiel Gallina2012-05-17 00:02:59 -0300
commit1066882c6ddb30f786d665c5db305897f20f7119 (patch)
tree3d2d4c6f25ea5e4d0b26b56fde21028e3fa6cc9e /lisp/progmodes/python.el
parent138df813695f6434f986bd1c55dc3005ed32af75 (diff)
downloademacs-1066882c6ddb30f786d665c5db305897f20f7119.tar.gz
emacs-1066882c6ddb30f786d665c5db305897f20f7119.zip
Simplified python-eldoc-function using python-shell-send-and-clear-output
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el14
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ed6bb3189c9..735f25dfa54 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1494,18 +1494,8 @@ inferior python process is updated properly."
1494 (forward-char) 1494 (forward-char)
1495 (delete-region (point-marker) (search-forward "self.")) 1495 (delete-region (point-marker) (search-forward "self."))
1496 (setq input (buffer-substring (point-min) (point-max))))) 1496 (setq input (buffer-substring (point-min) (point-max)))))
1497 (process-send-string 1497 (python-shell-send-and-clear-output
1498 process (format python-eldoc-string-code input)) 1498 (format python-eldoc-string-code input) process))))
1499 (accept-process-output process)
1500 (with-current-buffer (process-buffer process)
1501 (when comint-last-prompt-overlay
1502 (save-excursion
1503 (goto-char comint-last-input-end)
1504 (re-search-forward comint-prompt-regexp
1505 (line-end-position) t)
1506 (buffer-substring-no-properties
1507 (point-marker)
1508 (overlay-start comint-last-prompt-overlay))))))))
1509 (with-current-buffer (process-buffer process) 1499 (with-current-buffer (process-buffer process)
1510 (when comint-last-prompt-overlay 1500 (when comint-last-prompt-overlay
1511 (delete-region comint-last-input-end 1501 (delete-region comint-last-input-end