From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19988: 25.0.50; Drag events ending in different frame Date: Fri, 06 Mar 2015 16:13:35 +0200 Message-ID: <83zj7qmcxc.fsf@gnu.org> References: <87k2yycfwh.fsf@gnu.org> <83r3t5q11o.fsf@gnu.org> <87mw3tfdn8.fsf@gnu.org> <83mw3sptht.fsf@gnu.org> <87egp44gh5.fsf@gnu.org> <8361agp10p.fsf@gnu.org> <87oao79ain.fsf@gnu.org> <83twxznzrq.fsf@gnu.org> <874mpzi4xe.fsf@gnu.org> <83r3t3nqu5.fsf@gnu.org> <87385ilhv5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425651271 29860 80.91.229.3 (6 Mar 2015 14:14:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 14:14:31 +0000 (UTC) Cc: 19988@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 06 15:14:18 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 1YTt13-0005l0-Ro for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2015 15:14:13 +0100 Original-Received: from localhost ([::1]:58443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTt13-0007Tx-BW for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2015 09:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTt0y-0007Tc-RG for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 09:14:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTt0s-0001vc-EN for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 09:14:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTt0s-0001vY-Am for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 09:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YTt0r-0006a7-VA for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 09:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Mar 2015 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19988 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19988-submit@debbugs.gnu.org id=B19988.142565122325260 (code B ref 19988); Fri, 06 Mar 2015 14:14:01 +0000 Original-Received: (at 19988) by debbugs.gnu.org; 6 Mar 2015 14:13:43 +0000 Original-Received: from localhost ([127.0.0.1]:37008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTt0Y-0006ZL-Oc for submit@debbugs.gnu.org; Fri, 06 Mar 2015 09:13:43 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:51995) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTt0V-0006Z5-Sy for 19988@debbugs.gnu.org; Fri, 06 Mar 2015 09:13:40 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NKS00F00N3XY300@mtaout24.012.net.il> for 19988@debbugs.gnu.org; Fri, 06 Mar 2015 16:05:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKS005G7N5D8JA0@mtaout24.012.net.il>; Fri, 06 Mar 2015 16:05:37 +0200 (IST) In-reply-to: <87385ilhv5.fsf@gnu.org> X-012-Sender: halo1@inter.net.il 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:100159 Archived-At: > From: Tassilo Horn > Cc: monnier@IRO.UMontreal.CA, 19988@debbugs.gnu.org > Date: Fri, 06 Mar 2015 08:12:14 +0100 > > 3. When I drag into a different window on the right of the start > window which shows a different buffer than the start window, the > region (highlighting) freezes as soon as I leave the start window. > When I release the mouse button, the region suddenly becomes > start-position to top of the buffer. What happens when you release the mouse button depend on which line in the original window you were. If you were on the first line, then mouse-drag-track (which see) tries to scroll the display, and as result you end up with the above effect. > 4. Doing the same as in 3. but dragging to the window on the left, > when releasing the mouse button the region suddenly becomes start > position to "somewhere above the end of the marked region which > froze when leaving the start window", i.e., the region-end jumps > up. Sometimes even higher than the region-start, sometimes below > it. Sorry, I don't see any system here... Look at mouse-drag-track, and I think things will become clearer. Not sure if the logic there is entirely correct, I think it might "assume" too much when the end event gives no usable position on another frame. > 5. Dragging outside of the frame (which has only one window) freezes > the selected region as soon as the mouse leaves the frame. It > doesn't matter if I leave to the left or to the right. When I then > release the mouse button outside of the frame, the region vanishes > and the mark is set at the start position of the drag. > > So it seems you get a different behavior in at least case 5 (i.e., your > region doesn't vanish). It does vanish when I release the mouse button.