[Python-bugs-list] [ python-Bugs-606251 ] elisp: doesn't recognize comment-syntax
SourceForge.net
noreply@sourceforge.net
Thu, 31 Jul 2003 21:04:03 -0700
Bugs item #606251, was opened at 2002-09-08 03:24
Message generated for change (Comment added) made by montanaro
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: Closed
>Resolution: Duplicate
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: Skip Montanaro (montanaro)
Date: 2003-07-31 23:04
Message:
Logged In: YES
user_id=44345
This was fixed in a separate patch (pre-2.3) awhile ago.
----------------------------------------------------------------------
Comment By: Matthias Klose (doko)
Date: 2003-03-04 16: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