From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Hlavaty Newsgroups: gmane.emacs.bugs Subject: bug#57372: no-toolkit menu popups do not respect emacs font configuration Date: Thu, 25 Aug 2022 00:59:22 +0200 Message-ID: <87zgftgsdx.fsf@logand.com> References: <87lerek7pt.fsf@logand.com> <83k06y74sy.fsf@gnu.org> <87v8qihxbk.fsf@logand.com> <87czcp29m6.fsf@yahoo.com> <834jy17umv.fsf@gnu.org> <87mtbtipnx.fsf@logand.com> <834jy161rs.fsf@gnu.org> <87h721iian.fsf@logand.com> <83tu614f1k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25531"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 57372@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 01:00:14 2022 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 1oQzM6-0006Wr-1B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 01:00:14 +0200 Original-Received: from localhost ([::1]:37278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQzM4-0002XU-K6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 19:00:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQzLw-0002X8-32 for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 19:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQzLv-00045L-PG for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 19:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQzLu-0003e9-AC for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 19:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Hlavaty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2022 23:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57372 X-GNU-PR-Package: emacs Original-Received: via spool by 57372-submit@debbugs.gnu.org id=B57372.166138196813952 (code B ref 57372); Wed, 24 Aug 2022 23:00:02 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 24 Aug 2022 22:59:28 +0000 Original-Received: from localhost ([127.0.0.1]:48415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQzLL-0003cy-It for submit@debbugs.gnu.org; Wed, 24 Aug 2022 18:59:27 -0400 Original-Received: from logand.com ([37.48.87.44]:53202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQzLK-0003cq-IK for 57372@debbugs.gnu.org; Wed, 24 Aug 2022 18:59:26 -0400 Original-Received: by logand.com (Postfix, from userid 1001) id D026D1A17CC; Thu, 25 Aug 2022 00:59:23 +0200 (CEST) X-Mailer: emacs 28.1 (via feedmail 11-beta-1 I) In-Reply-To: <83tu614f1k.fsf@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:240667 Archived-At: On Wed 24 Aug 2022 at 22:28, Eli Zaretskii wrote: >> >> TTY menus seem fine except the extra > in menu-bar overlaps the next >> >> menu-bar item text. >> > >> > That's by design, btw. >> >> Strange design. Say I want to open the Edit menu. I press F10 and >> suddenly I cannot see the Edit menu anymore. > > ??? The drop-down menu also hides part of the window's text, doesn't > it? More generally, _something_ has to be hidden, because this is a > text-mode terminal: the menu cannot move outside of the frame, where > it wouldn't overlap any of the windows. That is not the issue. Why does the Edit menu dissappear? Because there are three extra charactes drawn over it. Say the menu-bar looks like this: File Edit Options Press F10 and it looks like this: File > t Options Where is my Edit menu? What should I do now? > So why is it important that the Edit menu is hidden, but not that the > whole text below the File menu is suddenly unreadable. Because when I want to open the Edit menu, my attention is on the Edit menu and not on some other stuff somewhere else. After pressing F10, the Edit menu I saw earlier disappears. I expect to see the Edit menu the whole time I am trying to navigate to it. >> What about doing it differently? For no-toolkit Emacs, it would be >> enough for me if the menu simply opened a *Menu* buffer with the >> relevant menu items. All those issues would suddenly disappear. > > That already exists: use tmm-menubar. Thank you for the pointer. It looks like the thing that pops up on F10 when menu-bar-mode is nil. iirc I haven't used it because I found it unuseable but a solution like that could probably work for me. I'll have to try it a bit more. Is there a reason, why is tmm-menubar restricted to tty? The choice seems hardcoded in menu-bar-open. I had to do this: (defun x-menu-bar-open (frame) (with-selected-frame (or frame (selected-frame)) (tmm-menubar))) in order to use tmm-menubar on no-toolkit Emacs. It would be nicer, if the cond in menu-bar-open was replaced with run-hook-with-args-until-success and a customizable open-menu-bar-functions variable.