From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43756: Fix for TTY menus mouse interaction Date: Fri, 02 Oct 2020 22:35:55 +0300 Message-ID: <83k0w8e7z8.fsf@gnu.org> References: <41afb058e440b1b8e681ce38e1f7b014@finder.org> <871rigwv65.fsf@gnus.org> <3d6b6e0f894ab59c3b0df9394182f498@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7039"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43756@debbugs.gnu.org, larsi@gnus.org To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 21:37:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kOQrk-0001gC-Ph for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 21:37:16 +0200 Original-Received: from localhost ([::1]:56086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOQrg-0006lV-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 15:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOQrW-0006lK-Rt for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOQrW-0000It-Ik for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOQrW-00043k-D5 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43756 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43756-submit@debbugs.gnu.org id=B43756.160166736415538 (code B ref 43756); Fri, 02 Oct 2020 19:37:02 +0000 Original-Received: (at 43756) by debbugs.gnu.org; 2 Oct 2020 19:36:04 +0000 Original-Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOQqa-00042Y-Jm for submit@debbugs.gnu.org; Fri, 02 Oct 2020 15:36:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOQqZ-000422-1Z for 43756@debbugs.gnu.org; Fri, 02 Oct 2020 15:36:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38929) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOQqT-0000E6-9I; Fri, 02 Oct 2020 15:35:57 -0400 Original-Received: from [176.228.60.248] (port=1899 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOQqS-0000N0-Pe; Fri, 02 Oct 2020 15:35:57 -0400 In-Reply-To: <3d6b6e0f894ab59c3b0df9394182f498@finder.org> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189673 Archived-At: > Cc: 43756@debbugs.gnu.org > Date: Fri, 02 Oct 2020 09:45:33 -0700 > From: Jared Finder via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > * Emacs repo from git://git.sv.gnu.org/emacs.git, commit > f6277911eb2c520aec8f0efd80c91999226e3322 > * Run on Debian under Windows Subsystem for Linux 2 (the VM version). > I've also seen this on MacOS and native Win32 builds of Emacs. Native Windows build doesn't support xterm-mouse, and the native mouse clicks work correctly there. If you have a recipe for the native Windows build that shows incorrect menus popping down, please show that. > emacs -Q > M-x ielm > M-x xterm-mouse-mode Ah, xterm-mouse-mode. AFAIR, no one has made TTY menus work with xterm-mouse-mode. The first thing to do is to disable tmm-menubar, and then you need to cause a mouse click call menu-bar-open with the 2nd argument set to the X coordinate of the click.