GNU bug report logs - #6073
23.1.50; delete-selection-mode

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Sat, 1 May 2010 18:40:02 UTC

Severity: normal

Tags: notabug

Found in version 23.1.50

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6073 in the body.
You can then email your comments to 6073 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6073; Package emacs. (Sat, 01 May 2010 18:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 01 May 2010 18:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; delete-selection-mode
Date: Sat, 01 May 2010 14:38:56 -0400
I found a reproducible test case for the painful result I mentioned
before with C-u C-y in Delete Selection mode.

This Emacs is somewhat old; I have not built a newer one.
I will try to do so soon.

I visit the text between the ---- lines (not including them)
in Fundamental mode, do M-x delete-selection-mode RET to enable it,
then I go to the blank line after the first paragraph and type
C-SPC C-u C-n M-w C-x C-x C-u C-y
and the text does not change.  Apparently C-u C-y deletes
the region before yanking.

----------------------------------------------------------------------

* ACTA must respect sharing and cooperation: it must do nothing that
  would hinder the unremunerated noncommercial making, copying,
  giving, lending, owning, using, transporting, importing or exporting
  of any objects or works.

* ACTA must not weasel about what is commercial: no labeling of any
  noncommercial activities as somehow commercial-like or treating them
  as if they were commercial.

* ACTA must not tighten digital handcuffs: it must not hinder any
  activity in regard to any product on account of its capacity to
  circumvent technical measures that restrict use of copies of works
  of authorship.
----------------------------------------------------------------------




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6073; Package emacs. (Sat, 01 May 2010 20:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 6073 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <rms <at> gnu.org>, <6073 <at> debbugs.gnu.org>
Subject: RE: bug#6073: 23.1.50; delete-selection-mode
Date: Sat, 1 May 2010 13:07:05 -0700
> I found a reproducible test case for the painful result I mentioned
> before with C-u C-y in Delete Selection mode.
> 
> This Emacs is somewhat old; I have not built a newer one.
> I will try to do so soon.
> 
> I visit the text between the ---- lines (not including them)
> in Fundamental mode, do M-x delete-selection-mode RET to enable it,
> then I go to the blank line after the first paragraph and type
> C-SPC C-u C-n M-w C-x C-x C-u C-y
> and the text does not change.  Apparently C-u C-y deletes
> the region before yanking.
> 
> ----------------------------------------------------------------------
> 
> * ACTA must respect sharing and cooperation: it must do nothing that
>   would hinder the unremunerated noncommercial making, copying,
>   giving, lending, owning, using, transporting, importing or exporting
>   of any objects or works.
> 
> * ACTA must not weasel about what is commercial: no labeling of any
>   noncommercial activities as somehow commercial-like or treating them
>   as if they were commercial.
> 
> * ACTA must not tighten digital handcuffs: it must not hinder any
>   activity in regard to any product on account of its capacity to
>   circumvent technical measures that restrict use of copies of works
>   of authorship.
> ----------------------------------------------------------------------

You probably already know this, but in case you do not: C-x C-x activates the
region. Since it is active, your yank replaces the region text.

If you do C-g after C-x C-x I think you will get the behavior you expected.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6073; Package emacs. (Sun, 02 May 2010 01:00:03 GMT) Full text and rfc822 format available.

Message #11 received at 6073 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: rms <at> gnu.org, 6073 <at> debbugs.gnu.org
Subject: Re: bug#6073: 23.1.50; delete-selection-mode
Date: Sat, 01 May 2010 20:59:53 -0400
> You probably already know this, but in case you do not: C-x C-x activates the
> region.  Since it is active, your yank replaces the region text.

Indeed.

> If you do C-g after C-x C-x I think you will get the behavior you expected.

Better is to use C-u C-x C-x, which contrary to C-x C-x doesn't activate
the region.


        Stefan






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6073; Package emacs. (Sun, 02 May 2010 18:47:02 GMT) Full text and rfc822 format available.

Message #14 received at 6073 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 6073 <at> debbugs.gnu.org
Subject: Re: bug#6073: 23.1.50; delete-selection-mode
Date: Sun, 02 May 2010 14:46:24 -0400
    You probably already know this, but in case you do not: C-x C-x activates the
    region. Since it is active, your yank replaces the region text.

Yes, I know that is the explanation for what happened.
The point is, it was quite inconvenient.  And it surprised
me that C-y would delete the region.




Added tag(s) notabug. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 21 Sep 2011 19:47:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 6073 <at> debbugs.gnu.org and rms <at> gnu.org Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 21 Sep 2011 19:47:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6073; Package emacs. (Wed, 21 Sep 2011 19:57:01 GMT) Full text and rfc822 format available.

Message #21 received at 6073 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: rms <at> gnu.org
Cc: 6073 <at> debbugs.gnu.org
Subject: Re: bug#6073: 23.1.50; delete-selection-mode
Date: Wed, 21 Sep 2011 21:42:37 +0200
Richard Stallman <rms <at> gnu.org> writes:

>     You probably already know this, but in case you do not: C-x C-x
> activates the
>     region. Since it is active, your yank replaces the region text.
>
> Yes, I know that is the explanation for what happened.
> The point is, it was quite inconvenient.  And it surprised
> me that C-y would delete the region.

This is apparently intended behaviour in Emacs 24, so I'm closing this
bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 20 Oct 2011 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.