From: Alan Mackenzie <acm@muc.de>
To: help-gnu-emacs@gnu.org
Subject: Re: comments in cc mode
Date: Sat, 22 May 2010 09:43:01 +0000 (UTC) [thread overview]
Message-ID: <ht88v5$t1h$1@colin2.muc.de> (raw)
In-Reply-To: mailman.0.1274363526.31702.help-gnu-emacs@gnu.org
Hi, Michael,
"Massmann, M. (Michael)" <mmassmann@feweb.vu.nl> wrote:
> 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!
I've just gone through `comment-dwim' in edebug (the Emacs debugger), and
it seems like comments are being made to fit within `fill-column'. I
don't know why this is being done, but could you try setting it to a high
value, say
(setq fill-column 150)
. Does this solve the immediate problem? Does it introduce any new
problems?
> Regards,
> Michael
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2010-05-22 9:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 15:39 comments in cc mode Michael
2009-10-07 19:04 ` John A Pershing Jr
2009-10-08 9:06 ` Andreas Röhler
2010-05-20 9:33 ` Massmann, M. (Michael)
[not found] ` <mailman.0.1274363526.31702.help-gnu-emacs@gnu.org>
2010-05-22 9:43 ` Alan Mackenzie [this message]
2010-05-22 16:20 ` Michael
2010-05-22 19:15 ` Alan Mackenzie
2010-05-23 11:45 ` Michael
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='ht88v5$t1h$1@colin2.muc.de' \
--to=acm@muc.de \
--cc=help-gnu-emacs@gnu.org \
/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.