This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: elisp: doesn't recognize comment-syntax
Type: Stage:
Components: Demos and Tools Versions: Python 2.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: barry Nosy List: barry, doko, skip.montanaro
Priority: normal Keywords:

Created on 2002-09-08 08:24 by doko, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
comment-syntax doko, 2003-03-04 22:42
Messages (3)
msg12302 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2002-09-08 08:24
[forwarded from http://bugs.debian.org/159630]

It would be awfully nice if python-mode.el knew about
python comment syntax and told emacs about it, so that
the M-q fill-paragraph command that formats comment
blocks so nicely in C and Perl modes would do the right
thing. As it stands, M-q in the middle of the comment
block on something like this:..

def func():
    blah = 2
    # this is a comment
    # this is also a comment
    foo = 3

jams the entire function into one line, statements and
comments and all. I'd really like it to identify the
comments, set the region around them, do a normal
paragraph-fill (with the fill-prefix set to the
existing indentation), then restore the region.
msg12303 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2003-03-04 22:42
Logged In: YES 
user_id=60903

Attached is a patch sent to the Debian BTS
msg12304 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2003-08-01 04:04
Logged In: YES 
user_id=44345

This was fixed in a separate patch (pre-2.3) awhile ago.
History
Date User Action Args
2022-04-10 16:05:39adminsetgithub: 37149
2002-09-08 08:24:39dokocreate