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: Tue, 12 Apr 2022 15:10:26 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004c319a05dc7696ae" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36421"; mail-complaints-to="usenet@ciao.gmane.io" To: 54889@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 12 18:51:44 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 1neJjz-0009GV-Gm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 18:51:43 +0200 Original-Received: from localhost ([::1]:57732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neJjy-0003lo-7j for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Apr 2022 12:51:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neJjM-0003k0-6E for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 12:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neJjK-0001cH-9p for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 12:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neJjK-0003WC-9H for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 12:51:02 -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: Tue, 12 Apr 2022 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54889 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164978225713505 (code B ref -1); Tue, 12 Apr 2022 16:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Apr 2022 16:50:57 +0000 Original-Received: from localhost ([127.0.0.1]:49652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neJjC-0003Va-9G for submit@debbugs.gnu.org; Tue, 12 Apr 2022 12:50:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neIIp-0004a5-4h for submit@debbugs.gnu.org; Tue, 12 Apr 2022 11:19:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neIIo-0002kh-WB for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 11:19:35 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:39639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neIIm-0002s2-Lf for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2022 11:19:34 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id g20so22756629edw.6 for ; Tue, 12 Apr 2022 08:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=iRUsYXCuKy6b2bAlyBEytrUFyo8wPHGyeWWgO2myjE4=; b=megXaSRsJbN8XVotHbH9/p4Af4di/aiywNU1Rg/FKXMcnHwQ9HQgoT2sToq/dccRrm S8SxXd/LFW2sA1YqbpRvXSj8h03bQ3COKd7IhyzQswCEwN++tmWJJvHjamgQMnKdYmxw BH7KHQq7vbfBTrndqFVGYKQK5FfYMCZLD8JvuVYCMgGjsN5i/L1fTJSM4IArBZ1ikjSu jm/0POQYiosbZ/Y0HUwp8VknLAo6RlC4MXi9YlIFIqLWb6z3vYoXXSrISapXfTOzJvbd lI/l3bsAqYmADt2YYNzfolTJ3ezS4cCaqC8aimN7H5mkW5rP31o25DGyxrDaydgK0ac8 NuNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iRUsYXCuKy6b2bAlyBEytrUFyo8wPHGyeWWgO2myjE4=; b=VBMbeR0kJNS+G//Y+rKhHxKwq1Ga4XwiQqlVF/r3hNKif5Xwt+FZDG+2L86M6bVFCP 2FHgG14BgAUqkoGiUQZE2VgB26M2oeUZj1ypiKXP4cObDLJP+oQgb0/WweyWZkU2gyp1 CQrq1DEwmiz1QF3c7h/6BQtpD2415GqWSGoJs+ezd0zrSjMp80hhtlFPHaWFx2RAcQeJ NiZ1+G7AuLsiWwwRZxFrzZyj8exULH1iInpWRvOXCK95IxNlxoDRew54fQx7OCaVpLx8 Vu/UgzuAx9mGBnGO1bhYsTh5q0qnqRBIlb/FCMV/j2BJ/OmmAJYtYexyhc/3exZd3lWS enuw== X-Gm-Message-State: AOAM533bcJ/o9Fqk+YgenxbovZkZPU0lF3iEYnQbHEkZuJI1r0xcef7p eZk9jKxqnC7hHKkXvHlxBsfCZxA2A5uGehwKOThH+ZAW X-Google-Smtp-Source: ABdhPJzqDpNf25MMgnMlYmJ4+SEVCEWAqDtaernkJEqiKxKPCvNwi+Zu7qO5Be0CRpE1+5Qyp4OgS+N0JimJ8VRf5j0= X-Received: by 2002:a05:6402:910:b0:41d:9622:3297 with SMTP id g16-20020a056402091000b0041d96223297mr2833537edz.393.1649776769379; Tue, 12 Apr 2022 08:19:29 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=bg.jheng@gmail.com; helo=mail-ed1-x52a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 12 Apr 2022 12:50:53 -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:229772 Archived-At: --0000000000004c319a05dc7696ae Content-Type: text/plain; charset="UTF-8" Hi, first, thanks for solved ibus input problem last time . now, I am struggling to config hot key in normal pc104 layout keyboard for too few key can be set. and tried to use xkb to set extra key level, and work fine in privious emacs v27, 28. because i can't made Caps_Lock to remap to control key working with 'setxkbmap' , so first, using cmd to change RWIN and MENU key in gnome: gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus', 'rime')]" gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier', 'lv3:rwin_switch', 'compose:menu-altgr']" second, using setxkbmap to chang symbols: setxkbmap -model pc104 -layout us -keycodes mykeycode -types mytype -compat mycompat -symbols mysymbol (all files in each dirs under /usr/share/X11/xkb) all keys work normally, my extra key level and group are working fine, but Shift_L, Shift_R are no function when i using emacs -q in v29 . i saw `H-_ is indefined` in minibuffer but no any letter inserted when i tried to input any capital letter . finally, i found it can input capital letter, if i removed modifier_map of shift keys: in xkb_symbols file: // modifier_map Shift { }; // modifier_map Shift { }; // modifier_map Shift { Shift_L, Shift_R }; my xkb files in here: https://drive.google.com/file/d/19_tcP8VSeUYgG9f4zkGEbavbaBOwOLso/view?usp=sharing and using cmd: setxkbmap -model pc104 -layout us -symbols mysymbol or xkbcomp .config/xkb/myxkb_keymap.xkb $DISPLAY now, emacs v29 shift key plus any letter can be inputed capital letter. because the same xkb keymap is woring normally in emacs 27, 28, so i am wonder if there is any difference in mechanisms of keymap in emacs v29? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-07 built on lpc Repository revision: c1a6aa0c3eb1029e3f7f5c3b227d7952bee775b8 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201000 System Description: Arch Linux Configured using: 'configure --with-mailutils' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: zh_TW.UTF-8 value of $LC_NUMERIC: zh_TW.UTF-8 value of $LC_TIME: zh_TW.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq gv subr-x byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45904 8943) (symbols 48 5711 1) (strings 32 15920 1719) (string-bytes 1 512729) (vectors 16 11313) (vector-slots 8 163309 13969) (floats 8 21 33) (intervals 56 373 4) (buffers 992 12)) --0000000000004c319a05dc7696ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
first, thanks for solved ibus input pro= blem last time .

now, I am struggling to config ho= t key in normal pc104 layout keyboard for too few key can be set.
and tr= ied to use xkb to set extra key level, and work fine in privious emacs v27,= 28.

because i can't made Caps_Lock to remap to control key work= ing with 'setxkbmap' ,
so first, using cmd to change RWIN and ME= NU key in gnome:
=C2=A0 gsettings set org.gnome.desktop.input-sources so= urces "[('xkb', 'us'), ('ibus', 'rime'= )]"
=C2=A0 gsettings set org.gnome.desktop.input-sources xkb-option= s "['caps:ctrl_modifier', 'lv3:rwin_switch', 'comp= ose:menu-altgr']"

second, using setxkbmap to chang symbols:=
=C2=A0setxkbmap -model pc104 -layout us -keycodes mykeycode -types myty= pe -compat mycompat -symbols mysymbol
(all files in each dirs und= er /usr/share/X11/xkb)

all keys work normally,
my extr= a key level and group are working fine,
but Shift_L, Shift_R are no func= tion when i using=C2=A0 emacs -q in v29 .
i saw `H-_ =C2=A0 is indefined= ` in minibuffer but no any letter inserted when i tried to input any capita= l letter .

finally, i found it can input capital letter, if i remove= d modifier_map of shift keys:
in xkb_symbols file:
=C2=A0=C2=A0=C2=A0= // modifier_map Shift { <LFSH> };
=C2=A0=C2=A0=C2=A0 // modifier_= map Shift { <RTSH> };
=C2=A0=C2=A0 //=C2=A0 modifier_map Sh= ift { Shift_L, Shift_R };

my xkb files in here:=C2=A0 https://drive.google.com/file/d/19_tcP8VSeUYg= G9f4zkGEbavbaBOwOLso/view?usp=3Dsharing

and using cmd:
setxkb= map -model pc104 -layout us -symbols mysymbol
or
x= kbcomp .config/xkb/myxkb_keymap.xkb $DISPLAY

now, = emacs v29 shift key plus any letter can be inputed capital letter.

b= ecause the same xkb keymap is woring normally in emacs 27, 28,
so i am w= onder if there is any difference in mechanisms of keymap in emacs v29?
<= br>


In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, G= TK+ Version 3.24.33, cairo version 1.17.6)
of 2022-04-07 built on lpcRepository revision: c1a6aa0c3eb1029e3f7f5c3b227d7952bee775b8
Repositor= y branch: master
Windowing system distributor 'The X.Org Foundation&= #39;, version 11.0.12201000
System Description: Arch Linux

Config= ured using:
'configure --with-mailutils'

Configured featu= res:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ = JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIF= Y
PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BAR= S
WEBP X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
value of= $LC_MONETARY: zh_TW.UTF-8
value of $LC_NUMERIC: zh_TW.UTF-8
value of= $LC_TIME: zh_TW.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIE= RS: @im=3Dibus
locale-coding-system: utf-8-unix

Major mode: Lisp = Interaction

Minor modes in effect:
tooltip-mode: t
global-eldo= c-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t=
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-nam= e-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-= cursor-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-m= ark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-= compression-mode: t

Load-path shadows:
None found.

Feature= s:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 dired dired-loaddefs rfc822 mm= l mml-sec password-cache epa derived epg
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 rfc6068 epg-config gnus-util text-property-search time-date se= q gv
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 subr-x byte-opt bytecomp= byte-compile cconv mm-decode mm-bodies
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader c= l-loaddefs
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cl-lib sendmail rf= c2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 iso-transl tooltip eldoc paren electric uniquif= y ediff-hook vc-hooks
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 lisp-fl= oat-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tool-bar dnd fontset image regexp-opt = fringe tabulated-list replace
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rfn-eshadow isearch easymenu ti= mer select scroll-bar mouse jit-lock
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 font-lock syntax font-core term/tty-colors frame minibuffer nadvi= ce
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 simple cl-generic cham geo= rgian utf-8-lang misc-lang vietnamese tibetan
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 thai tai-viet lao korean japanese eucjp-ms cp51932 hebre= w greek romanian
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 slovak czech= european ethiopic indian cyrillic chinese composite
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 emoji-zwj charscript charprop case-table epa-hook = jka-cmpr-hook help
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 abbrev oba= rray oclosure cl-preloaded button loaddefs faces cus-face
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 macroexp files window text-properties overla= y sha1 md5 base64 format env
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = code-pages mule custom widget keymap hashtable-print-readable backquote
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 threads dbusbind inotify lcms2 d= ynamic-setting system-font-setting
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 make-network-process emacs)
<= br>Memory information:
((conses 16 45904 8943)
=C2=A0(symbols 48 5711= 1)
=C2=A0(strings 32 15920 1719)
=C2=A0(string-bytes 1 512729)
= =C2=A0(vectors 16 11313)
=C2=A0(vector-slots 8 163309 13969)
=C2=A0(f= loats 8 21 33)
=C2=A0(intervals 56 373 4)
=C2=A0(buffers 992 12))
=
--0000000000004c319a05dc7696ae--