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#57372: no-toolkit menu popups do not respect emacs font configuration Date: Thu, 25 Aug 2022 09:51:08 +0300 Message-ID: <835yig4y03.fsf@gnu.org> 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> <87zgftgsdx.fsf@logand.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 57372@debbugs.gnu.org To: Tomas Hlavaty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 25 09:02:37 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 1oR6sv-00046M-Jk for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 09:02:37 +0200 Original-Received: from localhost ([::1]:54268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oR6su-0003o1-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Aug 2022 03:02:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6ig-0004bt-HR for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oR6ig-0001Wf-7X for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oR6if-0007iV-Q2 for bug-gnu-emacs@gnu.org; Thu, 25 Aug 2022 02:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Aug 2022 06:52:01 +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.166141026729598 (code B ref 57372); Thu, 25 Aug 2022 06:52:01 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 25 Aug 2022 06:51:07 +0000 Original-Received: from localhost ([127.0.0.1]:48686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR6hn-0007hJ-4H for submit@debbugs.gnu.org; Thu, 25 Aug 2022 02:51:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oR6hk-0007gq-TE for 57372@debbugs.gnu.org; Thu, 25 Aug 2022 02:51:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33910) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6hf-0001SL-Gc; Thu, 25 Aug 2022 02:50:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9Qw5Lw556gHE7RVKPrNbKTrdV8qtIzaYO0iuH0Afmd0=; b=kQSCq+tv+MUV WtHtdwH6TdhQ1c7JLBygzVY8s5YhEdJ5dbJaRJeyXFxUajw+Q4XpA1+5yvT7fl7QSpDJzkJHo1Cul 3sXUZDqwHbNtyHab4U/IBl1rYKVnJT8urzkaRddm8kAicIdXXDG8GHVepNdsNgmaiYatFKDT1jLU5 Lk4luxywXTGqNWl7Rv5HSUR02wmmsX/r2yTBZRY9cX+tl8jTmZZOXZSaRUt9CDT0tFgsSn3R8G4qh 7WiFdAWpjZKkoaX1+22e2MKxXr4iGRjb6uXmhdrWcmUkjkwPVig/UaqUsX+F+tNipL/JJ79IIYnqM Q/tvWclhBWZ67v8l3+m7rA==; Original-Received: from [87.69.77.57] (port=4984 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oR6he-0005YB-MS; Thu, 25 Aug 2022 02:50:59 -0400 In-Reply-To: <87zgftgsdx.fsf@logand.com> (message from Tomas Hlavaty on Thu, 25 Aug 2022 00:59:22 +0200) 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:240685 Archived-At: > From: Tomas Hlavaty > Cc: luangruo@yahoo.com, 57372@debbugs.gnu.org > Date: Thu, 25 Aug 2022 00:59:22 +0200 > > >> 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 the File menu has certain width requirements, and because the screen estate is at premium. > 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? If you need to use the File menu, you shouldn't be bothered about the Edit menu. If you want to use the Edit menu, press C-f or the arrow key, and Emacs will close the File menu and open the Edit menu instead. > > 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. If you have a mouse that works on the TTY frames (either GPM or xterm-mouse mode), you can click directly at Edit and open the Edit menu instead of (the default) File menu. Otherwise, use the arrow keys or C-f/C-b to move between the top-level menus. > Is there a reason, why is tmm-menubar restricted to tty? It isn't. It's only the F10 binding that works differently on TTY frames, for reasons of backward compatibility (before TTY menus were available). On GUI frames, you need to invoke tmm-menubar by name instead. (You can, of course, bind F10 to tmm-menubar globally, if that's what you want.) > 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. That's a lot of complexity for very little gain. Binding F10 globally is much easier. And, given the fact that almost no one uses tmm-menubar on GUI frames, I don't see the justification for the added complexity.