[Python-mode] py-match-paren

2011-02-05 Thread Andreas Röhler
Hi Barry, herewith a function I'm used to when editing and didn't want miss it in python-mode. Maybe have a look, if it seems useful for others too. Needs (require 'beg-end) (require 'thing-at-point-utils) (require 'thingatpt-utils-base) from https://code.launchpad.net/s-x-emacs-werkstatt/

[Python-mode] py-match-paren, py-forward-comment

2009-01-29 Thread Andreas Roehler
Hi pythonics, introduced `py-match-paren', known as `match-paren' in Emacs Lisp - jump to and fro beg-end of block. Realising this, traversing comments needed to be reliable: re-implemented `forward-comment', called here py-forward-comment, but should work with any mode. BTW next weeks I have t