unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately
@ 2009-05-24 23:31 Chong Yidong
  2009-05-24 23:57 ` Drew Adams
  2009-05-25  0:04 ` Lennart Borgman
  0 siblings, 2 replies; 23+ messages in thread
From: Chong Yidong @ 2009-05-24 23:31 UTC (permalink / raw)
  To: Drew Adams; +Cc: 3370

> 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.





^ permalink raw reply	[flat|nested] 23+ messages in thread
* bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately
@ 2009-05-24 22:31 Drew Adams
  2009-05-25 13:41 ` Stefan Monnier
  0 siblings, 1 reply; 23+ messages in thread
From: Drew Adams @ 2009-05-24 22:31 UTC (permalink / raw)
  To: emacs-pretest-bug

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)'
 






^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2012-02-22  2:46 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-24 23:31 bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately Chong Yidong
2009-05-24 23:57 ` Drew Adams
2009-05-25  0:04 ` Lennart Borgman
2009-05-25  0:54   ` Chong Yidong
2009-05-25  1:28     ` Jason Rumney
2009-05-25  2:09       ` Drew Adams
2009-05-25  4:47       ` Chong Yidong
2009-05-25  7:01         ` Drew Adams
2009-05-25 13:27           ` Chong Yidong
2009-05-25 17:42             ` Drew Adams
2009-05-25 13:38           ` Stefan Monnier
2009-05-25 17:42             ` Drew Adams
2009-05-25 21:22               ` Stefan Monnier
2009-05-25 21:56                 ` Drew Adams
2009-05-25 22:46                 ` Jason Rumney
2009-05-26  1:16                   ` Stefan Monnier
2012-02-22  2:46                     ` Glenn Morris
2009-05-25  5:26       ` Dan Nicolaescu
2009-05-25  7:02         ` Drew Adams
2009-05-25 13:30           ` Chong Yidong
2009-05-25 13:39           ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2009-05-24 22:31 Drew Adams
2009-05-25 13:41 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).