From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Elia Nolz" Newsgroups: gmane.emacs.bugs Subject: bug#48136: 28.0.50; [feature/pgtk] ISO_Level5_Shift broken Date: Sat, 08 May 2021 13:50:28 +0200 Message-ID: <313b4b03-e4e4-4a2f-b6af-cf2e47264722@www.fastmail.com> References: <40f57d02-eb19-4e83-b397-039d56b4f046@www.fastmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=704f9213d2ee4347a5d7fbc1659895f2 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38386"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 To: 48136@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 08 17:52:12 2021 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 1lfPFS-0009pe-RZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 17:52:11 +0200 Original-Received: from localhost ([::1]:47244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfPFR-0001ra-Ud for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 11:52:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfPFK-0001q2-Kc for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 11:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfPFK-00082d-Dm for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 11:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfPFK-0002f8-Cp for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 11:52:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <40f57d02-eb19-4e83-b397-039d56b4f046@www.fastmail.com> Resent-From: "Elia Nolz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 May 2021 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48136 X-GNU-PR-Package: emacs Original-Received: via spool by 48136-submit@debbugs.gnu.org id=B48136.162048907110225 (code B ref 48136); Sat, 08 May 2021 15:52:02 +0000 Original-Received: (at 48136) by debbugs.gnu.org; 8 May 2021 15:51:11 +0000 Original-Received: from localhost ([127.0.0.1]:50938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfPET-0002er-LT for submit@debbugs.gnu.org; Sat, 08 May 2021 11:51:11 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:50641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfLV3-0008UX-0e for 48136@debbugs.gnu.org; Sat, 08 May 2021 07:52:01 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 35AAF10F8 for <48136@debbugs.gnu.org>; Sat, 8 May 2021 07:51:55 -0400 (EDT) Original-Received: from imap35 ([10.202.2.85]) by compute2.internal (MEProxy); Sat, 08 May 2021 07:51:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lycheese.org; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=qbFohabLYXR3dENLtmmjt8/WLdTsDfBd+1vOBmX1ris=; b=ihgXADz1 DJvFmLmpTSmNMkHrcskhICqOhpnKqoriGvdWTnHFkNdRwobifUtQseA+MyDW+rh3 wCg/MTT8DTjQq8wf4Q42E4s+ATyPC5OQQl1ZiqREnP1FMg0ydk2MEX1W3KsTPt6d CCfeUM5CkY7hE1/CCtgys/ZWURqBnDCPIJhlMsLFHF9zvOI7c+W5TB/18h5crWyD eW55QFlgsUzWDZ3ku1mvcQWI7YmWRed1olLaFP9F197bjIJdz7EEFws62KOY4Sfz +xyQdM84LjfW6CCH4PbNIw8VJeurnasRJK3c6zAaEcy4e2ct3nzz6wp1TFg3Va6X s1Qo/vz+Be/d8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=qbFohabLYXR3dENLtmmjt8/WLdTsD fBd+1vOBmX1ris=; b=QGIhYHpo8VNXtWBfZY//2sTU7Mizt+IIRGFZMJnum/fp5 7KtSVKj6FyqQDsIVSRagztoFtDvMd9yo3Nav7HbAojauQQJZEbKUKL3jIlDszzLj rJFjCj+AbYVbwqCX54A9cEwBaE4ddYzyS5gzbRv5j4CXBNvbyxHinHbAI38/UGYo KidlJQg2JBmNNN9HPBKJ2nPM+jv1nRkwlC0snHe1O8qlI65nJ8mTA1LO1k6+z7eZ Pf9FtqcqRJnxzpcg+avorlBBGGtgd92G4+Ks8MZYJgxbC3UhVBVhDpKCGfwgESrg QkMkOmgP/JRSTRKb0ViCXA0wPuXhYsQk7eAlNrTQQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeggedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedfgfhlihgrucfpohhliidfuceoghhnuhdqvghmrggtsheslhih tghhvggvshgvrdhorhhgqeenucggtffrrghtthgvrhhnpeefteehgeeihffghefhheehle ffudevkeeitdevuedtkefhffejjeekudetudejgfenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehgnhhuqdgvmhgrtghssehlhigthhgvvghsvg drohhrgh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 601EA15A04C1; Sat, 8 May 2021 07:51:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface X-Mailman-Approved-At: Sat, 08 May 2021 11:51:08 -0400 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:206019 Archived-At: --704f9213d2ee4347a5d7fbc1659895f2 Content-Type: text/plain Addendum: I just tried if the same applied to terminal Emacs by launching it with `emacs -nw` and it does not (presumably because Super and Hyper are not passed from the terminal emulator to Emacs itself). I was able to work around the bug by using `(define-key key-translation-map (kbd "H-") (kbd ""))` etc. for all ISO_Level5 keys but that is a bit too cluncky and static for my tastes. Is there a way to just translate every "H-" binding to just not have the modifier applied? Is there a list of all possible keys Emacs accepts and that I can use to just `map` over the `define-key` statement. xmodmap output: ``` xmodmap: up to 3 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Shift_L (0x32) control Control_L (0x40), Control_R (0x69) mod1 Alt_L (0x85), Meta_L (0xcd) mod2 BadKey (0xcf) mod3 ISO_Level5_Shift (0xcb) mod4 Super_L (0x25), Super_R (0x86), Super_L (0xce) mod5 ISO_Level3_Shift (0x5c) ``` --704f9213d2ee4347a5d7fbc1659895f2 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Addendum:

I just tried if the same applied to terminal Ema= cs by launching it with `emacs -nw` and it does not (presumably because = Super and Hyper are not passed from the terminal emulator to Emacs itsel= f).

I was able to work around the bug by us= ing `(define-key key-translation-map (kbd "H-<down>") (kbd "<do= wn>"))` etc. for all ISO_Level5 keys but that is a bit too cluncky an= d static for my tastes. Is there a way to just translate every "H-" bind= ing to just not have the modifier applied? Is there a list of all possib= le keys Emacs accepts and that I can use to just `map` over the `define-= key` statement.

xmodmap output:

```
xmodmap:  up to 3 keys per modi= fier, (keycodes in parentheses):

shift = ;      Shift_L (0x32),  Shift_R (0x3e)
=
lock        Shift_L (0x32)=
control     Control_L (0x40),  C= ontrol_R (0x69)
mod1      &n= bsp; Alt_L (0x85),  Meta_L (0xcd)
mod2  &nb= sp;     BadKey (0xcf)
mod3  =       ISO_Level5_Shift (0xcb)
mod= 4        Super_L (0x25),  Super_= R (0x86),  Super_L (0xce)
mod5    = ;    ISO_Level3_Shift (0x5c)
```
--704f9213d2ee4347a5d7fbc1659895f2--