aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index c401cdfbf54..104ea26689f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -73,7 +73,6 @@
73 (require 'compile) 73 (require 'compile)
74 (require 'hippie-exp)) 74 (require 'hippie-exp))
75 75
76(require 'sym-comp)
77(autoload 'comint-mode "comint") 76(autoload 'comint-mode "comint")
78 77
79(defgroup python nil 78(defgroup python nil
@@ -2147,12 +2146,14 @@ Uses `python-beginning-of-block', `python-end-of-block'."
2147 "Return a list of completions of the string SYMBOL from Python process. 2146 "Return a list of completions of the string SYMBOL from Python process.
2148The list is sorted. 2147The list is sorted.
2149Uses `python-imports' to load modules against which to complete." 2148Uses `python-imports' to load modules against which to complete."
2150 (when symbol 2149 (when (stringp symbol)
2151 (let ((completions 2150 (let ((completions
2152 (condition-case () 2151 (condition-case ()
2153 (car (read-from-string 2152 (car (read-from-string
2154 (python-send-receive 2153 (python-send-receive
2155 (format "emacs.complete(%S,%s)" symbol python-imports)))) 2154 (format "emacs.complete(%S,%s)"
2155 (substring-no-properties symbol)
2156 python-imports))))
2156 (error nil)))) 2157 (error nil))))
2157 (sort 2158 (sort
2158 ;; We can get duplicates from the above -- don't know why. 2159 ;; We can get duplicates from the above -- don't know why.