all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs]
Date: Sun, 22 Sep 2024 18:29:17 +0700	[thread overview]
Message-ID: <vcov2f$154i$1@ciao.gmane.io> (raw)
In-Reply-To: <Zu+9bc3jofC0Ue19@tuxteam.de>

>>>> Yes, when I write in Greek I do not have access to emacs keybindings
>>>> (C-b etc).

> On Sat, Sep 21, 2024 at 08:55:15PM +0300, Juri Linkov wrote:
>> This is bug#43830.  Patches welcome.

I am unsure if it is possible to use one character for 
self-insert-command, but another one to lookup in keymaps.

In my notes from 2020 I have
<https://searchfox.org/mozilla-central/source/widget/gtk/NativeKeyBindings.cpp>
see GetEditCommands

On 22/09/2024 13:47, tomas@tuxteam.de wrote:
> Oh, thanks for the pointer. Some reading ahead :)

 From my point of view, reverse-im is no go. Perhaps it might be 
suitable when single keyboard layout is in use, but it can not react to 
frequent layout changes, so e.g. "," jumps from one key to another.

For GNOME users I have seen a package that reacts on D-Bus events. By 
the way, this approach might work even for terminal Emacs frames.

As a workaround, I have a tiny tool that is invoked in response to 
ISO_<First|Last|Prev|Next>_Group as global shortcuts and if the active 
window is Emacs then it forces "us" layout and sends another unique key 
(to switch Emacs input method) using XTest extension. Kwin supports 
keyboard layout per window out of the box, fluxbox requires xxkb.

It has some caveats and I have no idea if something similar is possible 
in Wayland. On the other hand, other attempts to solve the issue, I have 
seen, are even more ugly.




  reply	other threads:[~2024-09-22 11:29 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19 14:43 Writting Greek in Emacs Thanos Apollo
2024-09-19 14:57 ` Greg Farough
2024-09-19 16:12   ` Thanos Apollo
2024-09-19 16:49     ` Greg Farough
2024-09-19 16:19 ` Eli Zaretskii
2024-09-19 16:32   ` Thanos Apollo
2024-09-19 16:42     ` Robert Pluim
2024-09-19 16:44     ` Eli Zaretskii
2024-09-19 17:05       ` Thanos Apollo
2024-09-19 17:44         ` Eli Zaretskii
2024-09-19 18:06           ` Thanos Apollo
2024-09-19 18:27             ` Eli Zaretskii
2024-09-19 19:04               ` Thanos Apollo
2024-09-20  5:56                 ` Eli Zaretskii
2024-09-19 18:03         ` Visuwesh
2024-09-19 18:13           ` Visuwesh
2024-09-19 19:03           ` Thanos Apollo
2024-09-19 18:07         ` Eli Zaretskii
2024-09-19 19:02           ` Thanos Apollo
2024-09-20  5:55             ` Eli Zaretskii
2024-09-20  9:18               ` Thanos Apollo
2024-09-20  9:47                 ` Emanuel Berg
2024-09-20 10:40                 ` Eli Zaretskii
2024-09-20 11:16                   ` Thanos Apollo
2024-09-20 12:24                   ` Thanos Apollo
2024-09-20 12:39                     ` Robert Pluim
2024-09-20 12:55                       ` Thanos Apollo
2024-09-20 13:41                         ` Robert Pluim
2024-09-20 13:35                     ` Eli Zaretskii
2024-09-20 13:54                       ` Thanos Apollo
2024-09-20 14:48                         ` Emanuel Berg
2024-09-20 22:00                           ` Thanos Apollo
2024-09-21  8:19                             ` Eli Zaretskii
2024-09-21 15:31                             ` Emanuel Berg
2024-09-20 14:23 ` Max Nikulin
2024-09-20 23:53   ` Thanos Apollo
2024-09-21  5:40     ` Keybindings and changing keyboard layout [was: Writting Greek in Emacs] tomas
2024-09-21 17:55       ` Juri Linkov
2024-09-22  6:47         ` tomas
2024-09-22 11:29           ` Max Nikulin [this message]
2024-09-23  5:54             ` tomas
2024-09-24  4:22               ` Max Nikulin
2024-09-24 14:10                 ` tomas
2024-09-21  8:23     ` Writting Greek in Emacs Eli Zaretskii
2024-09-23  3:28     ` Max Nikulin
2024-09-23 14:02       ` Thanos Apollo
2024-09-24  3:53         ` Max Nikulin
2024-09-24 14:37           ` Thanos Apollo
2024-09-24 13:54         ` tomas

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='vcov2f$154i$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-devel@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.