All pastes #831749 Raw Edit

Mine

public text v1 · immutable
#831749 ·published 2007-12-25 09:57 UTC
rendered paste body
(defun python-symbol-completions1 (symbol)
  "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
    (let ((completions
	   (condition-case ()
	       (car (read-from-string 
		     (shell-command 
		     (format "c:/python25/python c:/elisp/p-m/emacs.py c %s" symbol) "QQQ")))    
	     ;(error nil)
	     )))
      (sort
       ;; We can get duplicates from the above -- don't know why.
       (delete-dups completions)
       #'string<)
      )))