Comments
Fernando Pérez
fperez528 at yahoo.com
Sun May 12 05:10:40 EDT 2002
Huaiyu Zhu wrote:
> Fernando Pérez <fperez528 at yahoo.com> wrote:
>>Yes, it works perfectly. Now I can have:
>>
>>def f():
>> """ bla.... long (multiline)"""
>> # bla comments, long...
>>
>>and hit M-q in the commment and the docstring, and they both get
>>independently lined up _without_ the surrounding code or eachother getting
>>broken. Absolutely perfect!
>
> Strange. After typing (the comment is in one line but my mail client
> is configured to restrict to 80 char)
>
> def f():
> """ bla.... long (multiline)"""
> # bla comments, long... adsf as as dsa sad fsad fdsa fads fdsa fdsa \
> dsa dsa dsa fdsa dafadf ads ads fdsa
>
> and do M-q on the # line, I now get
>
> def f():
> """ bla.... long (multiline)"""
> # bla comments, long... adsf as as dsa sad fsad fdsa fads fdsa fdsa dsa
> dsa dsa fdsa dafadf ads ads fdsa
>
> What kind of settings in .emacs would cause this?
>
> Huaiyu
Don't know, but I take some things back. I realized that the 'magic' settings
have one fatal drawback: they don't properly realign indented docstrings. So
I had to revert back to the old mode, with all its brokenness.
Sorry if my early cheering got your hopes up.
f.
More information about the Python-list
mailing list