From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.bugs Subject: bug#28621: Proposed patch for doc of posn-window and code of posn-set-point to handle frame arguments Date: Fri, 29 Sep 2017 12:48:22 -0400 Message-ID: References: <59CE05A4.80701@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1137b054c22e48055a56cc46" X-Trace: blaine.gmane.org 1506703812 28069 195.159.176.226 (29 Sep 2017 16:50:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2017 16:50:12 +0000 (UTC) Cc: 28621@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 29 18:50:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxyUJ-0006oW-0N for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 18:50:07 +0200 Original-Received: from localhost ([::1]:36151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyUQ-00070p-HU for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Sep 2017 12:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxyUK-0006yP-Cz for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxyUE-0000Xf-E9 for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxyUE-0000XG-AH for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dxyUE-0002qV-3p for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2017 12:50:02 -0400 X-Loop: help-debbugs@gnu.org 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: Original-Received: via spool by 28621-submit@debbugs.gnu.org id=B28621.150670374410856 (code B ref 28621); Fri, 29 Sep 2017 16:50:02 +0000 Original-Received: (at 28621) by debbugs.gnu.org; 29 Sep 2017 16:49:04 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by 10.237.34.225 with HTTP; Fri, 29 Sep 2017 09:48:22 -0700 (PDT) In-Reply-To: <59CE05A4.80701@gmx.at> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137608 Archived-At: --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--