An Emacs mode for editing Python code

fill-paragraph in a comment does not stop at "empty comment lines"

Reported by Yaroslav Halchenko on 2012-11-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Medium
Andreas Roehler

Bug Description

in older version of python-mode (5.1.0) fill-paragraph (Alt-q) e.g. on first line of

# line1: alskdjfl aksdjlfkas dklfj aslkdjf aklsdj flkasjd fklasjd lfkasj dlkfj asdklfj aslkdfj
#
# line2

would fill only portion of line1:

# line1: alskdjfl aksdjlfkas dklfj aslkdjf aklsdj flkasjd fklasjd
# lfkasj dlkfj asdklfj aslkdfj
#
# line2

while current version disregards such stop paragraph separation... unless it is at the beginning of the buffer!! ;), so adding an empty line before the first comment line of this test example, results in:

# line1: alskdjfl aksdjlfkas dklfj aslkdjf aklsdj flkasjd fklasjd
# lfkasj dlkfj asdklfj aslkdfj line2

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
milestone: none → 6.1.0
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers