From: Manuel Giraud <manuel@ledu-giraud.fr>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Manuel Giraud <manuel@ledu-giraud.fr>, 60510@debbugs.gnu.org
Subject: bug#60510: 30.0.50; [PATCH] Do not put pointer on first menu item in no-toolkit build
Date: Tue, 03 Jan 2023 14:57:31 +0100 [thread overview]
Message-ID: <87edsbpvp0.fsf@ledu-giraud.fr> (raw)
In-Reply-To: <834jt721aw.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Jan 2023 15:30:15 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
[...]
> Sorry, I don't understand: AFAIK oldXMenu is not used by any build
> other than the no-toolkit build. So why cannot you modify it?
>
> What I wrote above doesn't prevent anyone from making changes, I was
> just thinking aloud whether we should make this particular change.
Yes but if this simple functional change cannot make it into oldXMenu I
don't think that any other will do. But it might be a good thing: as
you and Po Lu pointed out, oldXMenu is this way since the dawn of time
so it should stay as is forever.
I'd like to tackle having another no toolkit backend but I don't know if
I'm up to such a task.
> To answer your more general question: to use faces, you must use the
> Emacs display code to generate the glyphs and deliver them to the
> glass. Basically, you must abandon oldXMenu and re-implement the
> menus using the Emacs display code. The main problem here is that
> menus are drop-down, i.e., they overlap stuff already on the glass,
> and Emacs currently doesn't allow that. (TTY menus pull that trick,
> but they can only get away because all the characters have the same
> dimensions on TTY frames, something that is not true for X display,
> assuming you want to use font parts of the faces, not just their
> colors.) So you'd need some other trick here, maybe using child
> frames?
When I said it was a pipe dream :-)
--
Manuel Giraud
next prev parent reply other threads:[~2023-01-03 13:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-03 10:03 bug#60510: 30.0.50; [PATCH] Do not put pointer on first menu item in no-toolkit build Manuel Giraud
2023-01-03 12:48 ` Eli Zaretskii
2023-01-03 13:09 ` Manuel Giraud
2023-01-03 13:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-03 13:30 ` Eli Zaretskii
2023-01-03 13:57 ` Manuel Giraud [this message]
2023-01-03 13:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87edsbpvp0.fsf@ledu-giraud.fr \
--to=manuel@ledu-giraud.fr \
--cc=60510@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.