Fixing fill-paragraph with comments in Emacs 23.2.1

Posted by Silfheed on Super User See other posts from Super User or by Silfheed
Published on 2011-02-25T20:29:27Z Indexed on 2011/02/26 15:27 UTC
Read the original article Hit count: 193

Filed under:
|

I just upgraded to emacs 23.2.1 when I finally upgraded to ubuntu 10.10, but the first thing I noticed is that fill-paragraph (M-q) doesnt work nicely with comments anymore or at least do not work the way they did in emacs 23.1.? that I had before the upgrade.

The main issue is that if I have a commented line such as

//This is a long comment to illustrate an issue I have with emacs lorem ipsum

and then do fill-paragraph (M-q) afterwards, I get

//This is a long comment to illustrate an issue I have with
emacs lorem ipsum

whereas I should get

//This is a long comment to illustrate an issue I have with
//emacs lorem ipsum

I've killed my .emacs file to try and narrow down where the issue is popping up, but this still pops up even in vanilla emacs.

© Super User or respective owner

Related posts about emacs

Related posts about bug