all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: M-; : comment-column gets overridden by fill-column. Is this the Right Thing?
Date: Sat, 22 May 2010 15:17:19 +0000	[thread overview]
Message-ID: <20100522151719.GA1621@muc.de> (raw)

Hi, Emacs,

In a recent request for help from Michael Massmann on gnu.emacs.help,
he wants comments to be at column 100, but was unable to make M-; do
this.

He'd set comment column to 100, and had tried playing around with the
comment configuration in CC Mode, all to no avail.

M-; invokes comment-dwim calls comment-indent, which starts by putting
an empty comment at col 100.  It's not finished, though.

comment-indent then calls comment-choose-indent, which returns 72.
comment-indent then repositions the empty comment to col 72.  :-(

comment-choose-indent (which might better be called
comment-chews-indent ;-) makes the comment fit inside fill-column,
despite the fact that auto-fill-mode isn't enabled.  This is surely not
the right thing.  Should c-c-indent use fill-column when auto-fill-mode
is enabled?

Surely the documentation for M-; should mention fill-column?

Why is this comment stuff in such a mess?

-- 
Alan Mackenzie (Nuremberg, Germany).



             reply	other threads:[~2010-05-22 15:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22 15:17 Alan Mackenzie [this message]
2010-05-23  1:15 ` M-; : comment-column gets overridden by fill-column. Is this the Right Thing? Stefan Monnier

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=20100522151719.GA1621@muc.de \
    --to=acm@muc.de \
    --cc=emacs-devel@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.