New in version 6.2.0
Written for python-mode.el by Andreas Roehler on 2014-11-28
- Support for large output
new commands py-fast-process, py-fast-...
Fixes: large output makes Emacs freeze, lp:1253907
Python code now might be processed by an
- interactive Python shell (DEFAULT)
- non-interactive Python (`py-fast-
Both processes might run in
- session, i.e. start from possible previous state (DEFAULT)
- dedicated, (`py-dedicated-
- TAB bound to `py-indent-
Calls to `tab-to-tab-stop' removed, as these would conflict.
Use `C-q TAB' to insert a literally TAB-character.
- py-fast-complete
Complete word before point, if any, use `py-fast-process'
- `py-shell-
In shell: complete or indent depending on the context.
If cursor is at current-indentation and further indent
seems reasonable, indent. Otherwise try to complete.
- Python specific hide-show
py-hide-region
py-show-region
py-hide-statement
py-show-statement
py-hide-block
py-show-block
py-hide-clause
py-show-clause
py-hide-
py-show-
py-hide-def
py-show-def
py-hide-class
py-show-class
py-hide-
py-show-
py-hide-
py-show-
py-hide-line
py-show-line
py-hide-top-level
py-show-top-level
- `py-shell' uses new `py-shell-mode', `py-shell-mode-map'
M-x describe-mode RET mentions edit available commands
Menu "Py-Shell"
- Improved customization of Python2, Python3, IPython executables
receive defaults depending from system
py-python-command - defaults to python2
py-python2-
py-python3-
py-ipython-
py-python-
py-python2-
py-python3-
py-ipython-
- info-lookup-symbol made working with Python
patched python-info.el available at
https:/
See also INSTALL-INFO-FILES
- `py-backward-
While `py-up' will go upward from beginning of block, this travels
same level, but goes up if no element left in level. If callled
from inside a string or list, go to its beginning.
- `py-kill-
With optional argument SHELL, otherwise kill default
(I)Python shell.
- py-info-
Calls `info-lookup-
- py-toggle-
If window is splitted vertically or horizontally.
Sets customizable variable
`py-split-
Also in menu Python/
- py-symbol-at-point
Return the Python symbol under cursor
- py-report-
Display Py-shell' comint-mode variables of interest.
- variables-state
Diplays state of python-mode variables in an org-mode buffer
- py-kill-
Kill buffer unconditional; kill also any buffer-process.
Setting docstring style simplified; a style is all needed.
New commands
-py-set-
-py-set-
-py-set-
-py-set-
-py-set-
-py-set-
- new indent feature/behavior, lp:1280982
If an empty line was dedented deliberatly, this is
honored by next lines indent
- py-object-
commonly "self" or "cls", inherits default face
- py-error
In case of error, list messages from Python process
- `py-split-
Not a boolean any more, new option 'just-two: When code is send to
interpreter, split screen into source-code buffer and current
--maybe reused-- py-shell. When set to `t' --default--, python-mode
will keep existing windows and split only if needed. Alternatively
if a multitude of python-
manually and set `py-keep-
If `always' split according to settings of `split-
- For completeness some commands user might expect
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
py-execute-
- `py-unload-
Normally commands delivered by python.el are usable alongside with
python-mode.el. Some old version of python.el might write skeletons into
python-
Internally used functions preferably are prefixed `py--':
py--statement
py--statement
New variable `py-ipython-
Boolean `py-set-
Fill according to `py-docstring-
`py-comment-
`py-font-
lp:1314921
New booleans
- py-fast-process-p
If `t', stuff is executed through `py-fast-...'-
commands, suitable for large output. Result arrives
in py-fast-
- py-shell-
If `t', open output buffers, split windows according to settings of
`py-split-
Removed commands
-toggle-
-py-nil-
-py-nil-
-toggle-
-py-onetwo-
-py-onetwo-
-toggle-
-py-pep-
-py-pep-
-toggle-
-py-pep-
-py-pep-
-toggle-
-py-symmetric-
-py-symmetric-
-toggle-
-py-django-
-py-django-
Some commands not so useful made common functions, like
-py-statement-
-py-statement-
Dropped booleans:
`py-start-
`py-start-
`py-pylint-
`py-paragraph-
`py-enforce-
`py-cleanup-