Complete module import lines in addition to variable names
authorDan Davison <dandavison7@gmail.com>
Thu, 17 May 2012 03:03:27 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:27 +0000 (00:03 -0300)
commit9253ea694decb0d5a5995b1a59db3274db290ac8
tree350c7db81e154ded18305d78439ff1d54eb5096e
parentb71bfa9cd6e670a97a803adb1027a859cd66bfe9
Complete module import lines in addition to variable names

Available when using ipython v0.11. Completions on lines starting with
"from " or "import " are supplied by
IPython.core.completerlib.module_completion

ipython v0.11 configuration:

(setq python-shell-interpreter "ipython"
      python-shell-completion-setup-code
      "from IPython.core.completerlib import module_completion\n"
      python-shell-module-completion-string-code
      "';'.join(module_completion('''%s'''))\n"
      python-shell-completion-string-code
      "';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
lisp/progmodes/python.el