From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 08:50:06 +0800 Message-ID: <87bkx4trnl.fsf@yahoo.com> References: <8735ihx30j.fsf@yahoo.com> <87ilrdvf5p.fsf@yahoo.com> <877d7tvatx.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21024"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54889@debbugs.gnu.org To: bg.jheng@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 14 02:51:10 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 1nenhW-0005IN-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Apr 2022 02:51:10 +0200 Original-Received: from localhost ([::1]:33056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nenhV-0000yZ-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Apr 2022 20:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nenhO-0000yP-H1 for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2022 20:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nenhO-0003nP-5o for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2022 20:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nenhO-000535-4Y for bug-gnu-emacs@gnu.org; Wed, 13 Apr 2022 20:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Apr 2022 00:51:02 +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.164989742419359 (code B ref 54889); Thu, 14 Apr 2022 00:51:02 +0000 Original-Received: (at 54889) by debbugs.gnu.org; 14 Apr 2022 00:50:24 +0000 Original-Received: from localhost ([127.0.0.1]:54410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nengm-00052B-8A for submit@debbugs.gnu.org; Wed, 13 Apr 2022 20:50:24 -0400 Original-Received: from sonic313-9.consmr.mail.ne1.yahoo.com ([66.163.185.32]:34038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nengk-00051v-M8 for 54889@debbugs.gnu.org; Wed, 13 Apr 2022 20:50:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649897416; bh=0Q972xnZRC1vFiyki1NRBmvGEKphMaRDgOY2C2vEaYo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=retXGCtOXMH8g/G1SS9r1vgUwjaUe5EN/V08Rclh0MR1+1J2hIDWbINiY+37R3LGJkt3p9to2UtAkl7vX7jFwrNvw6M33hEXmgE5cdHDz2BDaXsbjAeeBqTQIlLloogWi3VWVue0LisyFy4f+C/YT4QBnbJEB7XEg8glOmyIuKyGr9cekp57FI2fSHp01BIygM7echNBKna7B7eCFWS5unbTCKglNoAbEasElT2Oc9l4RxVO35SiKPHBYQPnESbkpH4gbrbqC7IppAfyb2jGFscBD46qcZ1LK+HEsh534EqjtHsxJLYWk8rS7golFEuEJBQhkIkOrK+GkEpVwS4edw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1649897416; bh=jdnIZIWUFOsX9lfPZAE6Rh6a7OIE7n5K6/e+hoKEmx5=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Q6OIbRG/20EUWg9lhxAeSh1TYtZ7Hgf53Ld8VTpjmNfjlh+K3Co5md1NVc83ADeEzttyW0rwJkJ4gDiFyqvmuxGELwivnQN46Ujo7Briqmt6qslQfAdwVb1rzM1d2J3m2qs811HFcu4w+WbgDb3g9PZXAlUYJTLvCQx77jbLyKKfPQEEpCwgW4lodn2yIRPcEH1hBgvKV3QsH7sVBqZeNNIFhbhWBIgnazn/tjnrknTs/bCxHyZx/m4+hJlyVCeoF0faJo80WOjE02AEoFqe9/t4I0LmDeAmlIkc5OTEPDcZ+W0XHi7u2RE8jpOogo8/m5nEl3lx/pK6z4ZSwyYJfQ== X-YMail-OSG: Tua0IfkVM1moR2DSFHQHYVqiSZdmajVLqeTexpzIVSZgIoA3GfdnVzrz0Kxz3iw FERVMSd670BcSnhPn9xzN9xZWuE5Oo0AWkUz01qCzCEpEttIW5fEeEfyy77B3k57samyJYeUhqeE tJ1sUZu_wAvjKxnANzRofODpeDFnxYCKK56bH85wzKZwbm52zb60vA_2as9PIhTTonFNXJkanPMg xSGpz_zmPTN7xcP_NBT57wmKlOijoYN5jkTz4GLzIq7VFHh7SCC7poESHelIfJH9omcp.avl0IgF v0qbo52TNaxVnp91tH.UleHjqKsFapSgU5081ANq2YPQSOW_Yy5bvqt2kHMNygCCs3Xpn4PS8PMD NQbrx8Jksz1kqPP_xdhrTC22NN373.GrGjQWJ88yHkweuzCJhJRDp5clHvbvjjt0WoD3lrs2f7_N cphyD.P_T8CWlowyIDxLltVqgFNPchXa977hpULwWWlki4annRA480h50iYop01jLaCpvBDZn9md UrI6KunOuaw0ungE73.JDUaVZgJUxETzQAmBjuuwt0o88GYIQwfOKzdGQ0bGIPHv7FRJNZd3I4UZ hlp.DFxg0bzRD44OAa_ZwlWPRkJYakPY9kN7y73gkwT_T8mqo5zGg1ofBj8is9_DuIfsfSUC9XkM XKwsMMtJVgHZ.cJknRQScJ19Q_3gNvgLuNoNCj0AhdKhUx4YQ6TfYC6IKw5_yilhxpbKbkVh_Vuo wGuhdFTXCDKqMvwJcWgIZnDiQwdv9AwtXLEwxjW12lTdhhAMFcQgz5kunvJbH2S4NwNAMG79LUc2 6tzjIQaySfp8XCuNPJ9iZKQhE8X88dY_yQFeWzIUuZ X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Thu, 14 Apr 2022 00:50:16 +0000 Original-Received: by hermes--canary-production-sg3-65d7bd97b5-p7hgv (VZM Hermes SMTP Server) with ESMTPA ID 12d56cd55184a73826e938451caa12c8; Thu, 14 Apr 2022 00:50:11 +0000 (UTC) In-Reply-To: (bg jheng's message of "Wed, 13 Apr 2022 15:40:43 +0000") X-Mailer: WebService/1.1.20001 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:229845 Archived-At: [Seriously, please use "Reply All", otherwise the bug tracker cannot record this conversation. Thanks] bg.jheng@gmail.com writes: > 2. because i am not familier gdb, > i need aide : > a) this is message wnen i enter gdb /dev/shm/e29/src/emacs -q , > > But that probably won't help, since > GTK native input is usually the first thing to go awry when you start > messing with modifier mapping. > > Can you attach a debugger to Emacs, add a breakpoint to this part of > xterm.c: > > xkey.type =3D KeyPress; > xkey.serial =3D xev->serial; > xkey.send_event =3D xev->send_event; > xkey.display =3D dpyinfo->display; > xkey.window =3D xev->event; > xkey.root =3D xev->root; > xkey.subwindow =3D xev->child; > xkey.time =3D xev->time; > xkey.state =3D ((xev->mods.effective & ~(1 << 13 | 1 << 14)) > | (xev->group.effective << 13)); > > =3D=3D=3D> xkey.x =3D lrint (xev->event_x); > xkey.y =3D lrint (xev->event_y); > xkey.x_root =3D lrint (xev->root_x); > xkey.y_root =3D lrint (xev->root_y); > > press "Shift-A", and then show the value of `xkey.state'? > > This should work for you, assuming you're using a fresh copy of Emacs > from the master branch: > > $ gdb path/to/emacs/binary -Q > ... > (gdb) break xterm.c:17399 > ... the breakpoint is hit after pressing the key > (gdb) p xkey.state > > Also, please show the value of dpyinfo->hyper_mod_mask at that time, > like this: > > (gdb) p dpyinfo->hyper_mod_mask > > If the debugger complains about certain values being optimized out, > rebuild Emacs without optimizations according to the instructions in > etc/DEBUG. > > Po Lu =E6=96=BC 2022=E5=B9=B44=E6=9C=8813=E6=97=A5 = =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=884:58=E5=AF=AB=E9=81=93=EF=BC=9A > > bg.jheng@gmail.com writes: > > > 1. xmodmap is outputed: > >=20=20 > > xmodmap: up to 3 keys per modifier, (keycodes in parentheses): > > > > shift Shift_L (0x32), Shift_R (0x3e) > > lock=20=20=20=20=20=20 > > control Control_L (0x25), Control_L (0x42), Control_R (0x69) > > mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) > > mod2 Num_Lock (0x4d) > > mod3 ISO_Last_Group (0x87), Mode_switch (0xcb) > > mod4 Super_L (0x85), Super_L (0xce), Hyper_L (0xcf) > > mod5 BadKey (0x5c), ISO_Level3_Shift (0x86) > > > > 2-1. i tried these cmd: > > ./configure --with-xinput2 > > then=20 > > make -j 4 > > > > after done: > > emacs -q -xrm 'Emacs.useXIM: false' > > > > still the same, if i press Shift+A , minibuffer showed "H-a is u= ndefined" and no capital letter inputed. > > > > 2-2. could you teach me how to tuen on 'x-gtk-use-native-input' ? > > i have no comprehensive knowlage about linux in now. > > Hi,=20 > > >> (setq x-gtk-use-native-input t).=20 > > as you expect, after excute it still can't input capital letter with= shift key. > > >> Can you attach a debugger to Emacs, add a breakpoint to this part of > xterm.c: > > unfortunally, in this step, my base knowlage not enough,=20 > here is the result: > 1.git clone https://github.com/emacs-mirror/emacs to /dev/shm/e29/ > 2. after ./configure then build, cd ./src > gdb ./emacs -q > > first, a lot message occured, > i put these text in ~/.config/gdb/gdbinit , after google: > add-auto-load-safe-path /dev/shm/e29/src/ > set auto-load safe-path /dev/shm/e29/src/ > hope it is a right way.=20=20=20=20=20=20=20=20=20=20=20 > > 3. then execute: > $ gdb ./emacs -q=20 > 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 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. You forgot to enter "run" and then press Shift-A here once the input focus shifts to the Emacs window. I'm sorry for not mentioning that earlier. Thanks.