From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fredrik Newsgroups: gmane.emacs.help Subject: Strange line-wrapping Date: 12 Nov 2002 17:17:28 GMT Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037122710 32134 80.91.224.249 (12 Nov 2002 17:38:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2002 17:38:30 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Bezc-0008Lw-00 for ; Tue, 12 Nov 2002 18:38:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18BeyW-0001lz-00; Tue, 12 Nov 2002 12:37:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!foo106-23.visit.SE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: foo106-23.visit.se (62.119.106.23) Original-X-Trace: fu-berlin.de 1037121448 12302568 62.119.106.23 (16 [135043]) User-Agent: Xnews/L5 Original-Xref: shelby.stanford.edu gnu.emacs.help:106970 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3521 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3521 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