GNU bug report logs - #3370
23.0.94; `comment-region' indents comment chars inappropriately

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sun, 24 May 2009 22:40:04 UTC

Severity: wishlist

Tags: wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 3370 <at> debbugs.gnu.org, "'Chong Yidong'" <cyd <at> stupidchicken.com>,
        "'Jason Rumney'" <jasonr <at> gnu.org>,
        "'Dan Nicolaescu'" <dann <at> ics.uci.edu>, rms <at> gnu.org
Subject: bug#3370: 23.0.94; `comment-region' indents comment chars  inappropriately
Date: Mon, 25 May 2009 09:38:18 -0400
> Why would everything else be equal? What's wrong with considering what
> Emacs has always done, and perhaps even thinking about breaking
> existing code (such as what I reported)? Everything else is not equal.

Emacs put the comment-starters at column-0 because that code was written
a looooonnng time ago and keeping things simple was more important
than now.  Emacs-21's new commenting code was improved to be able to
comment and uncomment at other columns than column-0, which made it more
useful since most commenting styles use other indentation styles.
Emacs-21's default (as well as 22) was set to `plain' because Richard
always puts such comments at column-0 (the `plain' setting had actually
to be added specifically for this).

If you don't like it, just (setq comment-style 'plain) and live happily
ever after.


        Stefan



This bug report was last modified 13 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.