From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Schein Newsgroups: gmane.emacs.devel Subject: drag events should be defined as a movement to a different buffer position (Bug 9186) Date: Fri, 19 Aug 2011 10:48:58 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1313776149 11961 80.91.229.12 (19 Aug 2011 17:49:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2011 17:49:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 19 19:49:04 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 1QuTBo-00050v-AD for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 19:49:04 +0200 Original-Received: from localhost ([::1]:42034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuTBn-00086Z-P6 for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2011 13:49:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuTBl-00084I-Aj for emacs-devel@gnu.org; Fri, 19 Aug 2011 13:49:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuTBk-0003Yl-1O for emacs-devel@gnu.org; Fri, 19 Aug 2011 13:49:01 -0400 Original-Received: from mail-yi0-f41.google.com ([209.85.218.41]:56690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuTBj-0003Xy-T1 for emacs-devel@gnu.org; Fri, 19 Aug 2011 13:48:59 -0400 Original-Received: by yib2 with SMTP id 2so2597104yib.0 for ; Fri, 19 Aug 2011 10:48:58 -0700 (PDT) Original-Received: by 10.150.97.2 with SMTP id u2mr27653ybb.151.1313776138617; Fri, 19 Aug 2011 10:48:58 -0700 (PDT) Original-Received: by 10.150.219.8 with HTTP; Fri, 19 Aug 2011 10:48:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.218.41 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:143439 Archived-At: 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 -- Andrew I. Schein www.andrewschein.com