| [ Web Proxy ] |
| Viewing: https://wiki.python.org/moin/../python/platforms/../editors/EmacsPythonCompletion.html | [Back] [Original] |
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
new version 16/10-2003
now runs on windows, does not need rlcompleter
significantly simpler
now got install instructions for auto-load
I whipped up some support for completion of python code when using emacs, which basically completes based on the stuff in scope in the current interactive python session. Its rather crude, but seems to work rather nice for me at least.
Several uses are supported:
hippie-expand support via try-complete-py-complete-symbol, just like the lisp-version, nice for the [S-tab] hungry.
minibuffer-complete, pressing [M-return] brings up a minibuffer completion of the expression before point, usefull if you want to get an overview of your options.
pressing [f1] brings up help on a python symbol before point (just what help(thingy)) gives
pressing ( or [f2] tries to parse the preceeding tokens as a funtion or method, and retrieve the signature via the inspect module, and messages it to you
pressing , shows last signature.
tries to work for both py-execute-buffer and py-execute-import-or-reload oriented work-styles.
TRICK: (4+5) is great for calling functions like:
string.join
where I can _never_ remember whether its the list or seperator first
Get it directly from SVN: http://slog.dk/svn/home/jensen/emacs-lisp/addon/py-complete.el (link to archived versions)
Feel free to suggest improvements, or to just improve the code yourself.
Helge
2007-02-15 add
also check this: Bash-like Tab Completion in Emacs python-mode
2026, Python Software Foundation
Made with Sphinx and Shibuya theme.
| Web Proxy Viewer | New URL | Original Page |