[Python-mode] python-mode 3.105; M-q comment action
Skip Montanaro
skip at pobox.com
Tue Jan 27 20:31:41 EST 2004
>> These two enhancements are in the most recent version (4.48). What
>> version are you using? Check the py-version variable's value to find
>> out.
Chris> Said thanks too quickly:
Chris> `py-version' is a variable declared in Lisp.
Chris> -- loaded from "python-mode"
Chris> Value: "4.6"
6 < 48 last time I checked... ;-)
Chris> if __name__=='__main__':
Chris> # this is a very long comment -- this might take up a few lines of space if I'm not careful
Chris> s = stuff()
Chris> M-q on the comment results in:
Chris> if __name__=='__main__': # this is a very long comment -- this might
Chris> take up a few lines of space if I'm not careful s = stuff()
Not too surprising. I am not on-net at the moment, so I can't check the
precise version in which this feature was added, but I checked in the change
(to the Python version before the python-mode probject was started), and I
can verify that 4.48 does as we'd all like:
if __name__=='__main__':
# this is a very long comment -- this might take up a few lines of space
# if I'm not careful
s = stuff()
Skip
More information about the Python-mode
mailing list