From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: bg.jheng@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome Date: Thu, 14 Apr 2022 22:56:29 +0000 Message-ID: References: <8735ihx30j.fsf@yahoo.com> <87ilrdvf5p.fsf@yahoo.com> <877d7tvatx.fsf@yahoo.com> <87bkx4trnl.fsf@yahoo.com> <874k2vu7l7.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005c8ef505dca554b2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54889@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 15 01:06:27 2022 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 1nf8Xj-0001JS-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 01:06:27 +0200 Original-Received: from localhost ([::1]:56396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nf8Xh-0000dB-TA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Apr 2022 19:06:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf8XK-0000cn-5t for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 19:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nf8XJ-0001PZ-Sn for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 19:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nf8XJ-0006li-Lg for bug-gnu-emacs@gnu.org; Thu, 14 Apr 2022 19:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: bg.jheng@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Apr 2022 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54889 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54889-submit@debbugs.gnu.org id=B54889.164997753525979 (code B ref 54889); Thu, 14 Apr 2022 23:06:01 +0000 Original-Received: (at 54889) by debbugs.gnu.org; 14 Apr 2022 23:05:35 +0000 Original-Received: from localhost ([127.0.0.1]:57569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nf8Wt-0006kw-00 for submit@debbugs.gnu.org; Thu, 14 Apr 2022 19:05:35 -0400 Original-Received: from mail-ed1-f54.google.com ([209.85.208.54]:42624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nf8Wq-0006ki-GG for 54889@debbugs.gnu.org; Thu, 14 Apr 2022 19:05:33 -0400 Original-Received: by mail-ed1-f54.google.com with SMTP id t25so8130209edt.9 for <54889@debbugs.gnu.org>; Thu, 14 Apr 2022 16:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=osPupAuPn9Ql8jFwXZtuFf/md4LQ1dZ+rV63cMxXOQ0=; b=hBFbR+SWBzlNvMOdekLznikLafTiVn0eC3/R6033+C03Ptl3Fms/pDy6PSTazFY4Ja KnM6ra2b5quBr7C/dzPMbQgi4rSnceUaVUmzG0mbtWDzeDLuFIu/+X7GjdywdfPapd9s qeAEs7G4mcrsL3Bw6LIGDERfNcpbj0SLpr6cKkX7NmLJNvQrcYsH7FrZIqlkZ4Xev4vy ozNjp7KG3JLLfXA3oo4Ir37qzyLSp5mJj3ft7DLfMl0ToBBiK66MVz71vQ+i/nIjZ9yo R4IYWET87f2VjVUytlQOmzr8prGSxW7lo+ya5Dp+HDpjbGwdVgN1nAdd20QdcAVi7KuQ Li/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=osPupAuPn9Ql8jFwXZtuFf/md4LQ1dZ+rV63cMxXOQ0=; b=1En20vR7vCh15x89OF0z9bzqO3piEMaTmLplkiN6TDmoFIsWdeziH+Ii8x1hPFOixJ w1CG/xGSMASKMJ4zVHa8OR7yFImgkMlN0xXWaYSKctmOnM659T0FxJhIsRsJYjbzlfRn jWZMl/IL0phzNGyy7jI8MZRP8p+CQWfplnmpfrEu1eP5hOrlqyaTApPw1je3k73T2khB 5z/TdWKqXhRMs2R6CruhW/XMdjSsqDANRjT5f6nb1OR8HuojJimVL19OGQaMsHSuMO10 Pm7XB7+W3pSaFgbz5VkxYXwvKCYuA6seSJECJUoS2CXgfjZcqWlO0BkRoopEByMcKfbp TEhQ== X-Gm-Message-State: AOAM531NLwt3YG9e84OHSSRkVosr//GGR71ZAad1zBj48W1GXlYACoAz K8u7rVkXj4wHlSBWr0R3KVut66pReruLd4viEPg= X-Google-Smtp-Source: ABdhPJw/+EFeB1z2bJepnpsCI3MpbEcNl0BfbXAVF+vb6PyvSuvlWmEaa+QOvv5iBqCc5BHfPrygQfexgNjEvfNlrCM= X-Received: by 2002:a05:6402:11d4:b0:419:5a50:75a4 with SMTP id j20-20020a05640211d400b004195a5075a4mr5482317edw.226.1649977526619; Thu, 14 Apr 2022 16:05:26 -0700 (PDT) In-Reply-To: <874k2vu7l7.fsf@yahoo.com> 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:229900 Archived-At: --0000000000005c8ef505dca554b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable i tried the version of emacs today, it still do not give me chance to input , gui emacs freeze when gdb showed the prompt again, i tried to press key before it freeze, the result is showed below: [root@lpc src]# gdb ./emacs -q Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY =3D :0 TERM =3D rxvt-unicode-256color Breakpoint 1 at 0x21284d: file emacs.c, line 412. Breakpoint 2 at 0x1c817a: file xterm.c, line 19763. (gdb) break xterm.c:17399 Breakpoint 3 at 0x1c559f: file xterm.c, line 18527. (gdb) break xterm.c:17399 Note: breakpoint 3 also set at pc 0x1c559f. Breakpoint 4 at 0x1c559f: file xterm.c, line 18527. (gdb) run Starting program: /dev/shm/e29/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff1355640 (LWP 298831)] [New Thread 0x7ffff0a5f640 (LWP 298832)] [Detaching after fork from child process 298833] [Detaching after fork from child process 298834] [New Thread 0x7fffebfff640 (LWP 298835)] [New Thread 0x7fffeb7fe640 (LWP 298836)] [Thread 0x7fffeb7fe640 (LWP 298836) exited] [New Thread 0x7fffeb7fe640 (LWP 298837)] [New Thread 0x7fffeaffd640 (LWP 298838)] [Thread 0x7fffeb7fe640 (LWP 298837) exited] [Thread 0x7fffeaffd640 (LWP 298838) exited] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=3D0x555556112d50, event=3D0x7fffffffd710, finish=3D0x555555e9191c , hold_quit=3D0x7fffffffda40) at xterm.c:18527 18527 if (dpyinfo->supports_xkb (gdb) p xkey.state No symbol "xkey" in current context. (gdb) p dpyinfo->hyper_mod_mask $1 =3D 0 i also tried to comment out that you say this : else if (dpyinfo->xkb_desc->names->vmods[i] =3D=3D dpyinfo->Xatom_Hyper) dpyinfo->hyper_mod_mask |=3D vmodmask; after rebuild, the capital letter can normally insert with shift now. hope it useful. Thanks Po Lu =E6=96=BC 2022=E5=B9=B44=E6=9C=8814=E6=97=A5 =E9= =80=B1=E5=9B=9B =E4=B8=8B=E5=8D=881:18=E5=AF=AB=E9=81=93=EF=BC=9A > bg.jheng@gmail.com writes: > > > I am sorry, i will notice to use 'reply all' since this time. > > > > here is this time i tried: > > > > 1. after 'run' , i do not see gui window, > > i have no way to input, > > here is the result: > > > > $ gdb ./emacs -q > > Reading symbols from ./emacs... > > SIGINT is used by the debugger. > > Are you sure you want to change it? (y or n) [answered Y; input not fro= m > terminal] > > DISPLAY =3D :0 > > TERM =3D rxvt-unicode-256color > > Breakpoint 1 at 0x4ac18: file emacs.c, line 412. > > Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. > > (gdb) break xterm.c:17399 > > Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. > > (gdb) run > > Starting program: /dev/shm/e29/src/emacs > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library "/usr/lib/libthread_db.so.1". > > [New Thread 0x7ffff1356640 (LWP 198258)] > > [New Thread 0x7ffff0ae1640 (LWP 198259)] > > [New Thread 0x7fffebfff640 (LWP 198260)] > > [New Thread 0x7fffeb758640 (LWP 198261)] > > [New Thread 0x7fffeaf57640 (LWP 198262)] > > [New Thread 0x7fffea756640 (LWP 198263)] > > > > Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent > (dpyinfo=3D0x555555e69600, event=3D0x7fffffffd120, finish=3D, > hold_quit=3D0x7fffffffd3f0) at > > xterm.c:18393 > > 18393 if (dpyinfo->supports_xkb > > (gdb) p xkey.state > > No symbol "xkey" in current context. > > (gdb) p dpyinfo->hyper_mod_mask > > $1 =3D 1 > > It seems that your copy of Emacs is slightly out of date, please update > and try again. Thanks in advance! > > But this does say that hyper_mask is set to what is normally ShiftMask > on X. What happens if you comment out this bit of code in the function > `x_find_modifier_meanings'? > > else if (dpyinfo->xkb_desc->names->vmods[i] =3D=3D > dpyinfo->Xatom_Hyper) > dpyinfo->hyper_mod_mask |=3D vmodmask; > > Thanks. > --0000000000005c8ef505dca554b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
i tried the version of emacs today,
it still do not giv= e me chance to input ,
gui emacs freeze when gdb showed the prompt again= ,
i tried to press key before it freeze,
the result is showed below:<= br>
[root@lpc src]# gdb ./emacs -q
Reading symbols from ./emacs...SIGINT is used by the debugger.
Are you sure you want to change it? (y = or n) [answered Y; input not from terminal]
DISPLAY =3D :0
TERM =3D r= xvt-unicode-256color
Breakpoint 1 at 0x21284d: file emacs.c, line 412.Breakpoint 2 at 0x1c817a: file xterm.c, line 19763.
(gdb) break xterm.= c:17399
Breakpoint 3 at 0x1c559f: file xterm.c, line 18527.
(gdb) bre= ak xterm.c:17399
Note: breakpoint 3 also set at pc 0x1c559f.
Breakpoi= nt 4 at 0x1c559f: file xterm.c, line 18527.
(gdb) run
Starting progra= m: /dev/shm/e29/src/emacs
[Thread debugging using libthread_db enabled]<= br>Using host libthread_db library "/usr/lib/libthread_db.so.1".<= br>[New Thread 0x7ffff1355640 (LWP 298831)]
[New Thread 0x7ffff0a5f640 (= LWP 298832)]
[Detaching after fork from child process 298833]
[Detach= ing after fork from child process 298834]
[New Thread 0x7fffebfff640 (LW= P 298835)]
[New Thread 0x7fffeb7fe640 (LWP 298836)]
[Thread 0x7fffeb7= fe640 (LWP 298836) exited]
[New Thread 0x7fffeb7fe640 (LWP 298837)]
[= New Thread 0x7fffeaffd640 (LWP 298838)]
[Thread 0x7fffeb7fe640 (LWP 2988= 37) exited]
[Thread 0x7fffeaffd640 (LWP 298838) exited]

Thread 1 = "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=3D0x55555611= 2d50, event=3D0x7fffffffd710, finish=3D0x555555e9191c <current_finish>= ;, hold_quit=3D0x7fffffffda40) at xterm.c:18527
18527=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (dpyinfo->supports_xkb
(gdb) = p xkey.state
No symbol "xkey" in current context.
(gdb) p d= pyinfo->hyper_mod_mask
$1 =3D 0


i also tried to comment ou= t that you say this :
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 e= lse if (dpyinfo->xkb_desc->names->vmods[i] =3D=3D dpyinfo->Xato= m_Hyper)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 dpyinfo->hyper_mod_mask |=3D vmodmask;

after rebuild,
the = capital letter can normally insert with shift now.
hope it useful.<= br>

Thanks

Po Lu <luangruo@yahoo.com> =E6=96=BC 2022=E5=B9=B44=E6= =9C=8814=E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=881:18=E5=AF=AB=E9=81= =93=EF=BC=9A
bg.jheng@gmail.com= writes:

> I am sorry, i will notice to use 'reply all' since this time.<= br> >
> here is this time i tried:
>
> 1. after 'run' , i do not see gui window,
> i have no way to input,
> here is the result:
>
> $ gdb ./emacs -q
> Reading symbols from ./emacs...
> SIGINT is used by the debugger.
> Are you sure you want to change it? (y or n) [answered Y; input not fr= om terminal]
> DISPLAY =3D :0
> TERM =3D rxvt-unicode-256color
> Breakpoint 1 at 0x4ac18: file emacs.c, line 412.
> Breakpoint 2 at 0x129bc0: file xterm.c, line 19625.
> (gdb) break xterm.c:17399
> Breakpoint 3 at 0x13cb23: file xterm.c, line 18393.
> (gdb) run
> Starting program: /dev/shm/e29/src/emacs
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/usr/lib/libthread_db.so.1"= .
> [New Thread 0x7ffff1356640 (LWP 198258)]
> [New Thread 0x7ffff0ae1640 (LWP 198259)]
> [New Thread 0x7fffebfff640 (LWP 198260)]
> [New Thread 0x7fffeb758640 (LWP 198261)]
> [New Thread 0x7fffeaf57640 (LWP 198262)]
> [New Thread 0x7fffea756640 (LWP 198263)]
>
> Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinf= o=3D0x555555e69600, event=3D0x7fffffffd120, finish=3D<optimized out>,= hold_quit=3D0x7fffffffd3f0) at
> xterm.c:18393
> 18393=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (dpyinfo->supports_xkb > (gdb) p xkey.state
> No symbol "xkey" in current context.
> (gdb) p dpyinfo->hyper_mod_mask
> $1 =3D 1

It seems that your copy of Emacs is slightly out of date, please update
and try again.=C2=A0 Thanks in advance!

But this does say that hyper_mask is set to what is normally ShiftMask
on X.=C2=A0 What happens if you comment out this bit of code in the functio= n
`x_find_modifier_meanings'?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else if (dpyinfo->xkb_desc->names-= >vmods[i] =3D=3D dpyinfo->Xatom_Hyper)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dpyinfo->hyper_mod_mask |=3D v= modmask;

Thanks.
--0000000000005c8ef505dca554b2--