GNU bug report logs - #57372
no-toolkit menu popups do not respect emacs font configuration

Previous Next

Package: emacs;

Reported by: Tomas Hlavaty <tom <at> logand.com>

Date: Tue, 23 Aug 2022 21:09:03 UTC

Severity: normal

Full log


Message #23 received at 57372 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tom <at> logand.com, 57372 <at> debbugs.gnu.org
Subject: Re: bug#57372: no-toolkit menu popups do not respect emacs font
 configuration
Date: Wed, 24 Aug 2022 20:11:54 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Well, "no" is never correct when we deal with software ;-)
>
> But yes, it should be quite a project.  The basic problem here is that
> menus are not displayed by the Emacs display engine, they are
> displayed by a separate code (which we "stole" from X11).
>
> Displaying pop-down menus with our display engine is "tricky", as the
> TTY menus experience amply shows.

Indeed, though it should be easier if each pane is a separate frame.

I've been trying to figure out if it is possible to implement menus as
frames, mostly in Lisp.

The problem is that creating frames is too slow for responsive menus,
and from skimming various pieces of documentation, it seems that there
is no portable way to transfer the grab from the first frame to other
leaf frames as they are created.  The main problems here are Wayland and
macOS, where the APIs required to implement correct menu grabbing
behavior are not exposed by GTK or Cocoa.




This bug report was last modified 2 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.