emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

comment-dwim and uncommenting


From: Stefan Reichör
Subject: comment-dwim and uncommenting
Date: Wed, 28 May 2003 14:04:06 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt)


In GNU Emacs 21.3.50.1 (i386-msvc-nt5.0.2195)
 of 2003-05-26 on HEIDI
configured using `configure --with-msvc (12.00)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEA
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t


When I use comment-dwim to comment and uncomment a region, the
uncomment leaves one space that I don't want.
For example the file hello.cpp:

Initial content

void main() {
  int a=3;
  printf("hello world");
  a=a*2;
}

Called comment-dwim on the line printf...


void main() {
  int a=3;
//   printf("hello world");
  a=a*2;
}

Called comment-dwim on the line //   printf...

void main() {
  int a=3;
   printf("hello world");
  a=a*2;
}

Now the printf... line has an extra space at the beginning.
I would like to get the original (correctly indented) content.

Stefan.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]