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: Wed, 24 Aug 2022 19:32:07 +0300 Message-ID: <834jy161rs.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23952"; 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 Wed Aug 24 18:39:40 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 1oQtPo-00064t-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 18:39:40 +0200 Original-Received: from localhost ([::1]:56968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQtPm-00070r-PG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Aug 2022 12:39:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQtJO-00024A-Oc for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 12:33:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQtJO-00024E-4b for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oQtJN-0002BH-MW for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2022 12:33: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: Wed, 24 Aug 2022 16:33: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.16613587298298 (code B ref 57372); Wed, 24 Aug 2022 16:33:01 +0000 Original-Received: (at 57372) by debbugs.gnu.org; 24 Aug 2022 16:32:09 +0000 Original-Received: from localhost ([127.0.0.1]:47965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQtIX-00029m-4c for submit@debbugs.gnu.org; Wed, 24 Aug 2022 12:32:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oQtIV-00029Y-6M for 57372@debbugs.gnu.org; Wed, 24 Aug 2022 12:32:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQtIP-0001qZ-Gi; Wed, 24 Aug 2022 12:32:01 -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=PKWTjBCT0urBHE63ctQOasplo0eWabYVNvZTxA85laA=; b=E+x+1RTazdYj TFcuZX4giKj5L/pBgsXA0VROSSu1PP0u7JQTK3ZpZ9eBQCv0eR+1iK71JiOvPybPg1InxyCgXfJiC VrdrzkBT+FdxztB58TUexU+3oML4hoMeoEyPvZVK4iNFDCtap5nkHu2wzsWh85uWYaD5CGR0SeKLz EeHG4Y02mo/0EZR9Dqk/JQbzXli9yOwYu0Z2TR6pU1pF0KGxcJ5bhWqa+bOX5XHMMdifHJ7fV/WiE XPO5CItqg2A4cLxMLubVJVkYzRwZTOzKRCyoMqwReHGsJrL8beG0IuES4plYeFQLmWzLtbgbUVTS4 ux5vZ7xnSZg2l+0ud87haA==; Original-Received: from [87.69.77.57] (port=3860 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 1oQtIM-00031B-I9; Wed, 24 Aug 2022 12:32:00 -0400 In-Reply-To: <87mtbtipnx.fsf@logand.com> (message from Tomas Hlavaty on Wed, 24 Aug 2022 18:15:14 +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:240645 Archived-At: > From: Tomas Hlavaty > Cc: 57372@debbugs.gnu.org > Date: Wed, 24 Aug 2022 18:15:14 +0200 > > On Wed 24 Aug 2022 at 14:23, Eli Zaretskii wrote: > > Displaying pop-down menus with our display engine is "tricky", as the > > TTY menus experience amply shows. > > What does the tty menus experience show? The implementation is extremely tricky, and basically blocks any input as long as the menu is dropped down. It works by overwriting portions of the frame display's glyph matrices. There are also complications with binding keys to menu commands and with calculating the coordinates where we need to drop down the menu. > TTY menus seem fine except the extra > in menu-bar overlaps the next > menu-bar item text. That's by design, btw. > In principle, it would be enough for me if the no-toolkit menus > worked similar to TTY menus but respected faces instead of alien X > resources. TTY menus work, the tricky issues notwithstanding, because there's only one font on TTY frames, and thus each line of the menu text overwrites some part of exactly one line of the frame display. That is not possible to achieve on GUI frames, because faces and fonts differ. So the same technique as we use for TTY menus will not work for GUI frame,s unfortunately, and if we try going that way in the X no-toolkit build, the code will have to be much more complicated (if it's at all feasible), and I think the result will be uglier.