all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GTK Emacs and input modules
@ 2022-09-03 15:59 Yuri Khan
  2022-09-03 16:03 ` Yuri Khan
  2022-09-04  0:38 ` Po Lu
  0 siblings, 2 replies; 8+ messages in thread
From: Yuri Khan @ 2022-09-03 15:59 UTC (permalink / raw)
  To: help-gnu-emacs

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.)



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-04 12:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-03 15:59 GTK Emacs and input modules Yuri Khan
2022-09-03 16:03 ` 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

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.