From: Miles Bader <address@hidden>
Reply-To: Miles Bader <address@hidden>
To: Stefan Monnier <address@hidden>
CC: address@hidden, address@hidden,
address@hidden,address@hidden
Subject: Re: Fill for // style comments in C
Date: Mon, 27 Nov 2006 15:34:28 +0900
Stefan Monnier <address@hidden> writes:
>> C mode does support // comments in other ways, so if it doesn't
>> enable filling of them, I think that is a bug.
>
> I still haven't seen any clear report that it doesn't work (just some
vague
> remarks about whether or not it works).
Consider the following in c-mode (with indentation removed):
// this is a test
// foo bar
int a ()
{
}
If you position the point on the word "test", and hit M-q (bound to
`c-fill-paragraph'), nothing happens.
If you then do `M-x c++-mode', and hit M-q again, the comment is filled
as you might expect.
_However_ if you use `M-x fill-paragraph' instead of M-q
(c-fill-paragraph), then it works correctly in both modes -- so it
appears that the bug is with c-fill-paragraph.
-Miles
--
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over. --Ian
Wolff
_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel