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





_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to