all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fredrik <nospam-foberg@yahoo.com>
Subject: Strange line-wrapping
Date: 12 Nov 2002 17:17:28 GMT	[thread overview]
Message-ID: <aqrd38$bne78$1@ID-135043.news.dfncis.de> (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

             reply	other threads:[~2002-11-12 17:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-12 17:17 Fredrik [this message]
2002-11-13  7:51 ` Strange line-wrapping Kai Großjohann
2002-11-13 21:48   ` Fredrik
2002-11-14 16:22     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='aqrd38$bne78$1@ID-135043.news.dfncis.de' \
    --to=nospam-foberg@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.