[Python-bugs-list] [ python-Bugs-606251 ] elisp: doesn't recognize comment-syntax

SourceForge.net noreply@sourceforge.net
Tue, 04 Mar 2003 14:42:41 -0800


Bugs item #606251, was opened at 2002-09-08 08:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=606251&group_id=5470

Category: Demos and Tools
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: elisp: doesn't recognize comment-syntax

Initial Comment:
[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.


----------------------------------------------------------------------

>Comment By: Matthias Klose (doko)
Date: 2003-03-04 22:42

Message:
Logged In: YES 
user_id=60903

Attached is a patch sent to the Debian BTS


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=606251&group_id=5470