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: Fri, 7 Aug 2009 21:31:39 +0200 Message-ID: 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 1249674470 11914 80.91.229.12 (7 Aug 2009 19:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 19:47:50 +0000 (UTC) To: 1765@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 21:47:43 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 1MZVPi-0004co-Cb for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 21:47:43 +0200 Original-Received: from localhost ([127.0.0.1]:41363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZVPg-0000Zb-V5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 15:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZVPC-00084G-8c for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 15:47:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZVP6-0007vM-Cb for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 15:47:09 -0400 Original-Received: from [199.232.76.173] (port=49361 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZVP6-0007v9-0d for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 15:47:04 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:21907) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZVP4-0003TV-TR for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 15:47:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZVP1-0003n5-GG for bug-gnu-emacs@gnu.org; Fri, 07 Aug 2009 15:46:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n77JkmVw026801; Fri, 7 Aug 2009 12:46:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n77Je4Xq026110; Fri, 7 Aug 2009 12:40:04 -0700 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: Fri, 07 Aug 2009 19:40:04 +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 1765-submit@emacsbugs.donarmstrong.com id=B1765.124967350725575 (code B ref 1765); Fri, 07 Aug 2009 19:40:04 +0000 Original-Received: (at 1765) by emacsbugs.donarmstrong.com; 7 Aug 2009 19:31:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n77JVj5f025570 for <1765@emacsbugs.donarmstrong.com>; Fri, 7 Aug 2009 12:31:46 -0700 Original-Received: by bwz19 with SMTP id 19so1663281bwz.13 for <1765@emacsbugs.donarmstrong.com>; Fri, 07 Aug 2009 12:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=pPhmBw5Vg+yHHodgSQ0Pt3v9kFOUd41uSOVqXBbTqKE=; b=QeYkC8KBpVMAem7sdTeScS4ndyXI/X0BR6BxEHFDVUIzLPod1/4+n93EuSL0FvFHAH Yxix4sc/NCAq3iWR+0idPPtoWxmigF/cVbICcMHlzZtgeqOLqm2PItSgfmaT9/EhdpE0 +q7ysMrQhmgwwqTtZDPF87FNtu+T/J4f6LBg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=WVCJe2c75fkJGKm46G42E7rsopI5//Agj100Wavl47GbztynXNuA9DXEauRZBOeZNC mWkEsFXr2HL9Y19BcX0qP4t8kJd/WrBN+/JRIAcORF7abZ8YBvm3PqKuYtK9Zn9Z7bGo AUbLuTNHg2agXzMiqyv8zqmtZNb3yGU6FiNAE= Original-Received: by 10.204.124.19 with SMTP id s19mr3527164bkr.6.1249673499143; Fri, 07 Aug 2009 12:31:39 -0700 (PDT) X-Google-Sender-Auth: e6c47041143acb79 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Resent-Date: Fri, 07 Aug 2009 15:47:09 -0400 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:29971 Archived-At: I just got Emacs 23 on my Debian system - nice work! However, it seems the algorithm has changed? Or maybe I just didn't test it correctly last time. With x-select-enable-clipboard at t, you can do the following sequence: 1. Select "foo" in Firefox, copy it with C-c. 2. Select "bar" in Firefox with the mouse. 3. Switch to Emacs and hit C-y and get "foo" as mandated by the spec (great!). However, if you switch back to Firefox and select "apples", then switch to Emacs and hit C-y, you now get "apples" instead of "foo"? I tried setting x-select-enable-primary to nil, but then middle-mouse is broken and selecting something in Emacs with the mouse doesn't put it in primary. I did try the suggestion in the updated docstring for select-active-regions, but it didn't quite work, maybe because select-active-regions was broken before the patch. The automagic going on in the relevant function confuses me, but maybe that's because it's written with the old behaviour in mind (no difference between primary/clipboard) with these options being bolted on afterwards. It appears to me that it's lacking a dont-use-selection-when-yanking-and-kill-ring-when-inserting setting, then the two x-select-enable-* could be left at true. -- Ole Laursen http://people.iola.dk/olau/