From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jared Finder via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43756: Fix for TTY menus mouse interaction Date: Fri, 02 Oct 2020 12:54:54 -0700 Message-ID: <094def0cf664c29c513b0686929eb808@finder.org> References: <41afb058e440b1b8e681ce38e1f7b014@finder.org> <871rigwv65.fsf@gnus.org> <3d6b6e0f894ab59c3b0df9394182f498@finder.org> <83k0w8e7z8.fsf@gnu.org> Reply-To: Jared Finder Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3832"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.3.15 Cc: 43756@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 21:55:10 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 1kOR94-0000uD-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 21:55:10 +0200 Original-Received: from localhost ([::1]:36440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOR93-0002vp-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 15:55:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOR8w-0002vf-6B for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOR8v-0002J5-Sp for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOR8v-0004TR-Qn for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 15:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jared Finder Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 19:55:01 +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.160166850117187 (code B ref 43756); Fri, 02 Oct 2020 19:55:01 +0000 Original-Received: (at 43756) by debbugs.gnu.org; 2 Oct 2020 19:55:01 +0000 Original-Received: from localhost ([127.0.0.1]:42631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOR8u-0004T9-Nz for submit@debbugs.gnu.org; Fri, 02 Oct 2020 15:55:00 -0400 Original-Received: from greenhill.hpalace.com ([192.155.80.58]:38368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOR8p-0004Sx-Ld for 43756@debbugs.gnu.org; Fri, 02 Oct 2020 15:54:58 -0400 Original-Received: from mail.finder.org (greenhill.hpalace.com [IPv6:2600:3c01::f03c:91ff:fe73:2daa]) by greenhill.hpalace.com (Postfix) with ESMTPSA id 80EC77EB; Fri, 2 Oct 2020 19:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=finder.org; s=2018; t=1601668494; bh=nKVdsMJ5sVCW3gCgbwe9nUz+EdySCArsLs/N0OUArh8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IH3X3I9KqXAvnQcnCIbmpbwXseju4qDb/BdALzjTt/nhuP9Y+arx4pbInTXWyP2yP 2JjuY2bhGxgQdgyEiPQMOEmMhg1/viIStwTZXpVb/YvR8hGIvla69rNqLDbn4wpzD7 BE4mraJTnh8XpLvfIY0h6GC4DdA+PGZOT5XLMgiADqvpaV1VaX8rMx4STenOCi/Q0Q 4OEsBiEOdhrprnXzbfZWQjxuAyugo8ToNq9BUxAJWbeJW34vSeET3BUTNoAedExsSf eD7y2hRpBR/nAGQW1HEx71FYObUV8fEmTmaaTIcDCFi3IJndVHr3YXQoOrfnQ996AZ hm8QMc8TTEmrg== In-Reply-To: <83k0w8e7z8.fsf@gnu.org> X-Sender: jared@finder.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:189676 Archived-At: On 2020-10-02 12:35 pm, Eli Zaretskii wrote: >> 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. On Windows builds, only the M-x tmm-menubar step is broken, with the order in the displayed menu bar being different then in the tmm-menubar popup. This is *only* about text based menus, not the native platform ones. >> 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. I think this may be getting mixed up with my feature proposal on emacs-devel? I did find this bug when working on making the TTY menus work with xterm-mouse-mode and they both affect menus. The patches I attached in that thread follow the pattern you described. This bug report is separable from the rest of that feature. It's also much smaller, just two lines. :) This fixes the current behavior of the command tmm-menubar-mouse, which is bound to . -- MJF