From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Possible Bug: Mouse drag event records wrong window for release when crossing frames Date: Tue, 26 Sep 2017 02:06:49 -0400 Message-ID: Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1137b054e75393055a117c2c" X-Trace: blaine.gmane.org 1506406085 24110 195.159.176.226 (26 Sep 2017 06:08:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2017 06:08:05 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 26 08:08:01 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwj2E-0005kf-5Y for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2017 08:07:58 +0200 Original-Received: from localhost ([::1]:45810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwj2L-0004YP-FC for ged-emacs-devel@m.gmane.org; Tue, 26 Sep 2017 02:08:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwj1h-0004Xe-P2 for emacs-devel@gnu.org; Tue, 26 Sep 2017 02:07:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwj1c-0008Eg-Qn for emacs-devel@gnu.org; Tue, 26 Sep 2017 02:07:25 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwj1c-0008Ec-O0 for emacs-devel@gnu.org; Tue, 26 Sep 2017 02:07:20 -0400 Original-Received: from mail-qt0-f169.google.com ([209.85.216.169]:51921) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dwj1c-00069s-IK for emacs-devel@gnu.org; Tue, 26 Sep 2017 02:07:20 -0400 Original-Received: by mail-qt0-f169.google.com with SMTP id q4so9267344qtq.8 for ; Mon, 25 Sep 2017 23:07:20 -0700 (PDT) X-Gm-Message-State: AHPjjUiWMrAPaRMiUgr7cpXfUXsSHqT3/6tQzv6apFWs6+pWDqx6Oq3V a7lfsF3me9ftT9urFExMF571bfV+2spPxkcPQn4= X-Google-Smtp-Source: AOwi7QDu0xE2zpFQqBK0pD9oulRIfhhVqC9MW4YbqWY3BUSMAHVxj4Z+e/F0GnZtm7EhJQt8evsSUdoTqxkEcctkwZ4= X-Received: by 10.200.54.3 with SMTP id m3mr15192750qtb.197.1506406040030; Mon, 25 Sep 2017 23:07:20 -0700 (PDT) Original-Received: by 10.200.28.3 with HTTP; Mon, 25 Sep 2017 23:06:49 -0700 (PDT) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:218800 Archived-At: --001a1137b054e75393055a117c2c Content-Type: text/plain; charset="UTF-8" With Emacs 25.2 under MacOS 10.12, I use a mouse key that has bindings on both its depress and release states. The depress is in a frame with 2 windows (one showing *Buffer List* and the other showing hmouse-drv.el). The depress occurs in the *Buffer List* window. The release occurs in another frame and the release window is showing hui-window.el. Here is the drag event generated. Element 2 shows the proper depress window but element 3 shows the depress frame rather than the release frame. And element 3 has a frame rather than a window as its first argument even though the Elisp manual says it should be a window. (drag-mouse-2 (# 2905 (88 . 467) 4050744642 nil 2905 (12 . 33) nil (4 . 5) (7 . 14)) (# nil (-1373 . 463) 4050749802)) Has anyone seen this behavior before or know what's going on. I'm just trying to write a simple function that selects a buffer from one window and puts it in another window which may be in another frame. Thanks, Bob --001a1137b054e75393055a117c2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
With Emacs 25.2 under MacOS 10.12= , I use a mouse key that has bindings on both its depress and release state= s.=C2=A0 The depress is in a frame with 2 windows (one showing *Buffer List= * and the other showing hmouse-drv.el).=C2=A0 The depress occurs in the *Bu= ffer List* window.

The release occurs in another frame and the release wind= ow is showing hui-window.el.

Here is the drag event generated.=C2=A0 Element = 2 shows the proper depress window but element 3 shows the depress frame rat= her than the release frame.=C2=A0 And element 3 has a frame rather than a w= indow as its first argument even though the Elisp manual says it should be = a window.

(drag-mouse-2 (#<window 90 on *Buffer List*> 2905 (88 . 467) = 4050744642 nil 2905 (12 . 33) nil (4 . 5) (7 . 14)) (#<frame hmouse-drv.= el "/Users/bk/Dropbox/emacs/hyperbole/" 0x102f5bde8> nil (-137= 3 . 463) 4050749802))

Has anyone seen this behavior before or know what's= going on.=C2=A0 I'm just trying to write a simple function that select= s a buffer from one window and puts it in another window which may be in an= other frame.

Thanks,

Bob

--001a1137b054e75393055a117c2c--