From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Date: Sat, 30 Sep 2017 08:45:53 -0400 Message-ID: References: <83k20h5m2x.fsf@gnu.org> <59CF56AF.3090008@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045d6da071da01055a6787de" X-Trace: blaine.gmane.org 1506775636 3554 195.159.176.226 (30 Sep 2017 12:47:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2017 12:47:16 +0000 (UTC) Cc: 28621@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 14:47:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dyHAh-0008O3-VB for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 14:47:08 +0200 Original-Received: from localhost ([::1]:39229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyHAm-0004tR-2g for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 08:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyHAg-0004tB-22 for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 08:47:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyHAb-0004yw-UQ for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 08:47:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyHAb-0004yr-Qe for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 08:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dyHAb-0002Gt-Jb for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 08:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067755998696 (code B ref 28621); Sat, 30 Sep 2017 12:47:01 +0000 Original-Received: (at 28621) by debbugs.gnu.org; 30 Sep 2017 12:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:40119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHAE-0002GC-NJ for submit@debbugs.gnu.org; Sat, 30 Sep 2017 08:46:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHAD-0002G0-81 for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:46:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyHA2-0004dA-Ve for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:46:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyHA2-0004cv-Rh for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:46:26 -0400 Original-Received: from mail-qt0-f169.google.com ([209.85.216.169]:52689) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dyHA0-0005T0-NM for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:46:25 -0400 Original-Received: by mail-qt0-f169.google.com with SMTP id o52so2568626qtc.9 for <28621@debbugs.gnu.org>; Sat, 30 Sep 2017 05:46:24 -0700 (PDT) X-Gm-Message-State: AMCzsaUW9c1JRIkMFocQ2gNxoV8uP4dlRbLTrbapUWvcOqTczy167tGW lsA9sPrsJvjnizFs7GK33JWOfabYBmoMgy9IjgM= X-Google-Smtp-Source: AOwi7QA5ZLw1tiFObFJCBvd0IfyVv9Nt53F/eHP4rlKsimNVy3ZNPGz+Bh6u5tXwZJzpVqbpgLCSWN5VZCajOCrRvQg= X-Received: by 10.200.26.65 with SMTP id q1mr10127593qtk.186.1506775584067; Sat, 30 Sep 2017 05:46:24 -0700 (PDT) Original-Received: by 10.237.34.225 with HTTP; Sat, 30 Sep 2017 05:45:53 -0700 (PDT) In-Reply-To: <59CF56AF.3090008@gmx.at> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:137675 Archived-At: --f403045d6da071da01055a6787de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Sep 30, 2017 at 4:32 AM, martin rudalics wrot > > (frame-selected-window (posn-window position)) might not be the window > under the mouse cursor. =E2=80=8BYou are correct. Though in testing 5 different mouse key bindings= it was correct 4 out of 5 times because the depress part of the cross-frame drag event selected the window of the depress which is probably more accurate than existing results. I agree though that there may be uses of drag events where one does not want to select the window of the depress. This speaks to my point in my most recent prior message, "If we just had a way to get a window from a set of coordinates within a frame, then I think this would help solve a lot of this." If the event-end of Emacs mouse drag events included a window, rather than a frame, when the endpoint of the drag is at a position unique to a window (considering Z-frame order), I think that would solve all these issues and simplify parts of the posn code= . Bob --f403045d6da071da01055a6787de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Sep 30, 2= 017 at 4:32 AM, martin rudalics <rudalics@gmx.at> wrot
=

(frame-selected-window (posn-window position)) might not be the window
under the mouse cursor.

=E2=80=8BYou are correct.=C2= =A0 Though in testing 5 different mouse key bindings it was correct 4 out o= f 5 times because the depress part of the cross-frame drag event selected t= he window of the depress which is probably more accurate than existing resu= lts.=C2=A0 I agree though that there may be uses of drag events where one d= oes not want to select the window of the depress.

This speaks to my = point in my most recent prior message, "If we just had a way to get a window from a set of coordinates within a = frame,=C2=A0then I think this would= help solve a lot of this."=C2=A0 If the event-end of Emacs mouse drag= events included a window, rather than a frame, when the endpoint of the dr= ag is at a position unique to a window (considering Z-frame order), I think= that would solve all these issues and simplify parts of the posn code.

Bob

--f403045d6da071da01055a6787de--