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
Message #15 received at 3370 <at> emacsbugs.donarmstrong.com (full text, mbox):
> From: Chong Yidong Sent: Sunday, May 24, 2009 4:32 PM
> > In buffer *scratch*, type this: SPC SPC ` a b c d e f ' RET
> >
> > 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
>
> Wrong. The behavior is identical in Emacs 22.
You are absolutely incorrect.
I just did it again, in `emacs -Q' in 22.3:
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
The result is, exactly as I stated:
;; `abcdef'
Please do not reply that way, without even trying the recipe. It doesn't help.
Let me repeat the instructions differently, just so you are clear. Insert this
text at the beginning of *scratch*: " `abcdef'". Follow that by hitting RET to
insert a newline.
Put point at bob and hit C-SPC to set mark. Use C-n to move past the inserted
line.
Do M-x comment-region
You will *NOT* see this in Emacs 22 (or 21 or 20 or ...):
;; `abcdef'
You WILL see this in Emacs 22:
;; `abcdef'
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.