All pastes #831743 Raw Edit

Mine

public text v1 · immutable
#831743 ·published 2007-12-25 09:46 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 "(Ttk.Ttk Ttk.TtkDialog)"))
		     ;(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<)
      )))