From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#18939: 24.4; middle-click sometimes pastes data other than the PRIMARY selection Date: Sun, 22 Mar 2015 19:33:57 +0100 Message-ID: <550F0B15.5080309@swipnet.se> References: <87k33catpv.fsf@xvii.vinc17.org> <20141116122742.GA7855@xvii.vinc17.org> <20141228150300.GA15474@xvii.vinc17.org> <20150321193528.GB20167@ioooi.vinc17.net> <20150322014257.GI5205@xvii.vinc17.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1427049324 2442 80.91.229.3 (22 Mar 2015 18:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Mar 2015 18:35:24 +0000 (UTC) Cc: 18939-done@debbugs.gnu.org To: Vincent Lefevre , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 22 19:35:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZkiO-0007yj-VB for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 19:35:13 +0100 Original-Received: from localhost ([::1]:52049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZkiO-0008OG-3Z for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Mar 2015 14:35:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZkiK-0008Li-Go for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 14:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZkiF-0007QS-F6 for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 14:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZkiF-0007Q0-Cs for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 14:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YZkiF-0006pV-5z for bug-gnu-emacs@gnu.org; Sun, 22 Mar 2015 14:35:03 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2015 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18939 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security Mail-Followup-To: 18939@debbugs.gnu.org, jan.h.d@swipnet.se, vincent@vinc17.net Original-Received: via spool by 18939-done@debbugs.gnu.org id=D18939.142704924726178 (code D ref 18939); Sun, 22 Mar 2015 18:35:02 +0000 Original-Received: (at 18939-done) by debbugs.gnu.org; 22 Mar 2015 18:34:07 +0000 Original-Received: from localhost ([127.0.0.1]:60928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZkhL-0006oA-6S for submit@debbugs.gnu.org; Sun, 22 Mar 2015 14:34:07 -0400 Original-Received: from mailfe08.swip.net ([212.247.154.225]:57288 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YZkhI-0006nX-Ga for 18939-done@debbugs.gnu.org; Sun, 22 Mar 2015 14:34:05 -0400 X-T2-Spam-Status: No, hits=-0.0 required=5.0 tests=BAYES_40 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 583364905; Sun, 22 Mar 2015 19:33:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <20150322014257.GI5205@xvii.vinc17.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100806 Archived-At: Hi. It seems I introduced this bug when fixing 16382. The analysis that mouse-drag-track has something to do with this is correct, however it is not pop-mark, it is deactivate-mark who sets PRIMARY wrongly sometimes (pop-mark may itself call deactivate-mark). I have checked in a fix in the emacs-24 branch. Jan D. Den 2015-03-22 02:42, Vincent Lefevre skrev: > On 2015-03-21 18:25:01 -0400, Stefan Monnier wrote: >>>> % emacs24 -Q ; That's Debian's Emacs-24.4 >>>> M-< C-k >>>> C-x 5 b *Messages* >>>> drag-mouse-1 [ in *Messages*, to select "information" ] >>> It step 3, it must be another window >> >> With C-x 5 b I did get another window (frame). > > Yes, but this also has the effect to do other operations in > the Emacs process. > >>> (e.g. xterm, or even some other Emacs window at least if it is not the >>> same process). >> >> I haven't tried with another Emacs process, but I did try with an xterm >> and got the same result. >> What do you get if you follow my recipe? > > Emacs behaves correctly in this case. Ditto if I do the > C-x 5 b *Messages* before the M-< C-k. But if the other window > belongs to a different process, the bug occurs. >