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: Mouse information in xterm. Date: Mon, 14 Sep 2020 13:38:16 +0200 Message-ID: <20200914113816.562wa5cwqxdtwnmy@Ergus> References: <20200914113816.562wa5cwqxdtwnmy.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12005"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 13:40:33 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 1kHmqW-000320-Vu for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 13:40:32 +0200 Original-Received: from localhost ([::1]:56386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHmqW-0002DR-0h for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 07:40:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHmoW-0008OG-7x for emacs-devel@gnu.org; Mon, 14 Sep 2020 07:38:28 -0400 Original-Received: from sonic313-13.consmr.mail.bf2.yahoo.com ([74.6.133.123]:46073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHmoS-0001d9-UV for emacs-devel@gnu.org; Mon, 14 Sep 2020 07:38:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1600083502; bh=0PX4duQqyqZYQkxdUd4heNCymEPPpTSExF37feiN3VY=; h=Date:From:To:Subject:References:From:Subject; b=gpw88BfypUqCkaG+63GgtSFfmJ8JFqYwrrUsgFMztGNlQ8iKjMhqQY5aDMaJ/MDOBUpRfQ3VY3fJ4KrA8wOAK1larTGOMFqD62aXd66Rt5bJJuoEDTUOyLPx4aA+kPAm8jn1k73R9b6xbB1KvGlIxQU970GGqEK2cRLWU1XhTJb9s+3BIJjBpHuP3M9CHKxTypUePoymX0eu6AExQY0SFOy5D7bt6QzQlENe/xbfxEomUWqT92HTiN3JypBw8tuOgJ/jzMt0XQRCvPGW/bgYSoiYPekEdH9Ngko754RnB+0APr1IdP/6/giCBzTyB3r6CbJ83cS0XZGMJJego9FGxg== X-YMail-OSG: rneKfT0VM1mHS9VyKWmrnv3.WkX4aMrDQ3SnlaYkkKFzosffG_VhqEm42vo1FJV zJtLcbwdIDs98hhx3HtT0OCGoM12gU_WzMO6BV2U0O8Xjm2etjf1WG_FDCR.mvOdh3Shzlw.4lvd KHbosifhre76LIJLqyeEsoS7cSPTnTX6PgDJiEcut.PiC1DAG7piVe9JAjhN5ZeG4uPk1hODA.Hv Bd9EYklvKff5xMpk.4agvVxHRsEmvSW8VbYSetXsIoF08t2KPgTe5uO7KVJGwguPfQb37nMKXr1J H3fIxGNYFHDxKbTGD_1u4FS4ScDTlF7YPS3BM_bpDpX_N6fdTfrHJuozhIdjvcOkkkM.jAobglsw dCeoJko_DFlQOdI8.P0hmb84OwtuqqiAmt5XGwcqdnXJhWdz_ncHW9Ep8yodolU4naHRfzuVmehi cu57SmIlfKvmYc2Ji6bc3zRB5skJVtYld9HYWn5SqmHnNLkWk_9e_11sY2lI2iPBFfa23pKwLChs t0kXvSyWjQcbLo18xLhbCI2UV8sM1j0y5rGS9QyETqnHI4jqC5gyPM7yK1ex0pWhSxisbK5vW0AA 1rJbYaQ86E2sDUKso4Fd1BpxPzAOGc9enc04mFYajZ96gmWN8pB1dCEablJEBm6uS8.I5pDM43Ja uFoEEmR8xrjIhelbMb6OAlum4mfBss3oas8YGXrz8Uq3Y0oXHVHgdITDPtf6a3UkTD7RCqkrOi9A tKnH5CrJLlncU6BhYQnJv39qcGaZAvdRxGtpi_cTiFNOEYJUdoTDSh7oTyJfvQ0IhyLCo83iXwmz t35eH69TZVAZwo5MPNWe8jmTUIj4r27I5b0P7m_vqR Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.bf2.yahoo.com with HTTP; Mon, 14 Sep 2020 11:38:22 +0000 Original-Received: by smtp424.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID eb864890d4623fdd0a23216d7c315763; Mon, 14 Sep 2020 11:38:21 +0000 (UTC) Content-Disposition: inline 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.133.123; envelope-from=spacibba@aol.com; helo=sonic313-13.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/14 07:38:22 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=ham 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:255634 Archived-At: Hi I have a question that I am not sure if this is a bug or a feature. I have been playing with x-popup-menu today and I noticed that in terminal, when we pass t as the first parameter the popup appears in position (0, 0) which is wrong. I debugged the C code and it seems that this position is expected to be computed in x_popup_menu_1 calling: mouse_position_hook which is a pointer to term_mouse_position and the vales are taken there from last_mouse_x and last_mouse_y. The issue is that those values are updated only in term_mouse_movement which is called in handle_one_term_event but that function never triggers my gdb. Is this somehow intended and a limitation of the terminal interface??