From: Yuri Khan <yuri.v.khan@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: GTK Emacs and input modules
Date: Sat, 3 Sep 2022 22:59:10 +0700 [thread overview]
Message-ID: <CAP_d_8UHSpCUgodcvzY1wVYu_bHvaoaGUn47Zoao92q2b0sSPA@mail.gmail.com> (raw)
Hello,
Can someone please consult me on Emacs’s interaction with GTK input modules?
Steps:
1. $ emacs -Q
2. C-h k C-S-u
Observed: no reaction.
3. C-S-u
Observed: Emacs gets into a state where it ignores any keys except
ESC, 0-9, a-f, A-F, RET, SPC. Pressing any of these keys except RET
takes it out of this state.
4. C-h k C-; (also C-., C-,, C-0, C-1, C-9)
Observed: C-; is undefined. (C-0, C-1, C-9 run the command digit-argument.)
So: things mostly work but C-S-u doesn’t.
Same behavior with $ GTK_IM_MODULE=ibus emacs.
----
1. $ GTK_IM_MODULE=xim emacs
2–4. same
Observed: C-u (translated from C-S-u) runs the command universal-argument.
; runs the command self-insert-command.
. runs the command self-insert-command.
, runs the command self-insert-command.
0 runs the command self-insert-command.
1 runs the command self-insert-command.
9 runs the command self-insert-command.
So: Now C-S-u works but a bunch of other keys lose their Ctrl.
----
If I set GTK_IM_MODULE to pretty much any other value from the list I
get from running
/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0, C-S-u
displays an underlined letter ‘u’, then ignores any keys except ESC,
SPC, RET, 0-9, a-f, A-F.
----
How can I get all of C-S-u, C-;, C-., C-, C-0, C-1, C-9 keys in GTK Emacs?
(Of course I want C-S-u for insert-char. No, C-x 8 RET is not an
acceptable alternative because every other application uses
Ctrl+Shift+U and I want consistency across my desktop.)
next reply other threads:[~2022-09-03 15:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-03 15:59 Yuri Khan [this message]
2022-09-03 16:03 ` GTK Emacs and input modules Yuri Khan
2022-09-04 0:39 ` Po Lu
2022-09-04 0:38 ` Po Lu
2022-09-04 8:00 ` Yuri Khan
2022-09-04 8:36 ` Po Lu
2022-09-04 9:26 ` Yuri Khan
2022-09-04 12:53 ` Po Lu
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=CAP_d_8UHSpCUgodcvzY1wVYu_bHvaoaGUn47Zoao92q2b0sSPA@mail.gmail.com \
--to=yuri.v.khan@gmail.com \
--cc=help-gnu-emacs@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.