From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ole Laursen" Newsgroups: gmane.emacs.bugs Subject: bug#1765: Copy/paste inconsistent with other X apps Date: Mon, 5 Jan 2009 13:52:17 +0100 Message-ID: References: Reply-To: Ole Laursen , 1765@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231160698 1649 80.91.229.12 (5 Jan 2009 13:04:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 13:04:58 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 14:06:08 2009 Return-path: 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.50) id 1LJp8s-0001jC-Dn for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 14:05:30 +0100 Original-Received: from localhost ([127.0.0.1]:52997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJp7c-0007mt-SA for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 08:03:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJp7B-0007k2-5w for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 08:03:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJp79-0007jI-JN for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 08:03:28 -0500 Original-Received: from [199.232.76.173] (port=54112 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJp79-0007j8-Dz for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 08:03:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48876) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LJp78-0004yR-KZ for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 08:03:27 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05D3OP6007222; Mon, 5 Jan 2009 05:03:24 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n05D022q006063; Mon, 5 Jan 2009 05:00:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Ole Laursen" Original-Sender: ole.laursen@gmail.com Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 05 Jan 2009 13:00:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1765 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12311599504722 (code B ref -1); Mon, 05 Jan 2009 13:00:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jan 2009 12:52:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n05CqMuo004716 for ; Mon, 5 Jan 2009 04:52:23 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJowP-00048v-OA for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 07:52:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJowN-00048L-FG for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 07:52:20 -0500 Original-Received: from [199.232.76.173] (port=48735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJowN-00048H-48 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 07:52:19 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.241]:36203) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LJowM-0002yj-N7 for bug-gnu-emacs@gnu.org; Mon, 05 Jan 2009 07:52:18 -0500 Original-Received: by an-out-0708.google.com with SMTP id c38so2325157ana.21 for ; Mon, 05 Jan 2009 04:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=6cclubar+6Hr82qfl0oebuABEhBzBmvxhGI52hu7ig0=; b=lT3ygXRgMqrHsLobs1JZAsUQFNSWr9fXeDo5OHg1qLQlrdkUaTCPP74Fy511SBbFp8 GtYUcOjkkddQfjkNhrzKn7Zp7kyO9/A+ClqWIMm2GnFBOxP58TRyS/dnVriXE8IeBn8x 5KAM9Qjj+MykhuWDGmKphqyZYSHZ+ENF0ntKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=TLCer/EZLZKd3PuIk9HrEsMn80VdGkTOQoHcy3p/RtoEFSdM07z2WwgFPJOg0l/TBl iXOaNeYzWEJSHAVC37Xq8vu2ne3gPOlWI/FmUv2EoDHfI18/daFaxeW1icWj4hg3Y2V+ 0JylZbNyf+o8ZQLAH54BZYs2mmdSFMosDvSJE= Original-Received: by 10.100.178.9 with SMTP id a9mr11005772anf.59.1231159937879; Mon, 05 Jan 2009 04:52:17 -0800 (PST) Original-Received: by 10.100.127.20 with HTTP; Mon, 5 Jan 2009 04:52:17 -0800 (PST) In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 112cad4e62e1acfb X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 05 Jan 2009 08:03:28 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:23789 Archived-At: 2009/1/4 Richard M Stallman : > However, my Emacs 22.2.1 (started with emacs -Q) is confusing the two. > If I kill-ring-save "foo", select "bar" with the mouse and yank I get > "bar" instead of "foo". With the above spec, I should have gotten > "bar" only if I pressed M-w before yanking. > > This is a very useful feature. It means, for instance, that you can use > C-y in Emacs to insert text that was selected in other apps. But the thing is that this goes against the defacto standard - and it is there for good reasons. Standard paste/yank always only inserts text that was explicitly copied to the clipboard. If you read this short document http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki it's very clear on this. The problem with not following the spec is that text selections are used for a lot of stuff. If I patiently select a piece of text with the mouse and press C-c, I expect to be able use that piece of text later - even if I have selected another piece of text, or just clicked an input field with automatic text selection. Imagine having the kill ring filled up with random stuff every time you press C-space and move the cursor. That's what Emacs is currently doing with clips from other programs. -- Ole Laursen http://people.iola.dk/olau/