From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Massmann, M. (Michael)" Newsgroups: gmane.emacs.help Subject: RE: comments in cc mode Date: Thu, 20 May 2010 11:33:28 +0200 Message-ID: <3AFC08F68F51AD498C041D7A14FCB148B5D16D@feweb09.feweb.vu.nl> References: <4ACDABA4.7070402@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1274363592 21905 80.91.229.12 (20 May 2010 13:53:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 13:53:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?iso-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 20 15:53:11 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OF6BR-0005mR-JB for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 15:53:09 +0200 Original-Received: from localhost ([127.0.0.1]:37466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF6BQ-0001I9-Mx for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 09:53:08 -0400 Original-Received: from [140.186.70.92] (port=54223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OF2TZ-0005YK-TS for help-gnu-emacs@gnu.org; Thu, 20 May 2010 05:55:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OF2TY-0007Qq-O8 for help-gnu-emacs@gnu.org; Thu, 20 May 2010 05:55:37 -0400 Original-Received: from mail.cimo.vu.nl ([130.37.52.30]:20234 helo=mail.feweb.vu.nl) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OF2TY-0007Qd-Jg for help-gnu-emacs@gnu.org; Thu, 20 May 2010 05:55:36 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message In-reply-to: <4ACDABA4.7070402@easy-emacs.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: comments in cc mode Thread-Index: AcpH9siPp7gMqw6oQMCoOLOYUuVVqiv/9J5w X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Mailman-Approved-At: Thu, 20 May 2010 09:52:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73687 Archived-At: Dear Andreas, Many thanks for this. Could you point me to the documentation for the = options available for comment-style? After playing around with some of = them I did not get the desired effect. I also had a look at cc-mode's `c-indent-comment-alist' and set every = single entry to `column' and `nil', so as to have the default column (ie = 100) apply, no matter what the surrounding syntax is. The variable = `c-indent-comments-syntactically-p' I set to nil so that it does not = override the previous settings. This seems to have the desired effect that when I press M-; to insert a = *new* comment on a line, empty or not, the comment indeed starts in = column 100. Yet when I press M-; to re-align an *existing* comment, the entire = comment is moved to a column other than 100 in 9 out of 10 cases. Any advice on how to rectify this problem would be appreciated. Thanks! Regards, Michael > -----Original Message----- > From: Andreas R=F6hler [mailto:andreas.roehler@easy-emacs.de] > Sent: donderdag 8 oktober 2009 11:07 > To: Massmann, M. (Michael) > Cc: help-gnu-emacs@gnu.org > Subject: Re: comments in cc mode >=20 > Michael wrote: > > Dear all, > > > > I was wondering whether there is a simple way of changing the = various > > ways comments are placed in cc mode to one single default: always > > place a double forward slash in column, say, 100 and then the = comment > > thereafter? I have experimented with the menu options yet so far to > no > > avail. > > > > Any suggestion is appreciated. Thanks. > > > > Greetings, > > Michael > > >=20 > M-x set-comment-column > M-x customize-variable RET comment-style >=20 > mode has it's own list BTW >=20 > cc-mode-help@lists.sourceforge.net >=20 > HTH