On Apr 07, 2011, at 01:26 PM, Andreas Röhler wrote: >facing several difficulties with >beginning-of-defun-function, like to normalize >`py-beginning-of-def-or-class' taking just one argument >C-u. > >That would help in many respects. I'm aware it >entangles precious heritages :-) > >Default would be def-or-class, while C-u would mean `class-only'. > >Unless you are vetoing...
There are a couple of things to consider. First, the function is used both interactively and programmatically. It would probably be better in the long run to split that into two different functions, and if possible, retain the second argument for the interactive use. It doesn't seem like `count` is used programmatically in python-mode.el. Second, TBH, I've never actually used the second argument myself. Yes, I use the `class` argument all the time. So I *personally* don't mind if the second argument goes away, but it might indeed be important to other users (who may not be on this mailing list). Cheers, -Barry
signature.asc
Description: PGP signature
_______________________________________________ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode