From: Alan M. <ac...@mu...> - 2012-03-31 22:47:29
|
On Sat, Mar 31, 2012 at 04:04:57PM -0400, John Ruttenberg wrote: > Before I could invoke c-fill-paragraph in code like this: > > class x { > > // testing a commnet WHat happens when we have way too long a line for my > > friends who like 80 columns > > // > And the result would be like this: > > class x { > > // testing a commnet WHat happens when we way too long a line for my > > // friends wo like > > // > But now, the result is like this: > > class x { > > // testing a commnet WHat happens when we have way too long a line for my > > // friends who like 80 columns // > Note that the // has been filled onto the last paragraph of the comment. It > also eats empty comment lines. For example: > > class x { > > // testing a commnet WHat happens when we have way too long a line for my > > // friends who like 80 columns. > > // > > // And also ... > Is filled as: > > class x { > > // testing a commnet WHat happens when we have way too long a line for my > > // friends who like 80 columns. // > > // And also ... > Any pointers to what to look at would be appreciated. Thanks for taking the trouble to report this. I've tried these out myself and c-fill-paragraph behaves for me as it should. I suspect you might have some minor mode enabled that CC Mode isn't taking into account. Would you please try these things out in emacs -Q (or emacs -Q -L /path/to/cc-mode-5-32). Do they still go wrong? Perhaps it would be best if I could see your CC Mode configuration. Please dump this with C-c C-b and send it to me. -- Alan Mackenzie (Nuremberg, Germany). |