Re: [Python-mode] Triple quoted string problem

2011-01-10 Thread skip

Barry I can confirm both of these on Emacs 23.2.1.  Please file a bug. :(

https://bugs.launchpad.net/python-mode/+bug/701175

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


[Python-mode] Triple quoted string problem

2011-01-09 Thread skip

I hesitate to open a new bug because this has probably been covered
somewhere and I already opened one (sort of) duplicate bug today, but it's
hard to tell because there are so many open triple-quoted string bug
reports.

Using the latest release I created a new file with just a #! line and a doc
string:

#!/usr/bin/env python


Maintain the recent best price and alert when it remains
the best price for a user-defined time.


When I attempt to fill the docstring's paragraph with the cursor positioned
in front of Maintain it zaps the space before 'best' and fails to actually
fill the paragraph:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains
the best price for a user-defined time.


If I then move the cursor down a line (point positioned ahead of 'the') and
fill again, I get this:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains the best price 
for a user-defined
time.


which is pretty bad considering fill-column is set to 70 in that buffer.

This is using XEmacs 21.5.28 on Solaris.  On XEmacs 21.4.22 (on Mac OSX) I
get somewhat different behavior.  There, not sure why, but my fill-column is
76.  It formats the entire docstring onto one line:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains the best price 
for a user-defined time.


In short, I'm not sure that paragraph filling inside triple-quoted strings
is any better now than before the release.  In fact, it might even be worse
overall. :-(

Skip

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


Re: [Python-mode] Triple quoted string problem

2011-01-09 Thread skip

When I attempt to fill the docstring's paragraph with the cursor positioned
in front of Maintain it zaps the space before 'best' and fails to actually
fill the paragraph:

#!/usr/bin/env python


Maintain the recentbest price and alert when it remains
the best price for a user-defined time.


FYI, changing the quoting around the word best from quotation marks to
apostrophes results in correct behavior.

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