GNU bug report logs -
#193
Fill for // (C++) style comments in C (C99)
Previous Next
Reported by: Richard Hansen <rhansen <at> bbn.com>
Date: Tue, 6 May 2008 23:30:03 UTC
Severity: normal
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi, Christoph!
On Tue, Jul 13, 2010 at 07:08:30PM -0600, Christoph wrote:
> Alan,
> Anyway, it works fine now. Just like you described with an additional
> space after the period, none otherwise.
> However, here is one more quirky case:
> /*
> this
> is
> a
> test
> .
> */
> expands to
> /*
> this is a test */
It fills properly for me when I type C-q. That is, it works right after
applying the patch I sent ~ 3 weeks ago.
> I would have expected
> /* this is a test */
> However, this
> /*
> this
> is
> a
> test
> */ (note the extra space at the beginning of the line)
> expands to
> /*
> this is a test
> */
> which I can understand, but I am not sure if this is intended or if it
> is supposed to also be
> /* this is a test */
A comment marker alone on a line stays that way, on the assumption that
this is a matter of style. A comment marker on a line together with
text always keeps at least one word with it after filling.
> Thanks,
> Christoph
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 14 years and 82 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.