From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: drag events should be defined as a movement to a different buffer position (Bug 9186) Date: Sun, 21 Aug 2011 11:58:33 +0200 Message-ID: <4E50D6C9.9080307@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313920730 25190 80.91.229.12 (21 Aug 2011 09:58:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Aug 2011 09:58:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andrew Schein Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 21 11:58:46 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qv4nk-0006w5-N3 for ged-emacs-devel@m.gmane.org; Sun, 21 Aug 2011 11:58:44 +0200 Original-Received: from localhost ([::1]:36448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv4nk-0005xX-BU for ged-emacs-devel@m.gmane.org; Sun, 21 Aug 2011 05:58:44 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv4ni-0005xS-M7 for emacs-devel@gnu.org; Sun, 21 Aug 2011 05:58:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qv4ng-00027m-Lw for emacs-devel@gnu.org; Sun, 21 Aug 2011 05:58:42 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:49226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qv4ng-00027L-90 for emacs-devel@gnu.org; Sun, 21 Aug 2011 05:58:40 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id D46B1EA93 for ; Sun, 21 Aug 2011 11:58:35 +0200 (CEST) X-SENDER-IP: [85.225.45.26] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmE9ABzWUE5V4S0aPGdsb2JhbABBqBALAQEBAR4ZDSWBQAEBAQEDAQI1HiIBEAshFg8JAwIBAgEWBQwKFAYNAQUCAQGHbwK2MYZIBJEGhxqLbA X-IronPort-AV: E=Sophos;i="4.68,258,1312149600"; d="scan'208";a="1754331695" Original-Received: from c-1a2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.26]) by ipb4.telenor.se with ESMTP; 21 Aug 2011 11:58:35 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 78DE97FA059; Sun, 21 Aug 2011 11:58:33 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.21 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:143477 Archived-At: Can you drag-copy one character with your change? Jan D. Andrew Schein skrev 2011-08-19 19:48: > https://lists.gnu.org/archive/html/bug-gnu-emacs/2011-08/msg00405.html > > Back in 2001, the following revision defined the behavior of mouse > movements to cause a drag-copy to occur even when the position within > a buffer does not change: > > revno: 40721 > committer: Richard M. Stallman > timestamp: Mon 2001-11-05 04:19:56 +0000 > message: > (read_char): Use Fcar and Fcdr, not Fnth. > (record_char): Likewise. > > (make_lispy_event): Don't insist a drag event must move to a different > buffer position. Instead, check for moving at least double_click_fuzz. > > As a result, even clicking on the emacs window is enough to blow away > a pre-existing drag copy buffer if your hand moves even slightly... > making the pasting a drag-copy from a separate window a gamble. This > is the case if you use your mouse to activate the emacs window instead > of alt-tab or some other mechanism. Also, the current emacs behavior > is contrary to the user experience of other x-based applications such > as firefox. > > Options for fixing this include reverting to a position-based rule or > else creating an emacs lisp variable that controls this behavior (as > exists for turning on/off drag copy altogether). My patch takes the > former approach. > > Cheers, > > Andrew >