help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange line-wrapping


From: Fredrik
Subject: Strange line-wrapping
Date: 12 Nov 2002 17:17:28 GMT
User-agent: Xnews/L5

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]