unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Strange line-wrapping
@ 2002-11-12 17:17 Fredrik
  2002-11-13  7:51 ` Kai Großjohann
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik @ 2002-11-12 17:17 UTC (permalink / raw)


Using NTemacs 21.2.1 I have the following problem:

I like to have my code wrapped automatically so I've set c-ignore-auto-
fill to nil which works pretty well. However, there is some strange 
behaviour. This works fine:

int Method(int parameter1, int  <---- automatic wrap
           parameter2, int parameter3)
{
}


But if ther is a comment before the line to wrap, I get the following 
result:

//----------
//Comment
//----------
int Method(int parameter1, int  <---- automatic wrap
//parameter2, int parameter3)   <---- now this is a comment!
{
}


ie the comment-signs (//) is added to the new line. 

Can someone explain this? And how do I solve it?

Regards
//Fredrik

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-14 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-12 17:17 Strange line-wrapping Fredrik
2002-11-13  7:51 ` Kai Großjohann
2002-11-13 21:48   ` Fredrik
2002-11-14 16:22     ` Kai Großjohann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).