Subject: bug#8424: 24.0.50; Fundamental-mode uncomment-region not working

From: Rares Vernica <[email-masked]>
Date: Mon, 04 Apr 2011 09:50:56 -0700

1. M-x fundamental-mode
2. Type:
<tab>1
<tab>1
3. Select the two lines.
4. M-x comment-region
5. Use "//" to comment
6. Result:
<tab>// 1
<tab>// 1
7. Select the two lines again.
8. M-x uncomment-region
uncomment-region-default: Can't find the comment end

In GNU Emacs 24.0.50.1 (sparc-sun-solaris2.10, X toolkit)
 of 2010-12-31 on godzilla
Windowing system distributor `The X.Org Foundation', version 11.0.10900000
configured using `configure  '--prefix=/home/rares/usr' '--exec-prefix=/home/rares/usr/sparc/SunOS/5.10' '--with-gif=no''

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: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  delete-selection-mode: t
  pc-selection-mode: t
  show-paren-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<mouse-1> <double-down-mouse-1> <mouse-movement> <mouse-movement> 
<double-drag-mouse-1> <right> <down> <down> <down> 
<left> <up> <down> C-g <right> <return> <return> <return> 
<down-mouse-2> <mouse-2> C-/ <down-mouse-1> <down-mouse-3> 
<mouse-3> <mouse-1> <down-mouse-2> <mouse-2> <return> 
<return> <down-mouse-1> <mouse-movement> <mouse-movement> 
<drag-mouse-1> <down-mouse-1> <mouse-movement> <mouse-1> 
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> 
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> C-w 
C-x b g r <return> g g C-x 5 0 C-x 5 0 g <down> <down> 
<down> <down> SPC S W <up> <up> <end> <up> <return> 
<return> <up> B u n a SPC A t M-/ <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> M-/ 
M-/ , <return> <return> U i t e SPC a m SPC a j u n 
s SPC l a SPC o f f i c e . SPC P o t i SPC s a SPC 
m a SPC s u n i SPC c a n d SPC a i SPC t i m p . <return> 
<return> M e r c i , <return> R a r e s C-c C-c x E 
<up> E q SPC q g g <up> <up> <up> SPC ! q g C-x C-g 
C-x C-f ~ / <backspace> <backspace> / t m p / c <return> 
1 <backspace> 1 <return> <tab> 1 <backspace> 2 <return> 
<tab> 2 <return> <tab> <tab> 3 <return> <tab> 3 <return> 
<tab> 3 <up> <up> <up> <up> C-a C-SPC C-n C-n M-x c 
o m <tab> m <tab> e <tab> r e <tab> <return> / / <return> 
C-SPC C-p C-p M-x <up> <up> <down> C-k u n c o m <tab> 
<return> C-g M-x b u g <tab> <tab> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> r e <tab> p <tab> o <tab> r 
<tab> e m <tab> <return> b u <tab> <return>

Recent messages:
Reading active file from server via nnmairix...done
Checking new news...done
Auto-saving...
(New file)
Mark set
Making completion list... [2 times]
Mark set
uncomment-region-default: Can't find the comment end
Quit
Making completion list... [5 times]

Load-path shadows:
/home/rares/usr/share/emacs/site-lisp/org-w3m hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-w3m
/home/rares/usr/share/emacs/site-lisp/org-mhe hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-mhe
/home/rares/usr/share/emacs/site-lisp/org-remember hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-remember
/home/rares/usr/share/emacs/site-lisp/org-mac-message hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-mac-message
/home/rares/usr/share/emacs/site-lisp/org hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org
/home/rares/usr/share/emacs/site-lisp/org-plot hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-plot
/home/rares/usr/share/emacs/site-lisp/org-compat hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-compat
/home/rares/usr/share/emacs/site-lisp/org-exp-blocks hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-exp-blocks
/home/rares/usr/share/emacs/site-lisp/org-icalendar hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-icalendar
/home/rares/usr/share/emacs/site-lisp/org-protocol hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-protocol
/home/rares/usr/share/emacs/site-lisp/org-vm hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-vm
/home/rares/usr/share/emacs/site-lisp/org-irc hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-irc
/home/rares/usr/share/emacs/site-lisp/org-macs hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-macs
/home/rares/usr/share/emacs/site-lisp/org-list hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-list
/home/rares/usr/share/emacs/site-lisp/org-bbdb hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-bbdb
/home/rares/usr/share/emacs/site-lisp/org-agenda hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-agenda
/home/rares/usr/share/emacs/site-lisp/org-mouse hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-mouse
/home/rares/usr/share/emacs/site-lisp/org-install hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-install
/home/rares/usr/share/emacs/site-lisp/org-docbook hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-docbook
/home/rares/usr/share/emacs/site-lisp/org-info hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-info
/home/rares/usr/share/emacs/site-lisp/org-feed hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-feed
/home/rares/usr/share/emacs/site-lisp/org-xoxo hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-xoxo
/home/rares/usr/share/emacs/site-lisp/org-indent hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-indent
/home/rares/usr/share/emacs/site-lisp/org-jsinfo hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-jsinfo
/home/rares/usr/share/emacs/site-lisp/org-src hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-src
/home/rares/usr/share/emacs/site-lisp/org-timer hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-timer
/home/rares/usr/share/emacs/site-lisp/org-html hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-html
/home/rares/usr/share/emacs/site-lisp/org-wl hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-wl
/home/rares/usr/share/emacs/site-lisp/org-mew hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-mew
/home/rares/usr/share/emacs/site-lisp/org-rmail hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-rmail
/home/rares/usr/share/emacs/site-lisp/org-attach hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-attach
/home/rares/usr/share/emacs/site-lisp/org-ascii hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-ascii
/home/rares/usr/share/emacs/site-lisp/org-crypt hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-crypt
/home/rares/usr/share/emacs/site-lisp/org-exp hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-exp
/home/rares/usr/share/emacs/site-lisp/org-archive hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-archive
/home/rares/usr/share/emacs/site-lisp/org-inlinetask hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-inlinetask
/home/rares/usr/share/emacs/site-lisp/org-habit hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-habit
/home/rares/usr/share/emacs/site-lisp/org-publish hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-publish
/home/rares/usr/share/emacs/site-lisp/org-footnote hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-footnote
/home/rares/usr/share/emacs/site-lisp/org-freemind hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-freemind
/home/rares/usr/share/emacs/site-lisp/org-colview hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-colview
/home/rares/usr/share/emacs/site-lisp/org-mobile hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-mobile
/home/rares/usr/share/emacs/site-lisp/org-latex hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-latex
/home/rares/usr/share/emacs/site-lisp/org-faces hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-faces
/home/rares/usr/share/emacs/site-lisp/org-id hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-id
/home/rares/usr/share/emacs/site-lisp/org-bibtex hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-bibtex
/home/rares/usr/share/emacs/site-lisp/org-gnus hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-gnus
/home/rares/usr/share/emacs/site-lisp/org-clock hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-clock
/home/rares/usr/share/emacs/site-lisp/org-datetree hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-datetree
/home/rares/usr/share/emacs/site-lisp/org-table hides /home/rares/usr/share/emacs/24.0.50/lisp/org/org-table

Features:
(shadow emacsbug calccomp calc-misc calc-arith calc-ext calc-aent tmm
electric nnagent etags gnus-topic sh-script executable tabify org-table
calc-menu calc calc-loaddefs calc-macs cc-mode cc-fonts cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs dan-oper python-21 python
cal-china lunar solar cal-dst cal-persia cal-coptic cal-mayan cal-bahai
cal-french cal-islam cal-hebrew cal-julian org-colview help-mode view
ps-mule ps-print ps-def lpr gnus-draft org-archive diary-lib
diary-loaddefs cal-iso dabbrev bbdb-hooks multi-isearch bookmark pp
parse-time cal-move cal-menu calendar cal-loaddefs flow-fill mailalias
smtpmail ispell newcomment mule-util w3m-form w3m-symbol w3m browse-url
doc-view jka-compr image-mode dired w3m-hist w3m-fb w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util qp sort smiley ansi-color
gnus-cite gnus-async gnus-bcklg gnus-ml disp-table nndraft nnmh
bbdb-gnus bbdb-snarf mail-extr bbdb-com cl gnus-agent gnus-srvr
gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 pgg
pgg-parse pgg-def epg-config mm-view smime password-cache dig nntp
proto-stream starttls gnus-cache nnmairix nnml nnir gnus-sum macroexp
gnus-group gnus-undo nnmail mail-source format-spec nnoo gnus-start
gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win
gnus gnus-ems nnheader mail-utils wid-edit vc-dispatcher vc-svn org-wl
org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs
org-html org-exp org-exp-blocks org-agenda org-info org-gnus org-bibtex
server trac-wiki url-http tls url-auth mail-parse rfc2231 rfc2047
rfc2045 ietf-drums url-gw xml-rpc url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util url-parse auth-source netrc
gnus-util url-vars mm-util mail-prsvr mailcap xml compile comint ring
w3m-load remember org-remember org-datetree org-bbdb org byte-opt
warnings bytecomp byte-compile advice help-fns advice-preload
org-footnote org-src org-list org-faces org-compat org-macs time-date
noutline outline easy-mmode bbdb-autoloads bbdb regexp-opt timezone
hideshow easymenu delsel pc-select paren iswitchb tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dynamic-setting
x-toolkit x multi-tty emacs)