unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* uncomment region bug
@ 2005-11-17  5:21 Chong Yidong
  2005-11-19 16:15 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2005-11-17  5:21 UTC (permalink / raw)


Uncomment-region lops off a couple characters when the region is flush
against the end of the buffer.

  1. Make an Emacs Lisp Mode buffer containing just  ;; foo[EOB]
  2. M-<
  3. C-SPC
  4. M->
  5. M-x uncomment-region

Result:

  f[EOB]

The function `comment-enter-backward' seems to be doing some very
strange things here; too strange for me to understand.

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

* Re: uncomment region bug
  2005-11-17  5:21 uncomment region bug Chong Yidong
@ 2005-11-19 16:15 ` Stefan Monnier
  2005-11-20 18:44   ` Chong Yidong
  2005-11-20 22:53   ` Chong Yidong
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Monnier @ 2005-11-19 16:15 UTC (permalink / raw)
  Cc: emacs-devel

> Uncomment-region lops off a couple characters when the region is flush
> against the end of the buffer.

I believe I've just fixed it,


        Stefan

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

* Re: uncomment region bug
  2005-11-19 16:15 ` Stefan Monnier
@ 2005-11-20 18:44   ` Chong Yidong
  2005-11-20 22:53   ` Chong Yidong
  1 sibling, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2005-11-20 18:44 UTC (permalink / raw)
  Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Uncomment-region lops off a couple characters when the region 
   is flush
>> against the end of the buffer.
>
> I believe I've just fixed it,

I still see it happening.  I'm guessing you haven't checked in the
fix?

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

* Re: uncomment region bug
  2005-11-19 16:15 ` Stefan Monnier
  2005-11-20 18:44   ` Chong Yidong
@ 2005-11-20 22:53   ` Chong Yidong
  2005-11-20 23:26     ` Stefan Monnier
  1 sibling, 1 reply; 5+ messages in thread
From: Chong Yidong @ 2005-11-20 22:53 UTC (permalink / raw)
  Cc: emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Uncomment-region lops off a couple characters when the region is flush
>> against the end of the buffer.
>
> I believe I've just fixed it,

OK, I see the fix now.  Unfortunately, C mode uncommenting seems
borked.

  1. emacs -q
  2. M-x c-mode
  3. Make the buffer containing just

           /* a */[NEWLINE][EOB]

  4. M-< C-SPC M-> M-x uncomment-region

Result:

           a */[NEWLINE][EOB]

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

* Re: uncomment region bug
  2005-11-20 22:53   ` Chong Yidong
@ 2005-11-20 23:26     ` Stefan Monnier
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2005-11-20 23:26 UTC (permalink / raw)
  Cc: emacs-devel

>>> Uncomment-region lops off a couple characters when the region is flush
>>> against the end of the buffer.
>> I believe I've just fixed it,
> OK, I see the fix now.  Unfortunately, C mode uncommenting seems
> borked.

Duh!  Should be fixed as well now.
Thank you,


        Stefan

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

end of thread, other threads:[~2005-11-20 23:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17  5:21 uncomment region bug Chong Yidong
2005-11-19 16:15 ` Stefan Monnier
2005-11-20 18:44   ` Chong Yidong
2005-11-20 22:53   ` Chong Yidong
2005-11-20 23:26     ` 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).