From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Gregory Heytings <gregory@heytings.org>
Cc: 60711@debbugs.gnu.org, Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
Subject: bug#60711: Compose fails to generate ≤ and ≥ (only those two! and only in emacs!)
Date: Tue, 17 Jan 2023 08:41:12 +0800 [thread overview]
Message-ID: <877cxm9emv.fsf@yahoo.com> (raw)
In-Reply-To: <5583fd58381a0c2e81d1@heytings.org> (Gregory Heytings's message of "Mon, 16 Jan 2023 12:31:45 +0000")
Gregory Heytings <gregory@heytings.org> writes:
> What do you mean? Conceptually the code does this:
>
> while (XPending (display))
> {
> XNextEvent (display, &event);
> if (XFilterEvent (&event, None) == True)
> continue;
> if (event.type == KeyPress)
> {
> XmbLookupString(input_context, &event.xkey, buffer, sizeof (buffer) - 1, &keysym, &status);
> if (status == XLookupChars)
> {
> /* do something with buffer */
> }
> }
> }
>
> There is nothing that must be kept around in that code.
Where do you think the text that is stored in buffer comes from? And
what if the input method choses to commit a keysym?
What if the Xlib character encoding routines do not understand that
particular character?
> I'm sure there are possible complications, but AFAIU they do not
> change the pattern outlined above.
If you get XLookupChars, then half the time the key event you receive is
not a real key event. Many things can go wrong there, so it is
impossible to debug this without knowing exactly what events are being
sent.
next prev parent reply other threads:[~2023-01-17 0:41 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-10 15:13 bug#60711: Compose fails to generate ≤ and ≥ (only those two! and only in emacs!) Marcin Kasperski
2023-01-10 15:15 ` Marcin Kasperski
2023-01-10 16:01 ` Gregory Heytings
2023-01-10 17:07 ` Eli Zaretskii
2023-01-11 7:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11 8:45 ` Gregory Heytings
2023-01-11 10:21 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-11 18:45 ` Marcin Kasperski
2023-01-11 18:49 ` Marcin Kasperski
2023-01-11 18:54 ` Marcin Kasperski
2023-01-11 19:18 ` Marcin Kasperski
2023-01-11 21:15 ` Gregory Heytings
2023-01-11 23:05 ` Andreas Schwab
2023-01-13 14:26 ` Marcin Kasperski
2023-01-13 14:41 ` Marcin Kasperski
2023-01-15 0:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-14 21:54 ` Gregory Heytings
2023-01-11 21:11 ` Gregory Heytings
2023-01-11 20:01 ` Eli Zaretskii
2023-01-11 20:59 ` Gregory Heytings
2023-01-11 21:02 ` Gregory Heytings
2023-01-12 1:25 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-16 9:41 ` Gregory Heytings
2023-01-16 9:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-16 12:31 ` Gregory Heytings
2023-01-17 0:41 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-02-09 11:01 ` Gregory Heytings
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877cxm9emv.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=60711@debbugs.gnu.org \
--cc=Marcin.Kasperski@mekk.waw.pl \
--cc=gregory@heytings.org \
--cc=luangruo@yahoo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).