]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/python.el (python-symbol-completions): Remove text
authorChong Yidong <cyd@stupidchicken.com>
Mon, 14 Dec 2009 16:19:24 +0000 (16:19 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 14 Dec 2009 16:19:24 +0000 (16:19 +0000)
properties from symbol string before calling python-send-receive.

lisp/ChangeLog
lisp/progmodes/python.el

index 50e5f878355f39cf9f3ddfed85585ec7cc9e3697..d0fe2e86fdd7c2c8776114437f00b3e089747b58 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * progmodes/python.el (python-symbol-completions): Remove text
+       properties from symbol string before calling python-send-receive.
+
 2009-12-14  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gdb-mi.el (gdb-frame-handler): Only set gud-lat-frame
index c401cdfbf54496097bf8c48444d1c15fd89a54b0..104ea26689f6f494454923ad3758ac56afe5abfc 100644 (file)
@@ -73,7 +73,6 @@
   (require 'compile)
   (require 'hippie-exp))
 
-(require 'sym-comp)
 (autoload 'comint-mode "comint")
 
 (defgroup python nil
@@ -2147,12 +2146,14 @@ Uses `python-beginning-of-block', `python-end-of-block'."
   "Return a list of completions of the string SYMBOL from Python process.
 The list is sorted.
 Uses `python-imports' to load modules against which to complete."
-  (when symbol
+  (when (stringp symbol)
     (let ((completions
           (condition-case ()
               (car (read-from-string
                     (python-send-receive
-                     (format "emacs.complete(%S,%s)" symbol python-imports))))
+                     (format "emacs.complete(%S,%s)"
+                             (substring-no-properties symbol)
+                             python-imports))))
             (error nil))))
       (sort
        ;; We can get duplicates from the above -- don't know why.