properties from symbol string before calling python-send-receive.
+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
(require 'compile)
(require 'hippie-exp))
-(require 'sym-comp)
(autoload 'comint-mode "comint")
(defgroup python nil
"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.