aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-12-14 16:19:24 +0000
committerChong Yidong2009-12-14 16:19:24 +0000
commit8cffbb7542aeb3b798ae12fb01e4e4c508eb7cd0 (patch)
tree43e2c82abae73b74f4b9730aeadd919b8e0c2e68
parente960eea6858c14dc39134438ef72040e53d94b97 (diff)
downloademacs-8cffbb7542aeb3b798ae12fb01e4e4c508eb7cd0.tar.gz
emacs-8cffbb7542aeb3b798ae12fb01e4e4c508eb7cd0.zip
* progmodes/python.el (python-symbol-completions): Remove text
properties from symbol string before calling python-send-receive.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/python.el7
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 50e5f878355..d0fe2e86fdd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-12-14 Chong Yidong <cyd@stupidchicken.com>
2
3 * progmodes/python.el (python-symbol-completions): Remove text
4 properties from symbol string before calling python-send-receive.
5
12009-12-14 Nick Roberts <nickrob@snap.net.nz> 62009-12-14 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * progmodes/gdb-mi.el (gdb-frame-handler): Only set gud-lat-frame 8 * progmodes/gdb-mi.el (gdb-frame-handler): Only set gud-lat-frame
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.