Subject: Re: bug#2929: 23.0.92; Broken auto-filling in message-mode

From: Stefan Monnier <[email-masked]>
Date: Fri, 10 Apr 2009 13:45:40 -0400

> I'm not sure newcomment.el can be blamed much for this.

It can.

> The buffer has:

> comment-start = "> "
> comment-end   = "*/"

> The comment-end string never appears in the example buffer, but the
> comment-start one does. So it looks to newcomment like the whole
> buffer is one big comment.

Yes, if we consider a C file with the following content:

  /* blablabla
     blablabla
     blablabla long line to cut here

it's better for auto-fill-mdoe to do:

  /* blablabla
     blablabla
     blablabla long line to cut
     here

then

  /* blablabla
     blablabla
     blablabla long line to cut /*
  /* here

since the comment is obviously not using a "one comment per line"
style anyway.  That's why I said:

>> "*/\n> " should not be added to lines which don't start with "> ".

--  Stefan