unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Keybindings and changing keyboard layout [was: Writting Greek in Emacs]
Date: Mon, 23 Sep 2024 07:54:24 +0200	[thread overview]
Message-ID: <ZvECkNEYoOoTAlCc@tuxteam.de> (raw)
In-Reply-To: <vcov2f$154i$1@ciao.gmane.io>

[-- Attachment #1: Type: text/plain, Size: 2158 bytes --]

On Sun, Sep 22, 2024 at 06:29:17PM +0700, Max Nikulin wrote:
> > > > > 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.

I don't know either -- to be honest I didn't even know what options are
"out there", so your pointer is very welcome.

I haven't yet found the time to read into bug#43830, on the road ATM.
But I'll sure do.

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

Ugh. They all don't feel pretty. I'm tempted to just put that into my muscle
memory and just switch keyboard layout when necessary. It's just one keystroke
more, and people with some vi experience have a "mode switch" place in their
brains anyway :-)

After reading your answers, my guess is that the only non-ugly approach would
be at the X level.

Thanks & cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2024-09-23  5:54 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
2024-09-23  5:54             ` tomas [this message]
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

  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=ZvECkNEYoOoTAlCc@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=emacs-devel@gnu.org \
    --cc=manikulin@gmail.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).