[Python-bugs-list] [ python-Bugs-606251 ] elisp: doesn't recognize comment-syntax
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 08 Sep 2002 01:24:39 -0700
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: None
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=606251&group_id=5470