From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Mouse information in xterm. Date: Mon, 14 Sep 2020 21:45:05 +0200 Message-ID: <8CF86FC8-96CD-44EB-8D30-BFE939F09FE3@aol.com> References: <20200914113816.562wa5cwqxdtwnmy.ref@Ergus> <20200914113816.562wa5cwqxdtwnmy@Ergus> <83r1r49yc2.fsf@gnu.org> <20200914162710.c2ic5szp34tvwtib@Ergus> <83h7s09s98.fsf@gnu.org> <20200914181311.fd56gqwn4ntytkqn@Ergus> <83a6xs9ogq.fsf@gnu.org> <20200914190453.wcnptz344vju6msx@Ergus> <838sdc9nnc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20970"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 21:46:50 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHuR8-0005Mo-HT for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 21:46:50 +0200 Original-Received: from localhost ([::1]:57876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHuR7-0001Oc-FL for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 15:46:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHuPn-0000SB-AJ for emacs-devel@gnu.org; Mon, 14 Sep 2020 15:45:28 -0400 Original-Received: from sonic315-14.consmr.mail.bf2.yahoo.com ([74.6.134.124]:46498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHuPe-0007oW-Qo for emacs-devel@gnu.org; Mon, 14 Sep 2020 15:45:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1600112716; bh=1EOPBmHBMvg9d5o7CYNh23qQXK81yFFZxy3kqY2v78A=; h=Date:In-Reply-To:References:Subject:To:From:From:Subject; b=LNrOSA4md6ePg+pfBeH+5xmHW7fPHbEeLY6B/F3NHlZJtfWPu4XK9XQenZfqWQx1IfEk3wdvs4/aBd1Q/smH+ctRr2FCqpWW0+1fvGak5GZ1JzuiHRkObG4iQ+OHd3lHXCneok/4TUkzAMW7fWu1M1N2HQUlkfyoB4gXtGKFCOitqGmIyxaQc6Ne39wkxRvQ5WvS109Mw/buzoWbMQIkNWVKCv1rb+KewtiDGeVjtoYHiCDxf6SBnV9g0McB1U8+BhbFEvl472WU09WzEnfYa9dYZNXgz0H7kRaji4nCnH7A3yL6a84H+T45Wydtt2t/qM4VYtw40gLzsz7U3Gcd/A== X-YMail-OSG: c.CB3ioVM1n8z7wN34m21djjL49Ftsbaeit49mWurHtgiEWsL1x3oj1hLWXt7sE ICn4buMY4XbHVTBCTeAxx81UR6IZLHsXY_4jQe.K_TAJfLKLVQOgko7TGCF01DdlLtcrhygA7juG 0LBEEAqnQumyLa2HepYH1p6aP_BZrglKVlnXI8gBdr6af9KegFSRdde2ahF_CqrfL1BFN0JKyqmO EOBbZzanUU0nrvL1nd_.1zEVSQU6t7NrT28.EBybMvdlzb5NGlRvrRiXTgecscP1ElDTz3HNh2b8 OF.gqBh2a4D8sbw202K8kfjX713g6ka9WhiAKrXu2_qrn0kcm4oU4hozxR4dUiVtFoCZZ5NatfSi iE1xzXBzakbMsKnB7_SMJhIfY_8R7K1RDJKi_x2QD.1XWE.WZlFUPYHVeXanDyZ77.a1QdsWl6cB uOFG72uTsBaHf9Z0boBPnzrpY8mL_zHlJVRmf.ugvqAv4G2u5gRVb5saBBP3gG96hx8XDfbiGqxD ALW3VsOheAvV2QRLJFXKh_UiFmgCHTXkMO5yR.KML5LYwXi7sGSnCBogqLqXQ9bQKOw3cY7z1Zh3 SllertLpAjAwrImPc1r6WghSBvIOxTTXtYdP7KgURGinJmJXeY81vQBtt5Qa82_yLYHokntB2Elu 73buZkob6knAPyLR464KRxaztNa28F7zR82KdsfBv_.7Ou_.EVcdDmxv8Yt665XefhDV7Brq_hiv IRS2GPVc5OjMwAp1PMI5JD1G3RROxszkhjtTOjLZjXfx0_Be2860inlho20aqNbtpbYCfJvR0gdd 0ElwCY0oA0S5Vcy8j4DKLiWeQ8UJAOMQKWhrVt2XLL Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 14 Sep 2020 19:45:16 +0000 Original-Received: by smtp414.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 2e16ea779dfdf19cfbfe2463a8dcb310; Mon, 14 Sep 2020 19:45:13 +0000 (UTC) In-Reply-To: <838sdc9nnc.fsf@gnu.org> X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.134.124; envelope-from=spacibba@aol.com; helo=sonic315-14.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 15:05:00 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255688 Archived-At: On September 14, 2020 9:14:15 PM GMT+02:00, Eli Zaretskii = wrote: >> Date: Mon, 14 Sep 2020 21:04:53 +0200 >> From: Ergus >> Cc: emacs-devel@gnu=2Eorg >>=20 >> On Mon, Sep 14, 2020 at 09:56:37PM +0300, Eli Zaretskii wrote: >> >> Date: Mon, 14 Sep 2020 20:13:11 +0200 >> >> From: Ergus >> >> Cc: emacs-devel@gnu=2Eorg >> >> >> >> When we call x-popup-dialog with t as the first parameter=2E The >function >> >> x_popup_menu_1 tries to get the cursor/mouse position calling >> >> term_mouse_position=2E (As the documentation says) >> >> >> >> The issue is that term_mouse_position always report (0,0) as the >current >> >> position independently of the cursor and mouse actual positions >because >> >> it just copies the values in last_mouse_x and last_mouse_y which >are >> >> zero because nobody updated them, see=2E >> > >> >last_mouse_x and last_mouse_y will change only if you use GPM mouse >on >> >the terminal=2E Otherwise, these variables will remain zero on >> >GNU/Linux=2E So what you see is expected unless you use GPM (do >you?)=2E >> > >> >The doc string of x-popup-dialog says that if POSITION is t, then >the >> >dialog appears at the center of the selected frame=2E So what you see >> >is exactly what the documentation says, and I don't understand what >is >> >the problem you are trying to solve, or why POSITION being t is >> >important to you, or where you expected or wanted the dialog to pop >up >> >or why there=2E Please elaborate, as I feel we are talking past each >> >other=2E >> > >> >I see the same on a GUI frame, btw, so I also don't understand what >> >"works as expected in gui" for you=2E >> > >> >What am I missing? >> > >> x-popup-menu manual says: > >Are we talking about x-popup-menu or x-popup-dialog? You talked about >the latter in all your messages=2E > >So I'm still confused=2E=2E=2E > Sorry I confused them in the mail because in the backend is the same code= =2E The issue is also the same=2E But its my fault=2E >> The part of "if the mouse is not available on a text terminal" then >> doesn't apply to xterm with xterm-mouse-mode?=20 > >Indeed, it doesn't=2E Because AFAIK no one has yet adapted the TTY >menus and dialogs to xterm-mouse-mode=2E Ohh, bad news=2E=20 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E