From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Sep 2017 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28621 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 28621@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: rswgnu@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.15065281646452 (code B ref -1); Wed, 27 Sep 2017 16:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Sep 2017 16:02:44 +0000 Received: from localhost ([127.0.0.1]:35182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxEnL-0001g0-P1 for submit@debbugs.gnu.org; Wed, 27 Sep 2017 12:02:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxEnJ-0001fm-QH for submit@debbugs.gnu.org; Wed, 27 Sep 2017 12:02:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxEnA-0007C9-BX for submit@debbugs.gnu.org; Wed, 27 Sep 2017 12:02:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dxEnA-0007C3-8R for submit@debbugs.gnu.org; Wed, 27 Sep 2017 12:02:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45031) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEn3-00079l-QW for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 12:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxEn0-00078B-NC for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 12:02:25 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxEn0-000781-Jh for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 12:02:22 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:46951) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxEn0-0004Yq-Ao for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2017 12:02:22 -0400 Received: by mail-qk0-f179.google.com with SMTP id z143so13776517qkb.3 for ; Wed, 27 Sep 2017 09:02:22 -0700 (PDT) X-Gm-Message-State: AHPjjUhB3+u3W2uVff/qbvzG25FmcOVzmn7WqmDLyBEqEh5amH/0/Khz STLmRAd3ziA3pd3/pbtO1q1itL7mmswJlrzmvRE= X-Google-Smtp-Source: AOwi7QAixGq/A8k7IHOXTlYB+WHGO2Pjjv5gci0jNBUFfKDPhY0SoVJFD0EvKGtDWyDMn4mN7NKdHPp9UPopjKfe8SQ= X-Received: by 10.55.161.85 with SMTP id k82mr2935947qke.156.1506528141329; Wed, 27 Sep 2017 09:02:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.28.3 with HTTP; Wed, 27 Sep 2017 09:01:50 -0700 (PDT) From: Robert Weiner Date: Wed, 27 Sep 2017 12:01:50 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: multipart/alternative; boundary="94eb2c0600bcb54b2f055a2dead6" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --94eb2c0600bcb54b2f055a2dead6 Content-Type: text/plain; charset="UTF-8" The doc for posn-window is incomplete. posn-set-point does not handle drag events whose end point argument is a frame, rather than a window. This patch fixes both of these. Read the code of posn-set-point to ensure the logic is right in terms of using frame-selected-window. This diff is against subr.el in Emacs 25.3 but I see none of this has yet changed in Emacs 26 either, so it is still applicable. *** subr.el.gz 2017-09-27 11:50:06.000000000 -0400 --- subr-new.el.gz 2017-09-27 11:50:06.000000000 -0400 *************** *** 1090,1096 **** The following accessor functions are used to access the elements of the position: ! `posn-window': The window the event is in. `posn-area': A symbol identifying the area the event occurred in, or nil if the event occurred in the text area. `posn-point': The buffer position of the event. --- 1090,1096 ---- The following accessor functions are used to access the elements of the position: ! `posn-window': The window or frame of the event end. `posn-area': A symbol identifying the area the event occurred in, or nil if the event occurred in the text area. `posn-point': The buffer position of the event. *************** *** 1141,1148 **** (defsubst posn-window (position) "Return the window in POSITION. ! POSITION should be a list of the form returned by the `event-start' ! and `event-end' functions." (nth 0 position)) (defsubst posn-area (position) --- 1141,1149 ---- (defsubst posn-window (position) "Return the window in POSITION. ! If POSITION is outside the frame where the event was initiated, return ! that frame instead. POSITION should be a list of the form returned by ! the `event-start' and `event-end' functions." (nth 0 position)) (defsubst posn-area (position) *************** *** 1169,1177 **** (defun posn-set-point (position) "Move point to POSITION. Select the corresponding window as well." ! (if (not (windowp (posn-window position))) ! (error "Position not in text area of window")) ! (select-window (posn-window position)) (if (numberp (posn-point position)) (goto-char (posn-point position)))) --- 1170,1182 ---- (defun posn-set-point (position) "Move point to POSITION. Select the corresponding window as well." ! (if (framep (posn-window position)) ! (progn (if (not (windowp (frame-selected-window (posn-window position)))) ! (error "Position not in text area of window")) ! (select-window (frame-selected-window (posn-window position)))) ! (if (not (windowp (posn-window position))) ! (error "Position not in text area of window")) ! (select-window (posn-window position))) (if (numberp (posn-point position)) (goto-char (posn-point position)))) --94eb2c0600bcb54b2f055a2dead6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= The doc for posn-window is incomplete.= =C2=A0 posn-set-point does not handle drag events whose end point argument = is a frame, rather than a window.
= This patch fixes both of these.=C2=A0 R= ead the code of posn-set-point to ensure the logic is right in terms of usi= ng frame-selected-window.

<= font face=3D"monospace, monospace">This diff is against subr.el in Emacs 25= .3=C2=A0but I see no= ne of this has yet changed in Emacs 26 either, so it is still applicable.

*** subr.el.gz 2017-09-27 11= :50:06.000000000 -0400
--- subr-new.el.gz 2017-09-27 11:50:06.000000000 -0400
***************
=
*** 1090,1= 096 ****
=C2=A0 The following accessor functions are used to access the e= lements
=C2=A0 of the position:
= =C2=A0=C2=A0
! `posn-window': The= window the event is in.
=C2=A0 `posn-area': A symbol identifying the= area the event occurred in,
=C2=A0 or nil if the event occurred in the t= ext area.
=C2=A0 `posn-point': The buffer position of the event.
--= - 1090,1096 ----
=C2=A0 The following accessor functions are used to acce= ss the elements
=C2=A0 of the position:
=C2=A0=C2=A0
! `posn-window&#= 39;: The window or frame of the event end.
=C2=A0 `posn-area': A symb= ol identifying the area the event occurred in,
=C2=A0 or nil if the event= occurred in the text area.
=C2=A0 `posn-point': The buffer position = of the event.
***************
*** 1141,1148 ****
=C2=A0=C2=A0<= /div>
=C2= =A0 (defsubst posn-window (position)
=C2=A0 =C2=A0 "Return the windo= w in POSITION.
! POSITION should be a list of the form returned by the `e= vent-start'
! and `event-end' functions."
=C2=A0 =C2=A0 (n= th 0 position))
=C2=A0=C2=A0
=C2=A0 (defsubst posn-area (position)
--= - 1141,1149 ----
=C2=A0=C2=A0
=C2=A0 (defsubst posn-window (position)
=C2=A0 =C2=A0 "Return the window in POSITION.
! If POSITION is out= side the frame where the event was initiated, return
! that frame instead= .=C2=A0 POSITION should be a list of the form returned by
! the `event-st= art' and `event-end' functions."
=C2=A0 =C2=A0 (nth 0 positi= on))
=C2=A0=C2=A0
=C2=A0 (defsubst posn-area (position)
*************= **
*** 1169,1177 ****
=C2=A0 (defun posn-set-point (position)
=C2=A0 = =C2=A0 "Move point to POSITION.
=C2=A0 Select the corresponding wind= ow as well."
!=C2=A0 =C2=A0(if (not (windowp (posn-window position))= )
!=C2=A0 =C2=A0 =C2=A0 =C2=A0(error "Position not in text area of w= indow"))
!=C2=A0 =C2=A0(select-window (posn-window position))=
=C2= =A0 =C2=A0 (if (numberp (posn-point position))
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 (goto-char (posn-point position))))
=C2=A0=C2=A0
--- 1170,1182 ----=
=C2=A0 (defun posn-set-point (position)
=C2=A0 =C2=A0 "Move point= to POSITION.
=C2=A0 Select the corresponding window as well."
!= =C2=A0 =C2=A0(if (framep (posn-window position))
!=C2=A0 =C2=A0 =C2=A0 = =C2=A0(progn (if (not (windowp (frame-selected-window (posn-window position= ))))
! (error "Position no= t in text area of window"))
<= font face=3D"monospace, monospace">! =C2=A0 =C2=A0 =C2=A0(select-window (frame-selected-window (posn-window po= sition))))
!=C2=A0 =C2=A0 =C2=A0(if (not (windowp (posn-window position))= )
! (error "Position not in = text area of window"))
!=C2=A0 =C2=A0 =C2=A0(select-window (posn-win= dow position)))
=C2=A0 =C2=A0 (if (numberp (posn-point position))<= /div>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 (goto-char (posn-point position))))
=C2=A0=C2=A0=

--94eb2c0600bcb54b2f055a2dead6-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Sep 2017 21:35: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: To: Robert Weiner Cc: Eli Zaretskii , rswgnu@gmail.com, 28621@debbugs.gnu.org Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.150654807119148 (code B ref 28621); Wed, 27 Sep 2017 21:35:01 +0000 Received: (at 28621) by debbugs.gnu.org; 27 Sep 2017 21:34:31 +0000 Received: from localhost ([127.0.0.1]:35520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxJyR-0004ym-IA for submit@debbugs.gnu.org; Wed, 27 Sep 2017 17:34:31 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:52297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxJyQ-0004yZ-0Z for 28621@debbugs.gnu.org; Wed, 27 Sep 2017 17:34:30 -0400 Received: by mail-pf0-f177.google.com with SMTP id p87so7890858pfj.9 for <28621@debbugs.gnu.org>; Wed, 27 Sep 2017 14:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=gafS/YRzqR9agQgY5e6nlTKFLUkQLARPN1zk4XOFTBA=; b=OV6MIWSSgzr61lAvXbfOEl1lG58jCQKRHb+tJAKv0Rsf8eGZSRsKzcNxVhoHUXOTA/ uEa0DgPVsnvCeIM1sLFbzPaBwYVek9B1AzDPqrF5mtbIMye7TS2vHIvJqK6mf2yNsqVz MymNf9jj8NmNOvv94c5HegJFrcPQprQhyEqN2rlWTjtSHNWvmtCUGk2LHVLk9YhKdetX jVPWfPt7BwjYfWgAJwpqHfLn3TL1s7DZ28kwq+2xaS2lFay+/Te7rKYlYKHaen1WBfM/ brVHH/LwpsTaMUBROvQukZkkgTF/ZFI8dbEYEknSW4Er1c7+PCz3EPIoCaGX3ibpeL86 u2SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mime-version; bh=gafS/YRzqR9agQgY5e6nlTKFLUkQLARPN1zk4XOFTBA=; b=VDvI9RZ+3fqrpzk/DHSaXpfRrdqOcFaBDwOITMgYveY9nyyBXIDZHHJ2SsP2D8hM0a fjNgAxG3pW1Oa67GkYZ8WqI5UisZBwnCETXcG3kuMmG2SU3QAowfrnxO7kNfm0Rt3t+x qaibBJ+5cX9sXvYB5vHz32wNluOgKBtl2ahL71Ai4o7fM5GG2lnJtCr2UYyK+BvXE7lW 4FWDHBREL0DAzNadstC6mejveguihG02CQJzQWEYYdcA/tAjCi2yXXsFH4Pwjtmnb2aR abZ2ODe3PFtiZB62Ix7j8zjzecM7ZUsJpUGetN0yk+7xKRCOBofB/ZWs0QJU0Fm9vdS4 azSg== X-Gm-Message-State: AHPjjUjWyowYlrv48fmvm/6GeH30jdxzkruDCL3kl9HwdS7ZWz3tZo60 Sj9B11E+c8XD1RrHJdCAdCI+yD8/ X-Google-Smtp-Source: AOwi7QB1C0m1pVtJ3Z5xwDxyFyjglaWmi5v7GoFenGpWbtjLF+7L5upKR6bd4LGefERlr1TPCcvyfg== X-Received: by 10.159.216.143 with SMTP id s15mr2260263plp.201.1506548063871; Wed, 27 Sep 2017 14:34:23 -0700 (PDT) Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id r22sm21675880pfe.78.2017.09.27.14.34.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 14:34:23 -0700 (PDT) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id 5C6E393807CA; Wed, 27 Sep 2017 14:34:22 -0700 (PDT) In-Reply-To: (Robert Weiner's message of "Wed, 27 Sep 2017 12:01:50 -0400") Date: Wed, 27 Sep 2017 14:34:21 -0700 Message-ID: References: User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) >>>>> "RW" == Robert Weiner writes: RW> The doc for posn-window is incomplete. posn-set-point does not handle drag RW> events whose end point argument is a frame, rather than a window. This RW> patch fixes both of these. Read the code of posn-set-point to ensure the RW> logic is right in terms of using frame-selected-window. I'm happy to see this applied, just want confirmation from someone who understands this code better that this is the correct clarification... -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 08:35: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: To: rswgnu@gmail.com, 28621@debbugs.gnu.org Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.150667409426717 (code B ref 28621); Fri, 29 Sep 2017 08:35:01 +0000 Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 08:34:54 +0000 Received: from localhost ([127.0.0.1]:37545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxql4-0006wq-Ka for submit@debbugs.gnu.org; Fri, 29 Sep 2017 04:34:54 -0400 Received: from mout.gmx.net ([212.227.17.21]:60793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxql3-0006we-3u for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 04:34:53 -0400 Received: from [192.168.1.100] ([46.125.249.81]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Mbx62-1defTc3eJa-00JIBz; Fri, 29 Sep 2017 10:34:47 +0200 Message-ID: <59CE05A4.80701@gmx.at> Date: Fri, 29 Sep 2017 10:34:44 +0200 From: martin rudalics MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:itvtbKcLdlAa7rcVcBEL9T3rwfNdakz5EqQOZRJtaKmhQX42Czw yMjVwbZdJcuajv3P4lAT+BwqsAqCgyjYSiVnvQiC9nwbTMA/hysDU5RRZI7G35DVaa6GdlR gfdqrUv+xSjKcp44IMO2U79SyxFVfy1mCTG8j8xwBdQ8C4iCYAKRY+El1O6RjNzVZzrQC0F gCpI7n8wmmNQH9KPfns0w== X-UI-Out-Filterresults: notjunk:1;V01:K0:MJ/FvE6Obuk=:CdZ77szicQg12Op2W4JEHz PrXp/XwNF2ez2XKs2a5pVbQ2MKSsKJQbGPe7qgVyEcMg/13Y+qDMczpVuZVBQCdqqlt+2EWU3 YtzKxbzcNOaw7++ylTlhonpDwngkgrTV346mV6N0P4ClB/lg7v2B+ZMzndrAB1ks/irgtW2Y9 OnfQ/ZY38ogaaxfJB3e2rgJa7gihPOGENd3KPcmep51G6DGodtu6Cxt+KVdF0s/EYdj7Bmr3Z 2VwvwbdkSakpvNWUhlnwU22lEzAPyMR9iNMz5uyQqskErdXveJ9E6MAa6iPaCyknhP05Az7R/ 8iebmU5UwS0l+gRR0nhZTMPwo5pqautCJ7TBJXtXeiVZTZZxw9OL4plyCtObecclE2tpqUGP0 HMMOhXV4/IBMgi6U3n9r51NNFTOpsXr8uJIkHXPB3XQQty1Dz8M5Jk2074kkvLRGtY5bppkCK DnGp7Zrv3wo0+v7Mbegany27wgJ5LTKXvAasc4h/jthKIlW+pbqVU2d10QxnUHcN8UKOsuDGv 3EnJ7N2oNl+QLJk54pLSKwUdtlZtRUfsK17XwyF7b1eHppSQw1O+xVDZBXZE5r5/nnqsofhrv PQKuZ1jO8jVKwlhOBNOVr+h3iXKHPLvV4TLuRPeTiDH+RgyxZVa6IyTmZUpagF6YqbwQZTBzg 8pbbEA5oJ5Oq3Pi5jOVww40hIcDdJhDn5dSG5pvatNQG4V923wy8hkyBJIOR+Oi9IhnlqttqC EmUWFh3Oz1iOU/SOXeQyoma7sBVjgXKBGkqJNvWHfhV/YY4v3xxFMF4ZAkWrBTcJtnX5odHUv krfEyWdr5qS0XYYje/zstLFbA4yTSCXIcLFrI9x0Sqs9gPQ9ZWm1BaZ/Gbq3MFYi5/t8eA9 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > ! `posn-window': The window or frame of the event end. If we start talking about "event ends" here we should export that concept to the remaining =E2=80=98posn-*=E2=80=99 functions as well. > ! If POSITION is outside the frame where the event was initiated, retu= rn > ! that frame instead. POSITION should be a list of the form returned = by I suppose this is not sufficient: We get a frame also when the mouse is on its tool or menu bar, some of ist borders ... But note that I've never been able to understand the purpose of these =E2=80=98posn-*=E2=80=99 functions and they usually confuse the hell out = of me. IMHO it would make much more sense to declare them obsolete and concentrate on describing event structures better. martin From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 16:50:02 +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: To: martin rudalics Cc: 28621@debbugs.gnu.org Reply-To: rswgnu@gmail.com Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.150670374410856 (code B ref 28621); Fri, 29 Sep 2017 16:50:02 +0000 Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 16:49:04 +0000 Received: from localhost ([127.0.0.1]:39472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxyTI-0002p2-Ih for submit@debbugs.gnu.org; Fri, 29 Sep 2017 12:49:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxyTG-0002oW-RF for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 12:49:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxyT7-0008FW-N8 for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 12:48:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyT7-0008FJ-JR for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 12:48:53 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:52323) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dxyT7-0006od-5n for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 12:48:53 -0400 Received: by mail-qt0-f180.google.com with SMTP id o52so274960qtc.9 for <28621@debbugs.gnu.org>; Fri, 29 Sep 2017 09:48:53 -0700 (PDT) X-Gm-Message-State: AMCzsaXSE8RRcJSm0WxDckDii1BN1wt6v/z2PRheT7iMhfXSZMR+7ybH eNS+DyXF1dDk4ZLRXPcdUWgflNBt6LYFuDINNC0= X-Google-Smtp-Source: AOwi7QAmqZnI5YRzFGknMEmZUwofubt2jJ0/Wf7+tESd+hy/FDe8Kak3fujKWO37hUv4GNboSJaxEfThfsuzwH5GHuc= X-Received: by 10.200.54.3 with SMTP id m3mr7415180qtb.197.1506703732516; Fri, 29 Sep 2017 09:48:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 09:48:22 -0700 (PDT) In-Reply-To: <59CE05A4.80701@gmx.at> References: <59CE05A4.80701@gmx.at> From: Robert Weiner Date: Fri, 29 Sep 2017 12:48:22 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: multipart/alternative; boundary="001a1137b054c22e48055a56cc46" 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-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a1137b054c22e48055a56cc46 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 4:34 AM, martin rudalics wrote: > > ! `posn-window': The window or frame of the event end. > > If we start talking about "event ends" here we should export that > =E2=80=8B=E2=80=8B > concept to the remaining =E2=80=98posn-*=E2=80=99 functions as well. > =E2=80=8B=E2=80=8B > =E2=80=8BYes. > =E2=80=8B=E2=80=8B > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > > ! If POSITION is outside the frame where the event was initiated, retur= n > =E2=80=8B=E2=80=8B > > ! that frame instead. POSITION should be a list of the form returned b= y > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > I suppose this is not sufficient: We get a frame also when the mouse is > =E2=80=8B=E2=80=8B > on its tool or menu bar, some of ist borders ... > =E2=80=8Bposn-area reports whether the event was in the text area or not.= =E2=80=8B =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > But note that I've never been able to understand the purpose of these > =E2=80=8B=E2=80=8B > =E2=80=98posn-*=E2=80=99 functions and they usually confuse the hell out = of me. IMHO it > =E2=80=8B=E2=80=8B > would make much more sense to declare them obsolete and concentrate on > =E2=80=8B=E2=80=8B > describing event structures better. =E2=80=8BIt does seem like some additional work is needed to simplify event handling and handle a multi-frame world better. Bob =E2=80=8B=E2=80=8B =E2=80=8B=E2=80=8B --001a1137b054c22e48055a56cc46 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 4:34 AM, martin rudalics <rudalics@gmx.at> wrote:
> ! `posn-window': The window o= r frame of the event end.

If we start talking about "event ends" here we should export that=
=E2=80=8B=E2=80=8B
concept to the remaining =E2=80=98posn-*= =E2=80=99 functions as well.
=E2=80=8B=E2=80=8B

=E2=80=8BYes.
= =E2=80=8B=E2=80=8B
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
> ! If POSITION is outside the frame = where the event was initiated, return
=E2=80=8B=E2=80=8B
> ! that frame instead.=C2=A0 POSITIO= N should be a list of the form returned by
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
I suppose this is not sufficient: We get= a frame also when the mouse is
=E2=80=8B=E2=80=8B
on its tool or menu bar, some of ist bor= ders ...

=E2=80=8Bposn-area reports whether the= event was in the text area or not.=E2=80=8B

=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
But note that I've never been able t= o understand the purpose of these
=E2=80=8B=E2=80=8B
=E2=80=98posn-*=E2=80=99 functions and t= hey usually confuse the hell out of me.=C2=A0 IMHO it
=E2=80=8B=E2=80=8B
would make much more sense to declare th= em obsolete and concentrate on
=E2=80=8B=E2=80=8B
describing event structures better.

=E2=80=8BIt does seem like some additional wor= k is needed to simplify event handling and handle a multi-frame world bette= r.

Bob

= =E2=80=8B=E2=80=8B
=E2=80=8B=E2=80=8B

--001a1137b054c22e48055a56cc46-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 19:43:02 +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: To: rswgnu@gmail.com Cc: 28621@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067141232975 (code B ref 28621); Fri, 29 Sep 2017 19:43:02 +0000 Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 19:42:03 +0000 Received: from localhost ([127.0.0.1]:39656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1Ag-0000lv-OZ for submit@debbugs.gnu.org; Fri, 29 Sep 2017 15:42:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1Ae-0000lQ-JB for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 15:42:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1AU-000381-Dv for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 15:41:55 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1AU-00037x-AA; Fri, 29 Sep 2017 15:41:50 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1512 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dy1AT-0000Ns-MT; Fri, 29 Sep 2017 15:41:50 -0400 Date: Fri, 29 Sep 2017 22:41:42 +0300 Message-Id: <83k20h5m2x.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Robert Weiner on Wed, 27 Sep 2017 12:01:50 -0400) References: 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-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Robert Weiner > Date: Wed, 27 Sep 2017 12:01:50 -0400 > > The doc for posn-window is incomplete. posn-set-point does not handle drag > events whose end point argument is a frame, rather than a window. > This patch fixes both of these. Read the code of posn-set-point to ensure > the logic is right in terms of using frame-selected-window. > > This diff is against subr.el in Emacs 25.3 but I see none of this has yet > changed in Emacs 26 either, so it is still applicable. Thanks. Some comments below. > ! `posn-window': The window the event is in. > `posn-area': A symbol identifying the area the event occurred in, > or nil if the event occurred in the text area. > `posn-point': The buffer position of the event. > --- 1090,1096 ---- > The following accessor functions are used to access the elements > of the position: > > ! `posn-window': The window or frame of the event end. I think we should say a bit more about this. For example: `posn-window': The window of the event end, or its frame if event end point belongs to no window. > (defun posn-set-point (position) > "Move point to POSITION. > Select the corresponding window as well." > ! (if (not (windowp (posn-window position))) > ! (error "Position not in text area of window")) > ! (select-window (posn-window position)) > (if (numberp (posn-point position)) > (goto-char (posn-point position)))) > > --- 1170,1182 ---- > (defun posn-set-point (position) > "Move point to POSITION. > Select the corresponding window as well." > ! (if (framep (posn-window position)) > ! (progn (if (not (windowp (frame-selected-window (posn-window > position)))) > ! (error "Position not in text area of window")) > ! (select-window (frame-selected-window (posn-window position)))) Why should we select the selected-window on that frame in this case? Can you describe a use case where this would be a useful behavior? In any case, the change in posn-set-point's behavior, if we agree on it, should be described in NEWS. The changes also lack a log entry. I'm okay with installing the documentation changes in the release branch, but the change in posn-set-point should be discussed first, as I'm not sure we want that. If we agree on making that change, it should go to master, I think. From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 19:44:02 +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: To: martin rudalics Cc: rswgnu@gmail.com, 28621@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067141833080 (code B ref 28621); Fri, 29 Sep 2017 19:44:02 +0000 Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 19:43:03 +0000 Received: from localhost ([127.0.0.1]:39660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1Bf-0000nc-34 for submit@debbugs.gnu.org; Fri, 29 Sep 2017 15:43:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1Bd-0000n3-Vp for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 15:43:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1BV-0003KM-0d for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 15:42:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1BU-0003KA-Tp; Fri, 29 Sep 2017 15:42:52 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1513 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dy1BU-0000Rb-Au; Fri, 29 Sep 2017 15:42:52 -0400 Date: Fri, 29 Sep 2017 22:42:46 +0300 Message-Id: <83ing15m15.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <59CE05A4.80701@gmx.at> (message from martin rudalics on Fri, 29 Sep 2017 10:34:44 +0200) References: <59CE05A4.80701@gmx.at> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 29 Sep 2017 10:34:44 +0200 > From: martin rudalics > > > ! `posn-window': The window or frame of the event end. > > If we start talking about "event ends" here we should export that > concept to the remaining ‘posn-*’ functions as well. Agreed. > > ! If POSITION is outside the frame where the event was initiated, return > > ! that frame instead. POSITION should be a list of the form returned by > > I suppose this is not sufficient: We get a frame also when the mouse is > on its tool or menu bar, some of ist borders ... Right. Btw, the manual has this problem as well. > But note that I've never been able to understand the purpose of these > ‘posn-*’ functions and they usually confuse the hell out of me. IMHO it > would make much more sense to declare them obsolete and concentrate on > describing event structures better. We should do both, IMO. From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2017 20:13:02 +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: To: Eli Zaretskii Cc: 28621@debbugs.gnu.org Reply-To: rswgnu@gmail.com Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067159475951 (code B ref 28621); Fri, 29 Sep 2017 20:13:02 +0000 Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 20:12:27 +0000 Received: from localhost ([127.0.0.1]:39678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1e7-0001Xv-El for submit@debbugs.gnu.org; Fri, 29 Sep 2017 16:12:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dy1e5-0001Xh-4Y for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 16:12:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dy1du-0003FR-De for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 16:12:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dy1du-0003FA-9B for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 16:12:14 -0400 Received: from mail-qt0-f171.google.com ([209.85.216.171]:46187) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dy1dt-0000Do-IU for 28621@debbugs.gnu.org; Fri, 29 Sep 2017 16:12:13 -0400 Received: by mail-qt0-f171.google.com with SMTP id s18so1024636qta.3 for <28621@debbugs.gnu.org>; Fri, 29 Sep 2017 13:12:13 -0700 (PDT) X-Gm-Message-State: AMCzsaX39ctLyBU73B3gdROVsf4V3ELlhRDPGp76r3bGMHOGaxS6IlsA Cpk2wghgKdA/njrl5BxJqQ+tkphsdyVKIrkBHt4= X-Google-Smtp-Source: AOwi7QAKiCX4u59nVbldilQC5rRNDdaBWUl9raHqSVACLwVTXrCXg/nQ6LTUGCdatjckMkppPPjcEFtlUTevewycxBI= X-Received: by 10.200.54.3 with SMTP id m3mr8359324qtb.197.1506715933062; Fri, 29 Sep 2017 13:12:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 13:11:42 -0700 (PDT) In-Reply-To: <83k20h5m2x.fsf@gnu.org> References: <83k20h5m2x.fsf@gnu.org> From: Robert Weiner Date: Fri, 29 Sep 2017 16:11:42 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: multipart/alternative; boundary="001a1137b054f7bb04055a59a320" 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-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a1137b054f7bb04055a59a320 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 29, 2017 at 3:41 PM, Eli Zaretskii wrote: > > From: Robert Weiner > > Date: Wed, 27 Sep 2017 12:01:50 -0400 > > > > The doc for posn-window is incomplete. posn-set-point does not handle > drag > > events whose end point argument is a frame, rather than a window. > > This patch fixes both of these. > > ! `posn-window': The window or frame of the event end. > > I think we should say a bit more about this. For example: > > `posn-window': The window of the event end, or its frame if event > end point belongs to no window. > =E2=80=8BFine. =E2=80=8B > > > (defun posn-set-point (position) > > "Move point to POSITION. > > Select the corresponding window as well." > > ! (if (not (windowp (posn-window position))) > > ! (error "Position not in text area of window")) > > ! (select-window (posn-window position)) > > (if (numberp (posn-point position)) > > (goto-char (posn-point position)))) > > > > --- 1170,1182 ---- > > (defun posn-set-point (position) > > "Move point to POSITION. > > Select the corresponding window as well." > > ! (if (framep (posn-window position)) > > ! (progn (if (not (windowp (frame-selected-window (posn-window > > position)))) > > ! (error "Position not in text area of window")) > > ! (select-window (frame-selected-window (posn-window position)))) > > Why should we select the selected-window on that frame in this case? > =E2=80=8BBecause when position includes a window, the window is selected (t= he latter logic in this function). So if position is in a window in another frame, shouldn't we select the window there? We are trying to set point here based on a mouse position=E2=80=8B, so the user must have moved his focus t= here. I am looking for input on whether the logic is right. =E2=80=8B=E2=80=8B > Can you > =E2=80=8B=E2=80=8B > describe a use case where this would be a useful behavior? > =E2=80=8B=E2=80=8B > =E2=80=8B=E2=80=8B =E2=80=8BIf you bind commands to both the depress and release events of a m= ouse button and then drag between windows on two separate frames, you'll often want to do something in the buffer at the point of the drag release=E2=80=8B. Since d= rag events provide only the release frame and not the release window, unless this window is selected, there is no way to know which window to use. I want to use this to display a buffer menu item in a window of my choosing; I have this working already for windows within a single frame. Maybe posn-window should be rewritten such that if the release event contains a frame, it actually computes the window of the release event based on the position (rather than just returning the frame, as it does now and leading to a cascade of potential conditionals). Presently, mouse-select-window assumes that posn-window always returns a window, so it doesn't handle cross-frame drags either. If we just had a way to get a window from a set of coordinates within a window, then I think this would help solve a lot of this (then drag events could end with a window rather than a frame) and the caller could determine whether the depress and release events are in the same frame or not, as needed. Does such a function exist in Emacs 26? =E2=80=8B=E2=80=8B > > > In any case, the change in posn-set-point's behavior, if we agree on > =E2=80=8B=E2=80=8B > it, should be described in NEWS. The changes also lack a log entry. > =E2=80=8BI am not an Emacs committer, mainly due to time. My hope is that = you will take the ideas and code and augment them as you know best how to do into whichever branches you feel they should go. =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > I'm okay with installing the documentation changes in the release > =E2=80=8B=E2=80=8B > branch, but the change in posn-set-point should be discussed first, as > =E2=80=8B=E2=80=8B > I'm not sure we want that. If we agree on making that change, it > =E2=80=8B=E2=80=8B > should go to master, I think. > =E2=80=8BSure, no problem. Let's figure out a good solution and work towar= ds that. Bob =E2=80=8B --001a1137b054f7bb04055a59a320 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Sep 29, 2= 017 at 3:41 PM, Eli Zaretskii <el= iz@gnu.org> wrot= e:
> From: Robert Weiner <rsw@gnu.org>
> Date: Wed, 27 Sep 2017 12:01:50 -0400
>
> The doc for posn-window is incomplete.=C2=A0 posn-set-point does not h= andle drag
> events whose end point argument is a frame, ra= ther than a window.
> This patch fixes both of these.

> ! `posn-window': The window or frame of the event end.

I think we should say a bit more about this.=C2=A0 For example:

=C2=A0`posn-window': The window of the event end, or its frame if event=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 end point belongs t= o no window.

=E2=80=8BFine.
=E2=80=8B

>=C2=A0 =C2=A0(defun posn-set-point (position)
>=C2=A0 =C2=A0 =C2=A0"Move point to POSITION.
>=C2=A0 =C2=A0Select the corresponding window as well."
> !=C2=A0 =C2=A0(if (not (windowp (posn-window position)))
> !=C2=A0 =C2=A0 =C2=A0 =C2=A0(error "Position not in text area of = window"))
> !=C2=A0 =C2=A0(select-window (posn-window position))
>=C2=A0 =C2=A0 =C2=A0(if (numberp (posn-point position))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(goto-char (posn-point position)))) >
> --- 1170,1182 ----
>=C2=A0 =C2=A0(defun posn-set-point (position)
>=C2=A0 =C2=A0 =C2=A0"Move point to POSITION.
>=C2=A0 =C2=A0Select the corresponding window as well."
> !=C2=A0 =C2=A0(if (framep (posn-window position))
> !=C2=A0 =C2=A0 =C2=A0 =C2=A0(progn (if (not (windowp (frame-selected-w= indow (posn-window
> position))))
> ! (error "Position not in text area of window"))
> !=C2=A0 =C2=A0 =C2=A0 (select-window (frame-selected-window (posn-wind= ow position))))

Why should we select the selected-window on that frame in this case?

=E2=80=8BBecause when position includes a window, the = window is selected (the
latter logic in this function).=C2=A0 So if positi= on is in a window in another
frame, shouldn't we select the window the= re?=C2=A0 We are trying to set point here
based on a mouse position=E2=80= =8B, so the user must have moved his focus there.=C2=A0 I am
looking for i= nput on whether the logic is right.

=E2=80=8B=E2=80=8B
Can you
=E2=80=8B=E2=80=8B describe a use case where this would be a useful behavior?
=E2= =80=8B=E2=80=8B
=E2=80=8B=E2=80=8B
=E2=80=8BIf you bi= nd commands to both the depress and release events of a mouse button
and then drag between windows on two separate frames, you'll often= want to do
something in the buffer at the point of the drag release=E2=80= =8B.=C2=A0 Since drag events
provide only the release frame and not the re= lease window, unless this window
is selected, there is no way to know whic= h window to use.=C2=A0 I want to use this
to display a buffer menu item in= a window of my choosing; I have this working
already for windows within a= single frame.

Maybe posn-window should be rewritten such that if th= e release event contains
a frame, it actually computes the window of the r= elease event based on the position
(rather than just returning the frame,= as it does now and leading to a cascade
of potential conditionals).
=

=
Presently, mouse-select-window assumes that posn-window always returns a = window,
so it doesn't handle cross-frame drags either.

If we ju= st had a way to get a window from a set of coordinates within a window,
th= en I think this would help solve a lot of this (then drag events could end = with
a window rather than a frame) and the caller could determine whether = the depress
and release events are in the same frame or not, as needed.=C2= =A0 Does such a function
exist in Emacs 26?

=E2=80=8B=E2=80=8B


In any case, the c= hange in posn-set-point's behavior, if we agree on
=E2=80=8B=E2=80=8B
it, should be described in NEWS.=C2=A0 T= he changes also lack a log entry.

=E2=80=8BI am = not an Emacs committer, mainly due to time.=C2=A0 My hope is that you will = take
the ideas and code and augment them as you know best how to do into w= hichever
branches you feel they should go.

=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
I'm okay with installing the documen= tation changes in the release
=E2=80=8B=E2=80=8B
branch, but the change in posn-set-point= should be discussed first, as
=E2=80=8B=E2=80=8B
I'm not sure we want that.=C2=A0 If = we agree on making that change, it
=E2=80=8B=E2=80=8B
should go to master, I think.

=E2=80=8BSure, no problem.=C2=A0 Let's figure out a go= od solution and work towards that.

Bob
=E2=80=8B

--001a1137b054f7bb04055a59a320-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 08:33:02 +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: To: rswgnu@gmail.com, Eli Zaretskii Cc: 28621@debbugs.gnu.org Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067603793940 (code B ref 28621); Sat, 30 Sep 2017 08:33:02 +0000 Received: (at 28621) by debbugs.gnu.org; 30 Sep 2017 08:32:59 +0000 Received: from localhost ([127.0.0.1]:40015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyDCk-00011U-PL for submit@debbugs.gnu.org; Sat, 30 Sep 2017 04:32:58 -0400 Received: from mout.gmx.net ([212.227.15.18]:51419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyDCi-00011H-Qs for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 04:32:57 -0400 Received: from [192.168.1.100] ([46.125.250.33]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MD9q8-1e88Hm06TU-00GdBJ; Sat, 30 Sep 2017 10:32:50 +0200 Message-ID: <59CF56AF.3090008@gmx.at> Date: Sat, 30 Sep 2017 10:32:47 +0200 From: martin rudalics MIME-Version: 1.0 References: <83k20h5m2x.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:wxgg5h3M3bIXDMj7VXfI9qxZdr7hn30/ClUYxlvWm9WymeP2W4l M7GMT4vs0LSkjAvph0WyTkMrvsDKHtCaWyJh0funS1jcfxudHkmqy02KtCoVb5QsEXvLwwC niWBugPYjk27PMxNxqyUYxkdSFcc/c4+xZ+DZwxIL1V2A2CIUl202xhwp6jNF9SjQ3BHb9P IGBr38ELZp1NNDJ7Rj8iQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:P/nAVjn7riI=:T/hVMgMISXgspDQ3odJWhc sW74609nipAklcOGW0DCHTXpYtu7XGJZDZLHJ5bHGcdP0FnS5hnf1aljO5HYnZFoGNSnadVE+ xsw9ICtFtrNWVsvQeGwymZb0RDNdcz6Kx9MHDlBfw9vq4Hc0wXeVD10fAIG31rO2G7YFh+hcm aIk6a52oXX2NcYVFrD6Vbje9rYqJFOb85Yqr5l5YameEfMJKPmJqS8NxSwoCbq8yk+T0p7jTP rsAcw0xCccLVEJCNZtWQ/3DzjJenP1IuOuFQjezFYGUiBHD5K2h21rYPJOhQM2wUJAcCwUyPU kPRT72jDgqC40wSlNthyKrkb1VfrWn8UHEDOR09oi7IPJDyiWlYW0jOtQhEtV1q6oAz+VJxYB UOZMP8MzLR/88ClyDZPIUuStdc7x5WO5A2f7dc8MSbTK7mssFg9IVUAw/ghIKkJ+QNpTHtlsH gvIVMWTfNR4ixal37VdGu6DIUnDFXFzv/x/32gC6B+KFXsnsUmIeZhA78O5AneXst/cY/Wtid 0J7tV33d+D5mS6W9RKjfjMFlpdcW+I0+zcanAFp0qvD/rTF5Ruk1cCcYaR3UIKm0xOI/KVn0V rC/35GiIrSIf77js30dzvmu3nnUHIbcrjIzqbjG8AYkOGSYx1SctovPUYbXlJRJ3x1xhxqxM2 /GTG7iHRAXYueYXL3zxCrq/iwHYc4kFBYpy+dWdz6Ftuu15Xt8PyW7gQMaks1xMrdMtGwav4Y x7T2eB5RXWHtjydAMH5r5OSMSsN2StEkUBW1q5KziPHrT3DvpF+Rx8cdfyyR65rcYMmNKy0o1 uBkhBV/A+x8nwAVUa1l72/xEcYxTl63B8YIen7HKxYxE3ih3LI= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>> ! (select-window (frame-selected-window (posn-window position))= )) >> >> Why should we select the selected-window on that frame in this case? >> > > =E2=80=8BBecause when position includes a window, the window is select= ed (the > latter logic in this function). So if position is in a window in anot= her > frame, shouldn't we select the window there? We are trying to set poi= nt > here > based on a mouse position=E2=80=8B, so the user must have moved his fo= cus there. I > am > looking for input on whether the logic is right. (frame-selected-window (posn-window position)) might not be the window under the mouse cursor. martin From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments 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: To: martin rudalics Cc: Eli Zaretskii , 28621@debbugs.gnu.org Reply-To: rswgnu@gmail.com Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067755998696 (code B ref 28621); Sat, 30 Sep 2017 12:47:01 +0000 Received: (at 28621) by debbugs.gnu.org; 30 Sep 2017 12:46:39 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 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) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Sat, 30 Sep 2017 05:45:53 -0700 (PDT) In-Reply-To: <59CF56AF.3090008@gmx.at> References: <83k20h5m2x.fsf@gnu.org> <59CF56AF.3090008@gmx.at> From: Robert Weiner Date: Sat, 30 Sep 2017 08:45:53 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: multipart/alternative; boundary="f403045d6da071da01055a6787de" 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-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --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-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 12:53:02 +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: To: martin rudalics Cc: Eli Zaretskii , 28621@debbugs.gnu.org Reply-To: rswgnu@gmail.com Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067759679232 (code B ref 28621); Sat, 30 Sep 2017 12:53:02 +0000 Received: (at 28621) by debbugs.gnu.org; 30 Sep 2017 12:52:47 +0000 Received: from localhost ([127.0.0.1]:40123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHGB-0002Oq-EF for submit@debbugs.gnu.org; Sat, 30 Sep 2017 08:52:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyHGA-0002Oc-0Z for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:52:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyHG0-0000rI-KO for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:52:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_50,HTML_MESSAGE, RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyHG0-0000r6-GG for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:52:36 -0400 Received: from mail-qk0-f173.google.com ([209.85.220.173]:51650) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1dyHG0-0007o0-2B for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 08:52:36 -0400 Received: by mail-qk0-f173.google.com with SMTP id 17so1825493qkq.8 for <28621@debbugs.gnu.org>; Sat, 30 Sep 2017 05:52:35 -0700 (PDT) X-Gm-Message-State: AMCzsaXEGO/SuyPKxNTvfWz5uXG15qQUtSgcxRATrLqtSHCIYuHDMAnY ZV+UqmJrysWnvv9A02ygGKJ8RzAbvRkCRMFdaqc= X-Google-Smtp-Source: AOwi7QD/eXD+/LZEnu83wtc3crqt55BUrM/BEyqYQ/RxLBoueNuTZUDbuFwicH7kxkhDM2g83q2DFn/oiB1Ov6xuI3k= X-Received: by 10.55.25.85 with SMTP id k82mr6967288qkh.223.1506775955508; Sat, 30 Sep 2017 05:52:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.225 with HTTP; Sat, 30 Sep 2017 05:52:05 -0700 (PDT) In-Reply-To: References: <83k20h5m2x.fsf@gnu.org> <59CF56AF.3090008@gmx.at> From: Robert Weiner Date: Sat, 30 Sep 2017 08:52:05 -0400 X-Gmail-Original-Message-ID: Message-ID: Content-Type: multipart/alternative; boundary="001a11473a849591d6055a679ddb" 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-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.5 (----) --001a11473a849591d6055a679ddb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Sep 30, 2017 at 8:45 AM, Robert Weiner wrote: > 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 bindin= gs 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. > =E2=80=8BPlease ignore the above paragraph as I wasn't thinking about the e= nd part of the drag. =E2=80=8B > > 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 endpoi= nt > 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 t= he > posn code. > =E2=80=8BJust read the above paragragph. Bob --001a11473a849591d6055a679ddb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Sep 30, 2= 017 at 8:45 AM, Robert Weiner <rsw= @gnu.org> wrote:=
On Sat, Sep 30= , 2017 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 tes= ting 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.=C2=A0 I agre= e though that there may be uses of drag events where one does not want to s= elect the window of the depress.
<= br>
=E2=80=8BPlease ignore the above paragraph as I wasn't thinking ab= out the end part of the drag.
=E2=80=8B

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.&quo= t;=C2=A0 If the event-end of Emacs mouse drag events included a window, rat= her 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 is= sues and simplify parts of the posn code.

=E2=80=8BJust read the above paragragph.

Bob
<= br>
--001a11473a849591d6055a679ddb-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 17:13: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: To: rswgnu@gmail.com Cc: Eli Zaretskii , 28621@debbugs.gnu.org Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15067915712476 (code B ref 28621); Sat, 30 Sep 2017 17:13:01 +0000 Received: (at 28621) by debbugs.gnu.org; 30 Sep 2017 17:12:51 +0000 Received: from localhost ([127.0.0.1]:41379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyLJr-0000ds-DX for submit@debbugs.gnu.org; Sat, 30 Sep 2017 13:12:51 -0400 Received: from mout.gmx.net ([212.227.15.19]:60825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyLJp-0000dd-RP for 28621@debbugs.gnu.org; Sat, 30 Sep 2017 13:12:50 -0400 Received: from [192.168.1.100] ([213.162.68.235]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MH0eg-1eB0mG0uQ6-00Dmjk; Sat, 30 Sep 2017 19:12:42 +0200 Message-ID: <59CFD083.40407@gmx.at> Date: Sat, 30 Sep 2017 19:12:35 +0200 From: martin rudalics MIME-Version: 1.0 References: <83k20h5m2x.fsf@gnu.org> <59CF56AF.3090008@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:bpTGUbANBkDhqtrJj/+spfp97gXbgNqSETJTSsU3C57rTtX/5Dx lrBxhBbTcorJ8fOntr5deDrANOIaPxD+RsDuPo83NCqpDLAPG437AVsFrzD2UIX9SCv9d2P 7GQw83bY6RcCGF5u7oJ78OZIAXZA5Z65NKnPbO0F/QEfJEZtLVhZMQqQs/v8Xg1D0JYiWfx VQNnabd/0pTp7IBjm1pPQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:GsLpzITHltU=:gDsuoHHo/oPqp4k0e/39di th4z41SAcrrDRe6+eBAS4dl90djfy3g3DVmK3InWWqdZRo7VdCkvpZ513ZBlEMJ9J3MWFAfUJ 1M+CnKRDYBDeIshYdD3GWGTrPXHUp00KoRQ7BT0RbaNlZ1NNzvhBWLtI+GqVJcbPLLg8IxTGY ZvYyFhKbMPnE8UzeKra1PYSLbjPYFRoGcZCEWH4gPLhk6IXW+xYDLGoCp/fbAzoEc9XMEcQ7l yphIqoL1H0V+nBg2nACuQDglAxKcPSvC5isrBu0dJEvhtxiJny7BvXvKb7/I/oHtT1S/wYSY7 j3eDrnS98IP0p1xBe/KIOYOBC5nrCjlfg5k0rIt2Y8QjjSrekyYi9tITC0cImHBw8uieCTqOU rdbdNzJ1bjjPw3hMdi97TVGlkLVBXibR/r+TmXA0Nv821gwqQbM+x5V4wVUutLRr58Ng5QO2e FW7j5rGwKzMaifcMy7hOfmpejDcXzBhd+ge/y0OJwbYws1jlrZqIXcpSYghGS/J28GgiwP22+ yEpdaGQ02n2zvleH/m8h6846BiNnNoESAdlGmJbXepgtydvLrxIRhGDGUADKgFxRng06KFC1b OF+gPxmtUhbrQdjWSNQ7PQSKGmFGVs8FPQkS/736HGF3kmminkcm7kcI/48x+TrzPdRFbknfC RO37sAf7kfndt3mGwlHCVjSt0Caq6n5U3VbTUt8ZlZS1Lam/X4RwUkwlSUbNOWVf7T8/XgmtM cPsi4k695SiaOep26/Uf5BeB4Os0po93DMdjQtg3IgU3ZrRa5poTo1jsa7nALxtV8n6Ljqsvn um7TlyeY99dGOytZBxl7s4WFy86NbL/piG4TylO6zIP20p7ZTfQ/oMh2mUBusdtHFeFtzpa X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > This speaks to my point in my most recent prior message, "If we just h= ad a > way to get a window from a set of coordinates within a frame, then I t= hink > 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 th= e > 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. Take the position of the event-end (if it's a frame) and translate it into absolute screen coordinates (the Elisp manual should give you enough clues to do that). Or, try =E2=80=98mouse-absolute-pixel-position= =E2=80=99 - it should give you the screen position of the mouse at that time so you can ignore the event completely. Then walk all your windows and compare that position with whatever =E2=80=98window-absolute-pixel-edges=E2=80=99 returns for that window. I= f you have two or more positives, run =E2=80=98frame-list-z-order=E2=80=99 and compare t= he result against those windows' frames. No hands, IMHO. martin From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2019 16:09:05 +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: To: Robert Weiner Cc: Eli Zaretskii , rswgnu@gmail.com, 28621@debbugs.gnu.org Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.156139249715269 (code B ref 28621); Mon, 24 Jun 2019 16:09:05 +0000 Received: (at 28621) by debbugs.gnu.org; 24 Jun 2019 16:08:17 +0000 Received: from localhost ([127.0.0.1]:57716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRVx-0003yD-E2 for submit@debbugs.gnu.org; Mon, 24 Jun 2019 12:08:17 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRVv-0003y3-N0 for 28621@debbugs.gnu.org; Mon, 24 Jun 2019 12:08:16 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfRVr-000569-PN; Mon, 24 Jun 2019 18:08:14 +0200 From: Lars Ingebrigtsen References: <83k20h5m2x.fsf@gnu.org> Date: Mon, 24 Jun 2019 18:08:11 +0200 In-Reply-To: (Robert Weiner's message of "Fri, 29 Sep 2017 16:11:42 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Weiner writes: > =?UTF-8?Q?=E2=80=8B=E2=80=8BI'm?= okay with installing the documentation changes in the release > =?UTF-8?Q?=E2=80=8B=E2=80=8Bbranch,?= but the change in posn-set-point should be discussed first, as > =?UTF-8?Q?=E2=80=8B=E2=80=8BI'm?= not sure we want that. If we agree [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Weiner writes: > =E2=80=8B=E2=80=8BI'm okay with installing the documentation changes in = the release > =E2=80=8B=E2=80=8Bbranch, but the change in posn-set-point should be dis= cussed first, as > =E2=80=8B=E2=80=8BI'm not sure we want that. If we agree on making that= change, it > =E2=80=8B=E2=80=8Bshould go to master, I think. > > =E2=80=8BSure, no problem. Let's figure out a good solution and work tow= ards that. As far as I can tell, none of the posn-* doc strings were changed, even though everybody seemed to agree that they should be. Robert, did you continue working on this? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2019 02:22: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: To: Lars Ingebrigtsen Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15616020702033 (code B ref 28621); Thu, 27 Jun 2019 02:22:01 +0000 Received: (at 28621) by debbugs.gnu.org; 27 Jun 2019 02:21:10 +0000 Received: from localhost ([127.0.0.1]:37245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgK2A-0000Wj-F8 for submit@debbugs.gnu.org; Wed, 26 Jun 2019 22:21:10 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:38069) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgK27-0000WV-Nm for 28621@debbugs.gnu.org; Wed, 26 Jun 2019 22:21:08 -0400 Received: by mail-qt1-f180.google.com with SMTP id n11so825238qtl.5 for <28621@debbugs.gnu.org>; Wed, 26 Jun 2019 19:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0BRg2Jowp00Sy5GY081hIjjNlrsGXqji6d241zDkZfU=; b=oWpPe9uPTZCZUXrcmivksvqtNuy3KN2DPCzp0TGTx1LK21CYQUANIhRwHrLVzKwKP4 yUT7kopl3c1Bpa3Hp36fJ7CqQZR+w4o4al6ZYhEMPjWFhKB2Z+8rROUHWCnXCad0M9iP 9wmhO8xmPK5IDCjll0BwS5wwGUaopRqPRaRuv49OgoHtVpbIOvwbAMwTQOkDDFl8HBlQ cPcXm18R0dQjZrSEugVn26KhWlvId20Ys8NL3Tc7twcdqQJulaIShyZ18ueYU7Mpjeyr 4B5MLx3xd0A9W6STnxdrx4aXGtzVRzuohzubfNTKxjUxDacgjKLw6/WnmJOrDs5LTIHj Dm+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0BRg2Jowp00Sy5GY081hIjjNlrsGXqji6d241zDkZfU=; b=WzYd2wzXyk75mq8bKQNDoHwGb07cIxIiJZJAbq7ZpKutiREOmUvoxy2KW5+uzWP0n/ jNqaCNFjHV+V/HyZHhczKSom7gpJb6r4P2tnVtdAGqMk1Y70mUOMvkmONOGJuwWsPv8W 16ipu5dX7NqPbbA/ovWTivzG0D9391/Ws1dhYRTlI1/qVOXSJZHAn6NAQpcMXrE1OXL0 JOqFo+6pHUJLF8kp+ymcSHJT6OcEssoP15kwVul/Ce72/rywgO3yC+oDhfmQP+jvrjPG zb7IGvgJpAI37A5v+v2IToKBXjsZPiwHPkJ1XtYqFHVP+qr42bK3QumhxdPYjVpNYGmq Vljw== X-Gm-Message-State: APjAAAW/t0a7/GOh4xgQgySBpBKmt5WipSzLVYgi+b5QRBpFHks+xoeH 7cSWg6c9SBrS2lpkii5oZuHZh9EN X-Google-Smtp-Source: APXvYqy+JV6t8dLJ3dBmstM36OpRN6DxIBAKtks6nXOGPMXat+1dRK1XnjPauwkUqHF3g3Tkd+qWcA== X-Received: by 2002:ac8:2fce:: with SMTP id m14mr1038173qta.22.1561602061799; Wed, 26 Jun 2019 19:21:01 -0700 (PDT) Received: from [192.168.10.123] (ool-2f1481cf.dyn.optonline.net. [47.20.129.207]) by smtp.gmail.com with ESMTPSA id c40sm395148qtd.14.2019.06.26.19.21.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 19:21:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) From: Robert Weiner X-Mailer: iPhone Mail (16E227) In-Reply-To: Date: Wed, 26 Jun 2019 22:20:59 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <83k20h5m2x.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I think all my changes are in the first message here. Lars, can you see abo= ut integrating from there? Thanks. -- Bob > On Jun 24, 2019, at 12:08 PM, Lars Ingebrigtsen wrote: >=20 > Robert Weiner writes: >=20 >> =E2=80=8B=E2=80=8BI'm okay with installing the documentation changes in t= he release >> =E2=80=8B=E2=80=8Bbranch, but the change in posn-set-point should be disc= ussed first, as >> =E2=80=8B=E2=80=8BI'm not sure we want that. If we agree on making that c= hange, it >> =E2=80=8B=E2=80=8Bshould go to master, I think. >>=20 >> =E2=80=8BSure, no problem. Let's figure out a good solution and work tow= ards that. >=20 > As far as I can tell, none of the posn-* doc strings were changed, even > though everybody seemed to agree that they should be. Robert, did you > continue working on this? >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2019 10:40:02 +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: To: Robert Weiner Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15616319871230 (code B ref 28621); Thu, 27 Jun 2019 10:40:02 +0000 Received: (at 28621) by debbugs.gnu.org; 27 Jun 2019 10:39:47 +0000 Received: from localhost ([127.0.0.1]:37486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgRog-0000Jl-P5 for submit@debbugs.gnu.org; Thu, 27 Jun 2019 06:39:46 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgRoe-0000Jc-1N for 28621@debbugs.gnu.org; Thu, 27 Jun 2019 06:39:45 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hgRoa-0004Ap-A8; Thu, 27 Jun 2019 12:39:42 +0200 From: Lars Ingebrigtsen References: <83k20h5m2x.fsf@gnu.org> Date: Thu, 27 Jun 2019 12:39:40 +0200 In-Reply-To: (Robert Weiner's message of "Wed, 26 Jun 2019 22:20:59 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Weiner writes: > I think all my changes are in the first message here. Lars, can you > see about integrating from there? Thanks. If I understood the thread correctly, there was some worry that the changes weren't completely correct in the presence of various frame configurations? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Weiner writes: > I think all my changes are in the first message here. Lars, can you > see about integrating from there? Thanks. If I understood the thread correctly, there was some worry that the changes weren't completely correct in the presence of various frame configurations? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Robert Weiner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2019 12:28: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: To: Lars Ingebrigtsen Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.156163848020019 (code B ref 28621); Thu, 27 Jun 2019 12:28:01 +0000 Received: (at 28621) by debbugs.gnu.org; 27 Jun 2019 12:28:00 +0000 Received: from localhost ([127.0.0.1]:37641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgTVQ-0005Co-FB for submit@debbugs.gnu.org; Thu, 27 Jun 2019 08:28:00 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:40985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgTVN-0005CY-3R for 28621@debbugs.gnu.org; Thu, 27 Jun 2019 08:27:58 -0400 Received: by mail-qt1-f173.google.com with SMTP id d17so2160076qtj.8 for <28621@debbugs.gnu.org>; Thu, 27 Jun 2019 05:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pYCQsdb9lFNoGC//JVJy9DmkSiCcNUL/pVux5z1LI40=; b=CIaYEvqn172uv0kDonlIO5BIwHBXQfRinw1zjRDbzFdsA5dPRgFpp+BC8JdIALSXub dIG3p1a5B5M1+Q7bXEFlbsfCUBJig5mm3oJTbI+lPZTh/C/ReVowpOV55KR1Aq9+TJyC 87zvIcfQla5V3DAicGyw4pTYGVV7prmZGFtX5hxRlmY78cHiU6s+o3iMJM+LPrlrjyzW 81FQEBh+Rak3QAqbtU6uqxBKrdMuG4A9OmiE6U4GrfB3qGpZsPNKyjWWS2RyuyZIoxXu GMtZhks3dMnpQy6nWLssWpenbn364UMLvagUQEZxOJBhLYtH6aIiCmCC+pB4ZDiPurG6 K45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pYCQsdb9lFNoGC//JVJy9DmkSiCcNUL/pVux5z1LI40=; b=X2Rz4eR/RQCaN3ezYQrrU15BmqA5KMaUtjOvMd+f2ImPxuUlnz7RhxyDkxYg31B+oD dBvnJ8PqOodkgb42Wehfz27kussW+RPrBVXPUUtqdXFYpDCf6X0061N2I2hxUwhEmryJ 1YGP4v2i+PwDwe5l/aZaaPhaixgPFZGLWF8b6fd1gEWEnhK6kHV+jKPVUJYrNMaxYKmS tlmXvD7bX2u0K0W7cGgYySrWHt1nbJbG0S2zdZL1vEvgmtT2dWMDtBbo8WJ6L9ambnfn Ygf3dQ+P6dqgv+4zOpRlp6ipzaxOpXkcn14K2QyPypQVCFLYBSt90bD81pwoSmIJZxSK Z7lg== X-Gm-Message-State: APjAAAVSzAMb0+GvxxbG6AjVkra7dHkQM4uugwRWC5+B3PvB5XXJH15l ReAKzZfbstHwrToGJNjrXLjTFz23 X-Google-Smtp-Source: APXvYqwhBDExNvP4ZPFUIHhz8Wo4IMHXz4bzdUI2uxCf7sIAvIukuX/Eloaa4x9IKANvjKu6X37ngQ== X-Received: by 2002:ac8:2a99:: with SMTP id b25mr2858612qta.223.1561638471111; Thu, 27 Jun 2019 05:27:51 -0700 (PDT) Received: from [192.168.10.123] (ool-2f1481cf.dyn.optonline.net. [47.20.129.207]) by smtp.gmail.com with ESMTPSA id e125sm835290qkd.120.2019.06.27.05.27.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 05:27:50 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-2D1E786F-89B7-4381-8BB9-D52B82D99CC6 Mime-Version: 1.0 (1.0) From: Robert Weiner X-Mailer: iPhone Mail (16E227) In-Reply-To: Date: Thu, 27 Jun 2019 08:27:49 -0400 Content-Transfer-Encoding: 7bit Message-Id: References: <83k20h5m2x.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Apple-Mail-2D1E786F-89B7-4381-8BB9-D52B82D99CC6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Jun 26, 2019, at 10:20 PM, Robert Weiner wrote: >=20 > I think all my changes are in the first message here. Lars, can you see a= bout integrating from there? Thanks. >=20 Plus, this message now that I have re-read the thread. I think the main iss= ue was just documenting the changes in NEWS, Changes, the manuals, etc. I h= ave been using these patches for all this time now with Hyperbole=E2=80=99s c= ross-frame drags on multiple platforms under Emacs 26 without incident. It w= ould be great to see this moved forward. =E2=80=94 Bob Robert Weiner writes: I wrote: >=20 > =E2=80=8BThe issue, to recap, is that I can't find a function that > will report the window that a mouse release button event > occurs in if the depress and release are in different frames > (for Emacs 25). >=20 > In fact, the release event (drag event) contains the wrong > frame (that of the depress rather than the release). The wrong=20 > frame is also reported by mouse-position and mouse-pixel-position, > so window-at can't be used either. Show Quoted Content >=20 > =E2=80=8BThe issue, to recap, is that I can't find a function that > will report the window that a mouse release button event > occurs in if the depress and release are in different frames > (for Emacs 25). >=20 > In fact, the release event (drag event) contains the wrong > frame (that of the depress rather than the release). The wrong=20 > frame is also reported by mouse-position and mouse-pixel-position, > so window-at can't be used either. The following is a temporary fix for the mouse-position and mouse-pixel-position part of the problem. Something needs to be fixed in the original functions in the C code, though. -- Bob ;; =46rom mouse-position: ;; f =3D SELECTED_FRAME (); ;; XSETFRAME (lispy_dummy, f); ;; It seems like the XSETFRAME macro is not properly copying the value of f= on initial frame selection under the macOS window system. ;; The problem occurs on other systems as well, e.g. Emacs 25.2 under Windo= ws 7. ;; The function below is a temporary fix for this. (setq mouse-position-function (lambda (frame-x-dot-y) "Under macOS, mouse-position and mouse-pixel-position sometimes fail to r= eturn the selected-frame (returning the prior frame instead); fix that here.= " (setcar frame-x-dot-y (selected-frame)) frame-x-dot-y)) --Apple-Mail-2D1E786F-89B7-4381-8BB9-D52B82D99CC6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Jun 26, 2019, at 10= :20 PM, Robert Weiner <rswgnu@gmail.c= om> wrote:

I think all my changes are in the first message here.  Lars, can yo= u see about integrating from there?  Thanks.

Plus, this message now that I have re-rea= d the thread.  I think the main issue was just documenting the changes i= n NEWS, Changes, the manuals, etc.  I have been using these patches for= all this time now with Hyperbole=E2=80=99s cross-frame drags on multiple pl= atforms under Emacs 26 without incident.  It would be great to see this= moved forward.  =E2=80=94 Bob

Robert Weiner <rsw@gnu.org> w= rites:

I wrote:
Show Quoted Content

The following is a temporary fix for the mo= use-position and
mouse-pixel-position part of the problem.  Somethin= g needs to be fixed
in the original functions in the C code, though. &nbs= p;-- Bob

;; =46rom mouse-position:
;;    f =3D SELE= CTED_FRAME ();
;;    XSETFRAME (lispy_dummy, f);
;; &nb= sp;It seems like the XSETFRAME macro is not properly copying the value of f o= n initial frame selection under the macOS window system.
;;  The pro= blem occurs on other systems as well, e.g. Emacs 25.2 under Windows 7.
;;=  The function below is a temporary fix for this.
(setq mouse-positi= on-function
     (lambda (frame-x-dot-y)
&nbs= p;  "Under macOS, mouse-position and mouse-pixel-position sometimes fai= l to return the selected-frame (returning the prior frame instead); fix that= here."
   (setcar frame-x-dot-y (selected-frame))
  &n= bsp;frame-x-dot-y))

= --Apple-Mail-2D1E786F-89B7-4381-8BB9-D52B82D99CC6-- From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 13:29: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: To: Robert Weiner Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15982757005013 (code B ref 28621); Mon, 24 Aug 2020 13:29:01 +0000 Received: (at 28621) by debbugs.gnu.org; 24 Aug 2020 13:28:20 +0000 Received: from localhost ([127.0.0.1]:56565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACWK-0001In-C5 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 09:28:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACWI-0001Ia-Sa for 28621@debbugs.gnu.org; Mon, 24 Aug 2020 09:28:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Y4z0I2zMJ6MNlrpd07ZJc//MtwanIUPzWX+7fqfI9/s=; b=LVqwwWWpBeoC64cLjdF2sXfN/w P61qn8AVDKIy9ZmQlOKFmA+h4nC4H12uEngNLPATsI9FYobPv1id7WGYJC82Rn2RJgE9ifpsiF3pl WIXbcTeOL7RmrQqCGchZ2r/n0NjFnzUAksi6lDNj0qkxY9CBLXdMIA7LFCrNI/1YU100=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kACW9-0006gH-MQ; Mon, 24 Aug 2020 15:28:12 +0200 From: Lars Ingebrigtsen References: <83k20h5m2x.fsf@gnu.org> X-Now-Playing: Various's _Alefa Madagascar_: "Charles Maurin Poty - Amboliako Fary" Date: Mon, 24 Aug 2020 15:28:07 +0200 In-Reply-To: (Robert Weiner's message of "Thu, 27 Jun 2019 08:27:49 -0400") Message-ID: <874koscgwo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Robert Weiner writes: > On Jun 26, 2019, at 10:20 PM, Robert Weiner wrote: > > I think all my changes are in the first message here. Lars, can you see about > integrating from there? Thanks. > > Plus, th [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Robert Weiner writes: > On Jun 26, 2019, at 10:20 PM, Robert Weiner wrote: > > I think all my changes are in the first message here. Lars, can you see= about > integrating from there? Thanks. > > Plus, this message now that I have re-read the thread. I think the > main issue was just documenting the changes in NEWS, Changes, the > manuals, etc. I have been using these patches for all this time now > with Hyperbole=E2=80=99s cross-frame drags on multiple platforms under Em= acs > 26 without incident. It would be great to see this moved forward. =E2= =80=94 > Bob Can you respin the patch, including the changes to the manuals etc? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 13:30:02 +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: To: Robert Weiner Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.15982757655110 (code B ref 28621); Mon, 24 Aug 2020 13:30:02 +0000 Received: (at 28621) by debbugs.gnu.org; 24 Aug 2020 13:29:25 +0000 Received: from localhost ([127.0.0.1]:56570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACXM-0001KL-Le for submit@debbugs.gnu.org; Mon, 24 Aug 2020 09:29:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACXL-0001K8-0S for 28621@debbugs.gnu.org; Mon, 24 Aug 2020 09:29:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LK8SGZ3W+jCB3RPdwYnia8M1jg2xFpF2lL1ZUmdEqJk=; b=KHMlFYvWlg/bTc8gPoPnmJo6V6 X9i48ss27BieJqN41QSCiGkwJCrwdjjUUgauHvGpXNDZwKFthlOOA494UDEk/+Tq1mThSTbMByzAA Bbs1E91ngmZfOup1IZbK9PiDNn77BH/AVp1s20rfMFPByYCK0D94Nz0jY9DROGqbI6/A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kACXC-0006hS-Jp; Mon, 24 Aug 2020 15:29:17 +0200 From: Lars Ingebrigtsen References: <83k20h5m2x.fsf@gnu.org> X-Now-Playing: Various's _Alefa Madagascar_: "Charles Maurin Poty - Amboliako Fary" Date: Mon, 24 Aug 2020 15:29:13 +0200 In-Reply-To: (Robert Weiner's message of "Thu, 27 Jun 2019 08:27:49 -0400") Message-ID: <87zh6kb2ae.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: (This is the patch itself -- it didn't apply because it was posted as HTML.) diff --git a/lisp/subr.el b/lisp/subr.el index a58a873a33..12d7383600 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1364, 7 +1364, 7 @@ event-start The following accessor functions are used to access [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) (This is the patch itself -- it didn't apply because it was posted as HTML.) diff --git a/lisp/subr.el b/lisp/subr.el index a58a873a33..12d7383600 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1364,7 +1364,7 @@ event-start The following accessor functions are used to access the elements of the position: -`posn-window': The window the event is in. +`posn-window': The window or frame of the event end. `posn-area': A symbol identifying the area the event occurred in, or nil if the event occurred in the text area. `posn-point': The buffer position of the event. @@ -1420,8 +1420,9 @@ posnp (defsubst posn-window (position) "Return the window in POSITION. -POSITION should be a list of the form returned by the `event-start' -and `event-end' functions." +If POSITION is outside the frame where the event was initiated, +return that frame instead. POSITION should be a list of the form +returned by the `event-start' and `event-end' functions." (nth 0 position)) (defsubst posn-area (position) @@ -1448,9 +1449,14 @@ posn-point (defun posn-set-point (position) "Move point to POSITION. Select the corresponding window as well." - (if (not (windowp (posn-window position))) + (if (framep (posn-window position)) + (progn + (unless (windowp (frame-selected-window (posn-window position))) + (error "Position not in text area of window")) + (select-window (frame-selected-window (posn-window position)))) + (unless (windowp (posn-window position)) (error "Position not in text area of window")) - (select-window (posn-window position)) + (select-window (posn-window position))) (if (numberp (posn-point position)) (goto-char (posn-point position)))) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 09:29:37 2020 Received: (at control) by debbugs.gnu.org; 24 Aug 2020 13:29:37 +0000 Received: from localhost ([127.0.0.1]:56573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACXZ-0001Kn-6c for submit@debbugs.gnu.org; Mon, 24 Aug 2020 09:29:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kACXX-0001Ka-Bl for control@debbugs.gnu.org; Mon, 24 Aug 2020 09:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=R5voUGSxKNAfcu8OAsBMx/DQbO5YSyg72x/RW+V/hJY=; b=tTr7FxaFlzvl5XtCOaQtR973he nd8YnDt11hR14PHnBYJ0tLIUTSresEGFl/7gS/IY536f8gPmyCaI9890JzV5FGXhSO34Finm8TGff h25GOfqtCE/mrb32dcXugOU7myMiYFPHPIGKkSLzse9PpYo3wdOibb5RgexSUeHX8IGQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kACXP-0006hi-Jy for control@debbugs.gnu.org; Mon, 24 Aug 2020 15:29:29 +0200 Date: Mon, 24 Aug 2020 15:29:26 +0200 Message-Id: <87y2m4b2a1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28621 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 28621 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28621 + patch quit From unknown Fri Aug 15 20:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Oct 2020 02:07:02 +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: patch To: Robert Weiner Cc: Eli Zaretskii , 28621@debbugs.gnu.org, Robert Weiner Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.160238198230744 (code B ref 28621); Sun, 11 Oct 2020 02:07:02 +0000 Received: (at 28621) by debbugs.gnu.org; 11 Oct 2020 02:06:22 +0000 Received: from localhost ([127.0.0.1]:38883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRQkg-0007zn-9E for submit@debbugs.gnu.org; Sat, 10 Oct 2020 22:06:22 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRQkc-0007zT-Ey for 28621@debbugs.gnu.org; Sat, 10 Oct 2020 22:06:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oaif3ZSm2mffbiSVbb551McZZhTDuBT6ATfj0i81TMI=; b=SKDWNtT6rUjtGZEO2D9TGlgy58 xmPha2jz5huusq6elUC2PyUC4rDELzB/cQcVAnTq7sLNjywknYWsX4GwVU3UyG88RU8jOPkT7ADtT 35z4K6YyeWVQWtoKT/x3r5tiSNzRXhBb194gznelKZ6rHTxMASKOlpZ9rn0nOaj9zFYM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRQkT-00041D-4p; Sun, 11 Oct 2020 04:06:11 +0200 From: Lars Ingebrigtsen References: <83k20h5m2x.fsf@gnu.org> <87zh6kb2ae.fsf@gnus.org> X-Now-Playing: Dictaphone's _M. = Addiction_: "Esc. Meetings" Date: Sun, 11 Oct 2020 04:06:07 +0200 In-Reply-To: <87zh6kb2ae.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 24 Aug 2020 15:29:13 +0200") Message-ID: <877drxtt2o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > (This is the patch itself -- it didn't apply because it was posted as > HTML.) I've now applied this with the changes suggested by Eli, I think. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > (This is the patch itself -- it didn't apply because it was posted as > HTML.) I've now applied this with the changes suggested by Eli, I think. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 10 22:06:27 2020 Received: (at control) by debbugs.gnu.org; 11 Oct 2020 02:06:27 +0000 Received: from localhost ([127.0.0.1]:38886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRQkj-000807-Gl for submit@debbugs.gnu.org; Sat, 10 Oct 2020 22:06:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:56584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRQki-0007zc-0E for control@debbugs.gnu.org; Sat, 10 Oct 2020 22:06:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wmeCZ1laJtKxs36NqBXdbIm9e7/QHBWonRqbib+dou8=; b=rx+JKrACOCGMUpw0XnKJwYQQFc KMVTdXYeimzHJaObOIWwwXlDyqx3MIhX5jF0b1d2AAUvQqKl/+ZthJ24yUXWpJuD3BTstGNzkPzeW hrsfytdwfYDM/6QE7F5USeCdic/fKfVmtCDd1KoTwMZEXwnQvxObpmgqb5L0K2hElcYs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRQka-00041M-DY for control@debbugs.gnu.org; Sun, 11 Oct 2020 04:06:18 +0200 Date: Sun, 11 Oct 2020 04:06:15 +0200 Message-Id: <875z7htt2g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28621 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 28621 fixed close 28621 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 28621 fixed close 28621 28.1 quit