GNU bug report logs -
#3370
23.0.94; `comment-region' indents comment chars inappropriately
Previous Next
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
[Message part 1 (text/plain, inline)]
Your message dated Tue, 21 Feb 2012 21:46:02 -0500
with message-id <xmehtn60wl.fsf <at> fencepost.gnu.org>
and subject line Re: bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately
has caused the debbugs.gnu.org bug report #3370,
regarding 23.0.94; `comment-region' indents comment chars inappropriately
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
3370: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3370
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
emacs -Q
In buffer *scratch*, type this: SPC SPC ` a b c d e f ' RET
That inserts this line, followed by a newline:
`abcdef'
Select the line, including the newline at its end: `M-< C-SPC C-n'.
M-x comment-region
In Emacs 23, this is the result:
;; `abcdef'
In all previous versions of Emacs, the comment chars are inserted at
the start of the line - they are not indented two spaces:
;; `abcdef'
This is so for Emacs 20, 21, and 22. (Though in Emacs 20 only one
semicolon is used.)
This breaks any code that depends on the traditional behavior. For
instance, I have code that updates file-header lines, and now, instead
of this:
;; Features that might be required by this library:
;;
;; `abcdef', `ghijk', `lmnop'.
;;
I get this;
;; Features that might be required by this library:
;;
;; `abcdef', `ghijk', `lmnop'.
;;
I need this code to work in all Emacs versions. I certainly hope you
do not consider this change to be a feature instead of a bug.
In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
of 2009-05-24 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
[Message part 3 (message/rfc822, inline)]
It was explained that this can be customized with comment-style.
The default isn't going to change.
This bug report was last modified 13 years and 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.