[Python-mode] python-mode 3.105; M-q comment action
Chris Green
cmg at dok.org
Tue Jan 27 16:50:45 EST 2004
Skip Montanaro <skip at pobox.com> writes:
> Chris> One function I love to use with source code editing is
> Chris> fill-paragraph-or-region (default bound to M-q). I have one
> Chris> slight enhancement request for python mode.
>
> 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.
Said thanks too quickly:
`py-version' is a variable declared in Lisp.
-- loaded from "python-mode"
Value: "4.6"
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()
M-q on the comment results in:
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()
--
Chris Green <cmg at dok.org>
Chicken's thinkin'
More information about the Python-mode
mailing list