From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Mouse copy/paste problem? Date: Sat, 23 Jun 2012 11:57:23 +0200 Message-ID: <4FE59303.9040008@alice.it> References: <4FE4DBE3.9080201@alice.it> <83y5nebizq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340445460 22612 80.91.229.3 (23 Jun 2012 09:57:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2012 09:57:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 23 11:57:38 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SiN62-0005HQ-Gh for ged-emacs-devel@m.gmane.org; Sat, 23 Jun 2012 11:57:38 +0200 Original-Received: from localhost ([::1]:54176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiN62-0005oa-C7 for ged-emacs-devel@m.gmane.org; Sat, 23 Jun 2012 05:57:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiN5y-0005oV-OS for emacs-devel@gnu.org; Sat, 23 Jun 2012 05:57:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SiN5x-0000US-3X for emacs-devel@gnu.org; Sat, 23 Jun 2012 05:57:34 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:59317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SiN5u-0000Tw-By; Sat, 23 Jun 2012 05:57:30 -0400 Original-Received: from [192.168.1.101] (80.183.93.134) by smtp209.alice.it (8.6.023.02) id 4EF08A631503F734; Sat, 23 Jun 2012 11:57:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <83y5nebizq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.105 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151107 Archived-At: Il 23/06/2012 9.11, Eli Zaretskii ha scritto: >> Date: Fri, 22 Jun 2012 22:56:03 +0200 >> From: Angelo Graziosi >> >> Just for completeness... >> >> With trunk, at least > 108548 (june 10, 2012), copy/pasting with mouse >> doesn't seem to work. To reproduce: >> >> emacs -Q & >> >> In the "scratch" buffer double click on the word "then" (start 3rd row). >> Then move to the end of the row, i.e. after "buffer." and paste with >> mouse-2 (wheel). It pastes "then enter the text in that file's own >> buffer." and not "then". Repeating several tries, it never pastes >> correctly but garbage. The same happens if one select the words dragging >> the mouse. With trunk 108548 (the last revision I have backed up) it >> works fine. >> >> This happens with trunk builds on GNU/Linux (K)Ubuntu 12.04, Fedora 16, >> and on Cygwin. > > Doesn't happen in the native Windows build of revno 108682. But the > native Windows build doesn't have a real primary selection, so I'm not > sure this is relevant. > Maybe this change is the culprit? lisp/ChangeLog: 2012-06-13 Chong Yidong * mouse.el (mouse-drag-track): Do not set the mark if the user releases the mouse without selecting anything (Bug#11588). I guess this because: emacs -Q & Now in the "scratch" buffer I select the word "then" at the start of 3rd row *holding down* the SHIF key and moving with right arrow, i.e. not using mouse. Then with mouse-1 I go to the end of "buffer.". Clicking with mouse-2 (wheel) I get "then enter the text in that file's own buffer." pasted. Instead, if I move at the end of "buffer." with arrow key and there I paste with mouse-2, I correctly get "then". In other words, if I use the mouse *only* for pasting and not for select the text and moving the pointer, I get the right behavior. Ciao, Angelo.