[Python-mode] M-x beginning-of-defun

Andreas Roehler andreas.roehler at online.de
Sat Nov 29 18:02:26 CET 2008


Hi Barry,

`beginning-of-defun-raw' in GNU Emacs has a nice
feature, enabling functions instead of regexps to
determine beginning and end of defun, i.e. function or form.

In python-mode.el I see you solved this by binding the
beginning- and end-of-defun keys seperatly.
(Maybe, because XEmacs lacks this feature?)

However, this lets commands like M-x beginning-of-defun
empty.

My suggestion is to follow GNU conventions here, by
introducing the missing forms in XEmacs lisp.el and
python-mode.el alike.

Herewith a patch against latest python-mode.el, which I
enjoy, thanks BTW.

Also a patch against latest XEmacs lisp.el.

Best wishes

Andreas Röhler


-------------- next part --------------
A non-text attachment was scrubbed...
Name: py-beg-end-of-defun-function.diff
Type: text/x-patch
Size: 985 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20081129/1f1714bc/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beginning-end-of-defun-function.diff
Type: text/x-patch
Size: 2653 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-mode/attachments/20081129/1f1714bc/attachment-0001.bin>


More information about the Python-mode mailing list