From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Tim Van Holder <tim.vanholder@gmail.com>
Newsgroups: gmane.emacs.bugs
Subject: bug#6637: 24.0.50; kill ring being seriously polluted
Date: Sat, 17 Jul 2010 17:32:36 +0200
Message-ID: <AANLkTim6hVaSeBHmAGMiLpxCrp8qMdqP4KiaWYtxS0Ox@mail.gmail.com>
References: <87oce986yu.fsf@leeloo.anubex.internal>
	<87mxts970k.fsf@stupidchicken.com>
	<AANLkTinUismAPz65adOeGb6XjDOn-zKrb_2VTrSdGp2S@mail.gmail.com>
	<87bpa7zagi.fsf@stupidchicken.com>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: dough.gmane.org 1279382566 18296 80.91.229.12 (17 Jul 2010 16:02:46 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Sat, 17 Jul 2010 16:02:46 +0000 (UTC)
Cc: 6637@debbugs.gnu.org
To: Chong Yidong <cyd@stupidchicken.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 17 18:02:42 2010
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.69)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1Oa9qX-0003uh-Om
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jul 2010 18:02:38 +0200
Original-Received: from localhost ([127.0.0.1]:57959 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1Oa9qW-0001LG-3U
	for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jul 2010 12:02:36 -0400
Original-Received: from [140.186.70.92] (port=36346 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Oa9oU-0000ic-Jr
	for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2010 12:00:32 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Oa9oT-0006KI-8O
	for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2010 12:00:30 -0400
Original-Received: from debbugs.gnu.org ([140.186.70.43]:38502)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Oa9oT-0006KD-6f
	for bug-gnu-emacs@gnu.org; Sat, 17 Jul 2010 12:00:29 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1Oa9Nu-0001QS-0y; Sat, 17 Jul 2010 11:33:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Tim Van Holder <tim.vanholder@gmail.com>
Original-Sender: debbugs-submit-bounces@debbugs.gnu.org
Resent-To: owner@debbugs.gnu.org
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 17 Jul 2010 15:33:01 +0000
Resent-Message-ID: <handler.6637.B6637.12793807455472@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 6637
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
Original-Received: via spool by 6637-submit@debbugs.gnu.org id=B6637.12793807455472
	(code B ref 6637); Sat, 17 Jul 2010 15:33:01 +0000
Original-Received: (at 6637) by debbugs.gnu.org; 17 Jul 2010 15:32:25 +0000
Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1Oa9NH-0001QB-P1
	for submit@debbugs.gnu.org; Sat, 17 Jul 2010 11:32:25 -0400
Original-Received: from mail-bw0-f44.google.com ([209.85.214.44])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <tim.vanholder@gmail.com>) id 1Oa9NF-0001Q3-MM
	for 6637@debbugs.gnu.org; Sat, 17 Jul 2010 11:32:22 -0400
Original-Received: by bwz7 with SMTP id 7so1877927bwz.3
	for <6637@debbugs.gnu.org>; Sat, 17 Jul 2010 08:32:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:received:in-reply-to
	:references:date:message-id:subject:from:to:cc:content-type
	:content-transfer-encoding;
	bh=Y9yNJflT5IXeVzQFJud2Aczk/5l9cKVagADgiLqQCSM=;
	b=qAXoiZE403afk9pTBdOLKD6AVXQdm8lR2rY15ClqfI/yS7BC3r17WQafaMpsaxFJKY
	qVRyEI6IqQ/DWHk8jnIRwCfzbV4YTgLppXtZx5utl/1Bdioi9vB1ZA4Oz6DIvKMsB43m
	y2CQDHCLimumlZgHunbLRUI2IhZC+qCuYP7Fg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	b=rcPkZ+rNwphDhzj/jTOSQ6PA2JHJduwb2S28MgRVpViCQmp82gh+Mft9jxbvHSeRO9
	mG886ByFiZu3aqJCGuWsbUgbaClbFz5WqisqfEuo5mZVD4UpXPxt3vfiMx0VERfLkKSx
	rmNeLzzrxh2gjCdNeE5TKkNzUoXVspH5qVz3w=
Original-Received: by 10.204.178.146 with SMTP id bm18mr2026543bkb.99.1279380756676; 
	Sat, 17 Jul 2010 08:32:36 -0700 (PDT)
Original-Received: by 10.204.65.77 with HTTP; Sat, 17 Jul 2010 08:32:36 -0700 (PDT)
In-Reply-To: <87bpa7zagi.fsf@stupidchicken.com>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Resent-Date: Sat, 17 Jul 2010 11:33:02 -0400
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.bugs:38633
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/38633>

On 16 July 2010 17:57, Chong Yidong <cyd@stupidchicken.com> wrote:
> Tim Van Holder <tim.vanholder@gmail.com> writes:
>
>> 1) emacs -Q
>> 2) Holding the shift key, press the up arrow until you're at the top
>> of the buffer
>> 3) Release the shift key and press the down arrow until you're back at
>> the bottom of the buffer
>> 4) Press C-y
>>
>> This yanks in the comment lines, even though I at no point requested a
>> kill or copy-as-kill.
>
> Go to any X application (firefox, etc) with a text field.
> Holding shift, press the arrow keys and select some text.
> Release shift, and press another down arrow to deselect it.
>
> In Emacs 23 (in the absence of latest changes):
>
> Run `emacs -Q'.
> C-y
>
> The text you selected is yanked into the buffer. =C2=A0This is because th=
e
> other X application put your selected text in the primary selection.
> How is the behavior of Emacs' new shift selection different from the
> other X application's shift selection?

I generally spend all my time in Emacs, so I don't know/care very much
about the behaviour of other X applications (especially with the way
I'm running Emacs these days, it tends to be the only X app running).
All I know is I have been selecting text in Emacs for a long time and
it has never appeared in the kill ring (maybe because of
pc-selection-mode, I don't know).
I do expect to be able to yank text copied from other applications,
and I do expect to be able to paste stuff elsewhere that I've
copied/killed in Emacs; and this has so far always been the case.

The following is something I do a lot as part of code editing:
 1) copy/kill something
 2) yank the copied/kill text
 3) select certain portions and replace them as needed for that copy
 4) go back to step 2) if needed
The new behaviour interferes with this (and I don't see how it can do
anything but interfere when pc-selection-mode is active).

Look, if most people are happy with the new behaviour then fine, make
it the default. But I'd still want a customizable option to disable it
(or for it to be automatically disabled when pc-selection-mode is
active).
Given that there is a pc-selection-mode, perhaps this new behaviour
could be made an x-selection-mode, giving people the choice of which
behaviour they want.