From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#43830: keyboard layout handling incompatible with rest of the OS Date: Tue, 6 Oct 2020 20:59:31 +0200 Message-ID: References: <87h7r78a5y.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a0402205b1053381" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19344"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43830@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 06 21:00:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPsC2-0004v2-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 21:00:10 +0200 Original-Received: from localhost ([::1]:56818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPsC1-0007ja-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Oct 2020 15:00:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPsBu-0007jT-Fm for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 15:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPsBu-0001OQ-4M for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 15:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPsBu-00078m-1y for bug-gnu-emacs@gnu.org; Tue, 06 Oct 2020 15:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Oct 2020 19:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43830 X-GNU-PR-Package: emacs Original-Received: via spool by 43830-submit@debbugs.gnu.org id=B43830.160201079127401 (code B ref 43830); Tue, 06 Oct 2020 19:00:02 +0000 Original-Received: (at 43830) by debbugs.gnu.org; 6 Oct 2020 18:59:51 +0000 Original-Received: from localhost ([127.0.0.1]:54176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPsBi-00077s-Ow for submit@debbugs.gnu.org; Tue, 06 Oct 2020 14:59:51 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:39836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPsBg-00077g-KL for 43830@debbugs.gnu.org; Tue, 06 Oct 2020 14:59:49 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id d3so4187754wma.4 for <43830@debbugs.gnu.org>; Tue, 06 Oct 2020 11:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F77TdFhfG0wxCrh24kmsnshAfxz3haw1syPY2tw+ngc=; b=NpRKtPqxCPVb7VOpQuiGtlhLLRCTLMeNE8zj09P5xgSP829tuiYbTJT/X6gMVf5f4x i401X78ZR9sR4LCiTZmiqGDMVG3fvYZGA19REdmAaVHV9LStEU+nfKEABy4YqCMORRKJ 0/Lz2M196wWCPz9ukd5qwV9MnXljqA9hV5qdcnOrJkvfEPvOeNpEJdtZRKQPPQ8dObJ9 2NKTeJ7UBfdI3ox+yiXYS0NrwlpF9A2HPyFSYvEK86AiW/C6PwZlWXKSspTp5VAyRMR+ /BdeiJWU1PSWSfFephtLXrwsUBNJBWZblu/Yp7L5ozEp56+QBG4e7t9RfQWr2qEnoLZl auAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F77TdFhfG0wxCrh24kmsnshAfxz3haw1syPY2tw+ngc=; b=cAjunfrNugUerjeeNPCaKbUn24FO5eUo6LUfa0nt3giOBBgUbCavkauAoD4Xop9N+H XRTsmnpln02sKgr4zCtb3qxHCYh2e0rgy/UL7QDjo0W4CLk3/KPTfCQm2LTaGXbyUgyf mu+n0Pjk78N87y+5do8acdxwZOqW3+ZVwgxC5CKu+q20LwBhtz2qVIhCrBHm1+iFG/pg z9fwP+vaTO+RSzAmuqlRrXeGr9iEXE8t5GapbSy53ULlQUPmGP3ASqAjzxlgm0VNUX+U 8o5Xoq33TiCyO0wUeiqQ1nW4OIcpsunbin0vJzXcFfbXFJ7SVo/kUdZWrdIXwDIi2gmc +kCw== X-Gm-Message-State: AOAM533EN3Sn+ju8ZePjirzu/e56LDcp2Y6rTRjejTMXDkzV84fF/kNQ Ul3yo4xl1kFcakjny9lwsQh9qotbu5n7YmdKPQ== X-Google-Smtp-Source: ABdhPJxybd7O0w8on7mASHIIQ0Q65GBpF5wZHYrY5QDL3jbJQ04KKkdG1kzsh4ejo5AVpGOXazOnLCx9Kq2S9KmMk60= X-Received: by 2002:a1c:e444:: with SMTP id b65mr5911930wmh.147.1602010782645; Tue, 06 Oct 2020 11:59:42 -0700 (PDT) In-Reply-To: <87h7r78a5y.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189932 Archived-At: --000000000000a0402205b1053381 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > You can use the package https://github.com/a13/reverse-im.el Mostly works fine, but e.g. C-. in Russian doesn't work as C-/ (undo) for m= e (in Russian layout '.' is on the same key as '/' in English). Pretty sure the correct way would be for Emacs to support this natively, not hack from Elisp side, which has no information about physical keys, only typed characters. > your previous request some years ago Must be more than 10 years ago I guess, I used to type some Russian text back then. Paul On Tue, 6 Oct 2020 at 20:47, Juri Linkov wrote: > > I use English and Russian keyboard layouts. For every single applicatio= n > I > > don't need to care which layout is currently selected for shortcuts, e.= g. > > Ctrl+S and Ctrl+=D0=AB do the same (S and =D0=AB are on the same physic= al key). Of > > course, in Emacs it doesn't work this way: C-s triggers Isearch, but C-= =D1=8B > > "is undefined". > > You can use the package https://github.com/a13/reverse-im.el > that was created from code that I wrote to address your previous request > some years ago. > --000000000000a0402205b1053381 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> You can use the package=C2=A0https://githu= b.com/a13/reverse-im.el

Mostly works fine, but e.g. = C-. in Russian doesn't work as C-/ (undo) for me
(in Russian = layout '.' is on the same key as '/' in English).

Pretty sure the correct way would be for Emacs to support t= his natively,
not hack from Elisp side, which has no information = about physical keys,
only typed characters.

<= div>> your previous request some years ago

= Must be more than 10 years ago I guess, I used to type some Russian
text back then.

Paul

=
On Tue= , 6 Oct 2020 at 20:47, Juri Linkov <j= uri@linkov.net> wrote:
> I use English and Russian keyboard layouts. For every si= ngle application I
> don't need to care which layout is currently selected for shortcut= s, e.g.
> Ctrl+S and Ctrl+=D0=AB do the same (S and =D0=AB are on the same physi= cal key). Of
> course, in Emacs it doesn't work this way: C-s triggers Isearch, b= ut C-=D1=8B
> "is undefined".

You can use the package https://github.com/a13/reverse-im.el=
that was created from code that I wrote to address your previous request some years ago.
--000000000000a0402205b1053381--