An Emacs mode for editing Python code


Created by Andreas Roehler on 2011-08-24 and last modified on 2012-02-02
Get this branch:
bzr branch lp:~a-roehler/python-mode/XEmacs-compat-test
Only Andreas Roehler can upload to this branch. If you are Andreas Roehler please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Andreas Roehler

Recent revisions

791. By Andreas Roehler on 2012-02-02

`py-execute-import-or-reload' python3 bug, lp:923575, again

790. By Andreas Roehler on 2012-02-01

`py-execute-region-switch' fixed

`py-ask-about-save' previous prodeeding restored,
as used by `py-execute-import-or-reload', saving
possibly edited buffers before reload is reasonable

789. By Andreas Roehler on 2012-01-31

`py-execute-import-or-reload', python3, lp:923575

new commands:

788. By Andreas Roehler on 2012-01-30

doc/ again

787. By Andreas Roehler on 2012-01-30

doc/ updated

786. By Andreas Roehler on 2012-01-30

README updated

785. By Andreas Roehler on 2012-01-29

`py-forward-into-nomenclature', lp:919540

Am 29.01.2012 09:35, schrieb Georg Brandl:
> Another thing: forward-word stops at the *ends* of words. py-forward-
> into-nomenclature now stops at the beginnings of words. E.g.:
> def doSomething(blah)
> from the beginning of the line it should stop at " ", "S", "(", ")"

784. By Andreas Roehler on 2012-01-28

new commands `indent-tabs-mode', `toggle-indent-tabs-mode',
  `indent-tabs-mode-on', `indent-tabs-mode-off'

`tab-width' now follows `py-indent-offset'

feature after a request at Stack Exchange asked Jul
13 '11 at 13:23 saying:

How to make Emacs Python mode generate TABs for indent?

I'm working with a bunch of Python programmers who use
vim and they make Python using TABs for indent. I use
Emacs with python-mode which translates the tab key to 4
spaces (like it should, but never mind). Since I don't
want to cause trouble I want to add something to my
.emacs file (or whatever) to make indents using real
TABS instead of translating them to spaces. How?

783. By Andreas Roehler on 2012-01-27

user configured `py-shell-name' is not honored by `py-guess-default', lp:920079, fixed

new command `py-execute-region-default' forces the
systems default Python interpreter to execute, ignores

related functions redesigned, `async' argument dropped
`py-execute-region' now reads:

(defun py-execute-region (start end &optional shell dedicated)
  "Send the region to a Python interpreter.

When called with \\[univeral-argument], execution through `default-value' of `py-shell-name' is forced.
When called with \\[univeral-argument] followed by a number different from 4 and 1, user is prompted to specify a shell. This might be the name of a system-wide shell or include the path to a virtual environment.

When called from a programm, it accepts a string specifying a shell which will be forced upon execute as argument. "
[ ... ]

782. By Andreas Roehler on 2012-01-25

renamed: tools/ => devel/

make visible these files are not for common usage

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.