[Python-mode] edit or navigate code by feature

Andreas Röhler andreas.roehler at online.de
Sun Jun 26 10:09:35 CEST 2011


Hi Eric,

what about implementing a simplified navigation mode like such:

just call an object: for example "method", "string", "list" etc.

Emacs will look if inside such a thing.
If yes, it marks it as region.
If not, go forward to the next in buffer.

Should take the common numeric arguments moving forward or backward.

Once the region is marked,  a couple of functions already are provided 
to work at it: see

'ar-bracket-region-atpt'
'ar-brace-region-atpt'

and the like provided by thing-at-point-utils.el.

which are delivered with

https://code.launchpad.net/~a-roehler/python-mode/components-python-mode

More stuff of that kind at:

https://code.launchpad.net/s-x-emacs-werkstatt/

Might deliver shorthands within the new mode, so just saying "brack" 
instead of 'ar-bracket-region-atpt' should be enough than.

Cheers,

Andreas







More information about the Python-mode mailing list