Dear Bug Team!
I start with
xemacs -vanilla main.cpp
where main.cpp does not yet exist. The modeline says "C++".
I enter
"// hello
"
(without the " signs). Mark the whole buffer with "C-x h" and enter
"M-x uncomment-region"
The result looks like this:
"/ hello
"
I expect this:
"hello
"
XEmacs version:
"XEmacs 21.5 (beta21) \"corn\" (+CVS-20050720) [Lucid]
(i386-suse-linux, Mule) of Tue Sep 13 2005 on macintyre"
If you wish, I could give detailed decriptions for this bug in other
modes (e.g. haskell, java, vhdl, ...).
There is a discussion regarding this bug on comp.emacs.xemacs,
called "uncomment does uncomment too much".
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Linux macintyre 2.6.12 #1 SMP Wed Mar 23 21:52:37 UTC 2005 i686
athlon i386 GNU/Linux
./configure 'i386-suse-linux' '--with-gcc' '--with-dynamic'
'--enable-debug=no' '--enable-error-checking=none' '--with-cflags=-O2
-march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall
-Wno-switch -pipe -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing' '--with-ldflags='
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/X11R6/bin'
'--datadir=/usr/share'
'--with-archlibdir=/usr/lib/xemacs/21.5.21.20050721/i386-suse-linux'
'--with-docdir=/usr/lib/xemacs/21.5.21.20050721/i386-suse-linux'
'--with-lispdir=/usr/share/xemacs/21.5.21.20050721/lisp'
'--with-etcdir=/usr/share/xemacs/21.5.21.20050721/etc'
'--with-statedir=/var/lib/xemacs'
'--with-moduledir=/usr/lib/xemacs/21.5.21.20050721/i386-suse-linux/modules'
'--infodir=/usr/share/xemacs/info' '--mandir=/usr/share/man/man1'
'--enable-database=gdbm,berkdb' '--with-ncurses' '--with-tty=yes'
'--with-site-lisp' '--disable-mc-alloc' '--disable-kkcc'
'--enable-sound=native' '--with-gpm' '--enable-pdump'
'--disable-dump-in-exec' '--with-xpm' '--with-gif'
'--with-tiff'
'--with-jpeg' '--with-png' '--with-x' '--with-athena=3d'
'--enable--menubars=lucid' '--enable-scrollbars=lucid'
'--enable-dialogs=athena' '--enable-widgets=athena'
'--x-includes=/usr/X11R6/include' '--x-libraries=/usr/X11R6/lib'
'--enable-mule' '--with-xim=xlib' '--with-xfs'
'--enable-clash-detection'
'--with-ldap' '--with-pop' 'CFLAGS=-O2 -march=i586 -mtune=i686
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -Wno-switch -pipe -O2
-march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g
-fno-strict-aliasing' 'LDFLAGS=' 'build_alias=i386-suse-linux'
'host_alias=i386-suse-linux' 'target_alias=i386-suse-linux'
XEmacs 21.5-b21 "corn" (+CVS-20050720) configured for `i386-suse-linux'.
WARNING: --------------------------------------------------------------
WARNING: This was produced from a new autoconf-2.5 based configuration.
WARNING: If this configuration seems buggy then copy etc/configure-2.13
WARNING: to configure and try again. Also please report the bug.
WARNING: --------------------------------------------------------------
Compilation Environment and Installation Defaults:
Source code
location: /usr/src/packages/BUILD/xemacs-21.5.21.20050721
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler version: gcc (GCC) 4.0.2 20050901 (prerelease)
(SUSE Linux)
- GCC specs file: specs.
- Compiler command: gcc -Wall -Wno-switch -Wundef
-Wsign-compare -Wno-char-subscripts -Wpacked -Wunused-parameter -g -O2
-march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall
-Wno-switch -pipe -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing
libc version: 2.3.5
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for Berkeley database.
Compiling in support for GNU DBM.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
- Using XFontSet to provide bilingual menubar.
Compiling in support for Canna on Mule.
Compiling in support for the WNN input method on Mule.
Mail:
Compiling in support for POP mail retrieval.
Compiling in support for "file" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
Load-Path Lisp Shadows:
----------------------
(/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/setnu
/usr/share/xemacs/xemacs-packages/lisp/edit-utils/setnu
/home/su/emacs-extensions/cedet-1.0pre3/eieio/tree
/usr/share/xemacs/xemacs-packages/lisp/eieio/tree
/home/su/emacs-extensions/cedet-1.0pre3/eieio/linemark
/usr/share/xemacs/xemacs-packages/lisp/eieio/linemark
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-tests
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-tests
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-opt
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-opt
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-doc
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-doc
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-speedbar
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-speedbar
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-comp
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-comp
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-base
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-base
/home/su/emacs-extensions/cedet-1.0pre3/eieio/chart
/usr/share/xemacs/xemacs-packages/lisp/eieio/chart
/home/su/emacs-extensions/cedet-1.0pre3/eieio/call-tree
/usr/share/xemacs/xemacs-packages/lisp/eieio/call-tree
/home/su/emacs-extensions/cedet-1.0pre3/eieio/eieio-custom
/usr/share/xemacs/xemacs-packages/lisp/eieio/eieio-custom
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-xref
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-xref
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-wiz
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-wiz
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-widgets
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-widgets
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-which-method
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-which-method
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-util
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-util
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-stat
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-stat
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-run
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-run
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-parse
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-parse
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-parse-class
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-parse-class
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-package
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-package
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-open-source
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-open-source
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-make
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-make
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-jdb
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-jdb
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-javadoc
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-javadoc
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-javadoc-gen
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-javadoc-gen
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-java-grammar
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-java-grammar
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde
/usr/share/xemacs/xemacs-packages/lisp/jde/jde
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-import
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-import
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-imenu
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-imenu
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-java-font-lock
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-java-font-lock
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-gen
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-gen
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-ejb
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-ejb
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-dbs
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-dbs
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-dbo
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-dbo
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-db
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-db
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-help
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-help
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-compile
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-compile
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-complete
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-complete
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-bug
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-bug
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-ant
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-ant
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/efc
/usr/share/xemacs/xemacs-packages/lisp/jde/efc
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/beanshell
/usr/share/xemacs/xemacs-packages/lisp/jde/beanshell
/home/su/emacs-extensions/jde/jde-2.3.5.1/lisp/jde-checkstyle
/usr/share/xemacs/xemacs-packages/lisp/jde/jde-checkstyle
/home/su/emacs-extensions/cedet-1.0pre3/common/working
/usr/share/xemacs/xemacs-packages/lisp/semantic/working
/home/su/emacs-extensions/cedet-1.0pre3/common/sformat
/usr/share/xemacs/xemacs-packages/lisp/semantic/sformat
/home/su/emacs-extensions/cedet-1.0pre3/semantic/senator
/usr/share/xemacs/xemacs-packages/lisp/semantic/senator
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semanticdb
/usr/share/xemacs/xemacs-packages/lisp/semantic/semanticdb
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-util
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-util
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-texi
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-texi
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-sb
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-sb
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-load
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-load
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-imenu
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-imenu
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-ia
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-ia
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-ia-sb
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-ia-sb
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-util-modes
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-util-modes
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-ctxt
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-ctxt
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-chart
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-chart
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-cb
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-cb
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-example
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-example
/home/su/emacs-extensions/cedet-1.0pre3/semantic/document-vars
/usr/share/xemacs/xemacs-packages/lisp/semantic/document-vars
/home/su/emacs-extensions/cedet-1.0pre3/semantic/semantic-analyze
/usr/share/xemacs/xemacs-packages/lisp/semantic/semantic-analyze
/home/su/emacs-extensions/cedet-1.0pre3/semantic/document
/usr/share/xemacs/xemacs-packages/lisp/semantic/document
/usr/share/xemacs/mule-packages/lisp/mule-base/viet-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/viet-util
/usr/share/xemacs/mule-packages/lisp/mule-base/korea-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/korea-util
/usr/share/xemacs/mule-packages/lisp/mule-base/japan-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/japan-util
/usr/share/xemacs/mule-packages/lisp/mule-base/ethio-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/ethio-util
/usr/share/xemacs/mule-packages/lisp/mule-base/cyril-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/cyril-util
/usr/share/xemacs/mule-packages/lisp/mule-base/china-util
/usr/share/xemacs/21.5.21.20050721/lisp/mule/china-util
/usr/share/xemacs/mule-packages/lisp/mule-ucs/unicode
/usr/share/xemacs/21.5.21.20050721/lisp/unicode
/usr/share/xemacs/xemacs-packages/lisp/xemacs-base/regexp-opt
/usr/share/xemacs/21.5.21.20050721/lisp/regexp-opt
/usr/share/xemacs/site-packages/lisp/term/gnome
/usr/share/xemacs/21.5.21.20050721/lisp/gnome
/usr/share/xemacs/xemacs-packages/lisp/xemacs-base/easy-mmode
/usr/share/xemacs/21.5.21.20050721/lisp/easy-mmode
/usr/share/xemacs/xemacs-packages/lisp/build/build-report
/usr/share/xemacs/21.5.21.20050721/lisp/build-report)
Installed XEmacs Packages:
-------------------------
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs info view-less view hyper-apropos xemacsbug shadow
sendmail rfc822 shell comint ring efs-cu dabbrev font xrefactory
pending-del skeleton paren blink-paren font-lock cus-face gnuserv
un-define latin-euro-input quail overlay latin-unity-tables
latin-euro-standards latin-euro-latin10 latin-euro-latin9
latin-euro-latin7 latin-unity-vars latin-unity ispell
latin-euro-latin8 x-compose zenirc-autoloads xwem-autoloads edmacro
xslt-process-autoloads xslide-autoloads xlib-autoloads xetla-autoloads
xemacs-devel-autoloads xemacs-base-autoloads x-symbol-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-autoloads tramp-autoloads tpu-autoloads tm-autoloads
time-autoloads textools-autoloads text-modes-autoloads
texinfo-autoloads supercite-autoloads strokes-autoloads
speedbar-autoloads slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
ruby-modes-autoloads rmail-autoloads riece-autoloads reftex-autoloads
re-builder-autoloads python-modes-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads ocaml-autoloads net-utils-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads liece-autoloads jde-autoloads
ispell-autoloads ilisp-autoloads igrep-autoloads idlwave-autoloads
ibuffer-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads games-autoloads fsf-compat-autoloads
fortran-modes-autoloads forms-autoloads footnote-autoloads
eudc-autoloads eterm-autoloads ess-autoloads eshell-autoloads
escreen-autoloads erc-autoloads emerge-autoloads eieio-autoloads
efs-autoloads edt-autoloads edit-utils-autoloads ediff-autoloads
ediff-hook edebug-autoloads ecrypto-autoloads ecb-autoloads
docbookide-autoloads dired-autoloads dictionary-autoloads
debug-autoloads cookie-autoloads clearcase-autoloads cc-mode-autoloads
calendar-autoloads calc-autoloads c-support-autoloads build-autoloads
bbdb-autoloads auctex-autoloads apel-autoloads ada-autoloads
mule-ucs-autoloads mule-base-autoloads leim-autoloads
latin-unity-autoloads egg-its-autoloads edict-autoloads
modules-autoloads mule-autoloads auto-autoloads disp-table loadhist
rsz-minibuf auto-show fontl-hooks canna-leim tibetan lao devanagari
indian slovenian czech romanian ccl code-cmds gutter-items
menubar-items x-menubar mode-motion mouse behavior itimer auto-save
lisp-mode easymenu easy-mmode iso8859-1 page buff-menu lib-complete
cus-file derived newcomment env text-props frame obsolete cus-start
custom widget cl-extra cl cl-19 packages backquote CANNA wnn unicode
lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar native-sound scrollbar
unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar berkeley-db dbm md5 xemacs xim mule
gutter tiff png gif jpeg xface xpm xbm lisp-float-type file-coding
linux dialog devices window-system base64)
Recent keystrokes:
-----------------
down down down down down down down down down down down
down up up up up up up up up up up up up up up up up
up up up up up up up up up up up up up up up up up
up up up up up up up up up up up up up up up up up
up up up up up up up up up up up up up up up up up
M-ESC down ESC C-g C-x 3 C-x b RET M-x r e p o TAB
r TAB x e TAB RET
Recent messages (most recent first):
-----------------------------------
Warning:
Defaulting to the GNU Emacs-derived `sendmail.el' mail client. This facility,
while part of base XEmacs, is heinously underfeatured, and not going to get
better in the medium term. We include it so that bug reports work without
packages; we suggest that you choose and/or install one of the other mail
clients from packages if you're doing something other than M-x
report-xemacs-bug , or even if you are reporting bugs regularly.
To choose a package from those installed, click on "Options" ->
"Internet" -> "Compose Mail With ..." and decide on one from the
list. Gnus and VM are full-featured and have active user communities.
To disable this warning and stick with the old behavior, you can explicitly
initialize `mail-user-agent' to 'sendmail-user-agent .
Making completion list...
C-M-g not defined.
Quit
Quit
(New file)
Quit
gzip -dc /usr/share/xemacs/info/xemacs.info-4.gz...
gzip -dc /usr/share/xemacs/info/xemacs.info.gz...
Loading info...done
Loading info...
Making completion list...
Making completion list...
Loading view-less...done
Loading view-less...
Making completion list...
Making completion list...
Making completion list...
Making completion list...
Quit