# HG changeset patch # User Chong Yidong # Date 1260807564 0 # Node ID 427e81917607b6178b70fdb805b4e99d09b6a826 # Parent 2125c0e456593f07a99f15b19ef766f4727847b5 * progmodes/python.el (python-symbol-completions): Remove text properties from symbol string before calling python-send-receive. diff -r 2125c0e45659 -r 427e81917607 lisp/ChangeLog --- a/lisp/ChangeLog Mon Dec 14 09:44:43 2009 +0000 +++ b/lisp/ChangeLog Mon Dec 14 16:19:24 2009 +0000 @@ -1,3 +1,8 @@ +2009-12-14 Chong Yidong + + * progmodes/python.el (python-symbol-completions): Remove text + properties from symbol string before calling python-send-receive. + 2009-12-14 Nick Roberts * progmodes/gdb-mi.el (gdb-frame-handler): Only set gud-lat-frame diff -r 2125c0e45659 -r 427e81917607 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Mon Dec 14 09:44:43 2009 +0000 +++ b/lisp/progmodes/python.el Mon Dec 14 16:19:24 2009 +0000 @@ -73,7 +73,6 @@ (require 'compile) (require 'hippie-exp)) -(require 'sym-comp) (autoload 'comint-mode "comint") (defgroup python nil @@ -2147,12 +2146,14 @@ "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.