[Python-mode] py-beginning-of-def-or-class really "or"

Andreas Roehler andreas.roehler at online.de
Sat Jan 24 14:44:52 CET 2009


intend to make


really "or", i.e. looking for each of them.

Doku says:

| Searches back for the closest preceding `def'.  If you
| supply a prefix arg, looks for a `class' instead.

Presently, reaching the must upward def, you must type
\C-u first, to reach the class.

Afterwards it will be sufficient to repeat the command,
while universal arg should be kept nonetheless.

Any objections/suggestions?

Andreas Röhler

Mentioned python-mode.el branch is available at

More information about the Python-mode mailing list