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: Thu, 20 May 2021 15:28:49 +0200 Message-ID: <00dafb80-759e-43cb-96f3-15dfa8b4392f@www.fastmail.com> References: <20210509.191718.2116501296691688243.masm@luna.pink.masm11.me> <36aaea82-796d-4f1e-a230-b6be4b342b68@www.fastmail.com> <4fd2cacb-8df1-41ec-8951-ba0d99e33431@www.fastmail.com> <20210520.200227.525100289182643979.masm@luna.pink.masm11.me> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=d61f78b5548a4c87bbd9af785429f20d Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Cc: 48136@debbugs.gnu.org To: "Yuuki Harano" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 20 15:30:19 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 1ljikk-0004Ss-OR for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 15:30:19 +0200 Original-Received: from localhost ([::1]:42678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljikj-0007i3-Oe for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 May 2021 09:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljikW-0007gk-RK for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50090) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljikV-0005vI-C2 for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljikV-0001hr-3l for bug-gnu-emacs@gnu.org; Thu, 20 May 2021 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Elia Nolz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 May 2021 13:30: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.16215173586407 (code B ref 48136); Thu, 20 May 2021 13:30:02 +0000 Original-Received: (at 48136) by debbugs.gnu.org; 20 May 2021 13:29:18 +0000 Original-Received: from localhost ([127.0.0.1]:33403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljijl-0001fG-Py for submit@debbugs.gnu.org; Thu, 20 May 2021 09:29:18 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljijj-0001ex-TY for 48136@debbugs.gnu.org; Thu, 20 May 2021 09:29:16 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A26335C012B; Thu, 20 May 2021 09:29:10 -0400 (EDT) Original-Received: from imap35 ([10.202.2.85]) by compute2.internal (MEProxy); Thu, 20 May 2021 09:29:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lycheese.org; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=l0z04nMdLdGDeu+/KBaPesUr0yuIhLc fV3O6JAd0Whs=; b=CzhLW8WQ4z7oW2sc3fzEteEbDXEjULgxiyqJry8Lzxq+LT9 qHwfU5Xl0qXYpHRZdv905omq7pooWqBfmSbyo6PvwlUAz0dC+AAf3RqTK+Grn24H C+PfnsPHSE7WwrdpC0KfICtJMCvOxYXXJQ3ORk+aRGj4sJBHoRkbJo2LN9bppOzS s8n4Wbwi/NQvgIj1bbw9wvUOw2ZCsKxIgZ1GTJ4VMymmmR2roOgHFQn0bChN0gWK UscH0Yv0dOvXRoGf2DvlcUOPXLicQ3uAdfuHvHeai18turwWI60BDTxQPNVgpXf9 o10UV7To72B/twxRdvzygOBcIDlKUfqKd0sLUWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=l0z04n MdLdGDeu+/KBaPesUr0yuIhLcfV3O6JAd0Whs=; b=U1hWyhYgz+ewxVuXhaMkd5 lqG5tBwwsJU0DJRMRlZAchzrek6BV8mTkYQjOvktRA0fWLMJJD4FmFoGlWMYMfJE 4+GblPFZB7f9ATNxvPSv12wsMJXE/AcE2YIQblIf7+6fgoddEcJVxH4KuGELLD+z U+RmpcNPFTqVewXPdZmGfiOGxXr5ovdCEvKOf5IhwjE0Kp/vwI9iwjLFpdLJQ3I4 vBlGjmpsqWMxq4//Hu0CI2BWJpqg6kFIhowuigP4p+bpXa0FSB6ARsdmoYHll19l yBCnzJEOTSVQGuAvZnFgbq1/+8hOvvqj88xX8Bpu1L04hfOpytzODqJxcVqwJdfg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejuddgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfgfhlihgrucfpohhliidfuceoghhnuhdqvghmrggtshes lhihtghhvggvshgvrdhorhhgqeenucggtffrrghtthgvrhhnpeefkedtjefhheefheffhe dvhffhveffkeefieeiudeljeeuvdejiefggeduueettdenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgnhhuqdgvmhgrtghssehlhigthhgvvg hsvgdrohhrgh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9FDC015A005F; Thu, 20 May 2021 09:29:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <20210520.200227.525100289182643979.masm@luna.pink.masm11.me> 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:206945 Archived-At: --d61f78b5548a4c87bbd9af785429f20d Content-Type: text/plain On Thu, May 20, 2021, at 13:02, Yuuki Harano wrote: > Key events are handled in key_press_event() in pgtkterm.c. > I think `keysym` contains a character code, which is already > interpreted. I stepped through the code with gdb and watched the keysym values. I observed the following values for keysym in this order when pressing "C-L3-i" (sends "C-{") (working case): 65507 (state goes to 4 --> state to 0 and modifiers to 4) 65027 (state becomes 132 --> modifiers becomes 132 and state 128) 123 (no changes to state and modifiers) 65515 (should be me using Super+o to switch workspaces in xmonad) And these for the non working case "C-L3-n" (which sends "(" and should send "C-("): 65507 (state to 4 --> state to 0 and modifiers to 4) 65027 (both state and modifiers become 0) 65515 I was unable to get the keysym of the key itself in the non-working cases. Used breakpoints in pgtkterm.c: 5669 5687 5701 5710 5731 5809 5860 5876 I sadly do not know enough C to understand why this happens. Does this help you at all? Any further information I could provide that would be helpful? --d61f78b5548a4c87bbd9af785429f20d Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Thu, May 20,= 2021, at 13:02, Yuuki Harano wrote:
Key events are handled in key_press_event() in= pgtkterm.c.
I think `keysym` contains a character code, w= hich is already
interpreted.
I stepped through the code with gdb and watched the keysym = values.

I observed the following values for= keysym in this order when pressing "C-L3-i" (sends "C-{") (working case= ):
65507 (state goes to 4 --> state to 0 and modifiers = to 4)
65027 (state becomes 132 --> modifiers becomes 13= 2 and state 128)
123 (no changes to state and modifiers)
65515 (should be me using Super+o to switch workspaces in x= monad)

And these for the non working case "= C-L3-n" (which sends "(" and should send "C-("):
65507 (st= ate to 4 --> state to 0 and modifiers to 4)
65027 (both= state and modifiers become 0)
65515

I was unable to get the keysym of the key itself in the non-work= ing cases.

Used breakpoints in pgtkterm.c:<= br>
5669
5687
5701
5= 710
5731
5809
5860
5876

I sadly do not know enough C to und= erstand why this happens. Does this help you at all? Any further informa= tion I could provide that would be helpful?
--d61f78b5548a4c87bbd9af785429f20d--