unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* uncomment-region bug
@ 2005-11-13 21:55 kraemer
  2005-11-14 16:16 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: kraemer @ 2005-11-13 21:55 UTC (permalink / raw)



[-- Attachment #1.1.1: Type: text/plain, Size: 583 bytes --]


to reproduce:

  -  open emacs
  -  emacs-lisp-mode
  -  end-of-buffer
  -  type ";; abcde"
  -  set-mark-command
  -  beginning-of-line
  -  uncomment-region


I've only seen the effect when uncommenting a region that is at the  
very end of the buffer.

- In "GNU Emacs 21.2.1 (powerpc-apple-darwin8.0) of 2005-05-11 on  
nic.mit.edu":
     "Can't find the comment end."

- In "GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0)of 2005-10-09 on  
quartet.local"
     strange behavior -- the line that is left is just "abc" -- the  
"de" is gone!


kraemer

-----



kraemer

-----



[-- Attachment #1.1.2: Type: text/html, Size: 4014 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 3800 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

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

* Re: uncomment-region bug
  2005-11-13 21:55 uncomment-region bug kraemer
@ 2005-11-14 16:16 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-11-14 16:16 UTC (permalink / raw)


kraemer wrote:
 > to reproduce:
 >
 >  -  open emacs
 >  -  emacs-lisp-mode
 >  -  end-of-buffer
 >  -  type ";; abcde"
 >  -  set-mark-command
 >  -  beginning-of-line
 >  -  uncomment-region
 >
 >
 > I've only seen the effect when uncommenting a region that is at the very
 > end of the buffer.

Yes, if there's a newline after "abcde" it works fine.

 > - In "GNU Emacs 21.2.1 (powerpc-apple-darwin8.0) of 2005-05-11 on
 > nic.mit.edu":
 >     "Can't find the comment end."

The bug is that the call to (forward-comment 1) in comment-forward moves
point to the end of the comment but returns nil instead of t.

 > - In "GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.2.0)of 2005-10-09 on
 > quartet.local"
 >     strange behavior -- the line that is left is just "abc" -- the "de"
 > is gone!

-- 
Kevin

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

end of thread, other threads:[~2005-11-14 16:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13 21:55 uncomment-region bug kraemer
2005-11-14 16:16 ` Kevin Rodgers

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