From unknown Fri Jun 20 07:15:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66558 <66558@debbugs.gnu.org> To: bug#66558 <66558@debbugs.gnu.org> Subject: Status: 29.1; .Xmodmap Win-key configurations cause keybinding issues Reply-To: bug#66558 <66558@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:15:51 +0000 retitle 66558 29.1; .Xmodmap Win-key configurations cause keybinding issues reassign 66558 emacs submitter 66558 Dev Null severity 66558 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 15 10:48:54 2023 Received: (at submit) by debbugs.gnu.org; 15 Oct 2023 14:48:54 +0000 Received: from localhost ([127.0.0.1]:53901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs2QF-0000Lr-1x for submit@debbugs.gnu.org; Sun, 15 Oct 2023 10:48:54 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrwkC-0002tN-U3 for submit@debbugs.gnu.org; Sun, 15 Oct 2023 04:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrwjj-0007vd-GB for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 04:44:35 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrwjh-0001Zd-Bu for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 04:44:35 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50305abe5f0so4543363e87.2 for ; Sun, 15 Oct 2023 01:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697359470; x=1697964270; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NhsvEm++FlUXgnZJ3eUR5RBR49oVTj9+ZOI17/Ialf4=; b=fbidXlcfi8njQ20NFC7P1OIRlL1EGEOwQKiB0E+DXdE4FhoeGgITY1Ea1WKlTM2FS0 ATxOeJ1PoOdP95dsLSgK1XWfpC5u9KpJypyKFXLms1JTaoE1udISYaAbmVNvfnCoiiJY wZS3RCo/c34ACUFrMHqSRdp54JAMaHZ+c53LgxvG8rCIO3Ry01Xv1wln+WsetF9T7PCB XeyQwhD1PgBmEGhDQb8GHI5tYFkpkuQWDA3alv+F5QFhRQVgarOtInC6+nToFG9jl83i qAcoTbMRR+NjvwApeO5kfHKrbYrPV5JcuVMLKdxrW3VzrzHGMLA9WIAu60HAKUfAIoSy wH4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697359470; x=1697964270; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NhsvEm++FlUXgnZJ3eUR5RBR49oVTj9+ZOI17/Ialf4=; b=hxw4Yfut40D31vU+7oYqVAS34w8vBmAP+Vkb3UNwPajsGDZBd/bjjZ4RG3UMHKREAa 6xy8JoZVe7JOnPFx6rX/I8ss42SXW0/btsbebV47fkE7XnH2Fl+MA1pTshrGt/t0HOrh olSpDDucVuQVALO/pWV2t1f1D8oqMlYboj5bvdDS/V90NEFvYmpss4nip9yKJ0sEcCLL paqgA+lkGbc57sVWP3fhzytjIQFYmz/baD/Nwlke2ovQJ6RAnNMXjOqwRGD70K0rmUqw wLvKIHRX37wtfkLdSzwpRJAQzemzmLGMgZDB1zU8Qo2zVbcJEWOxTQJotsbRBY0cx0wS xpKQ== X-Gm-Message-State: AOJu0YzkcmoezwuOe5XqCuDZmg41Nh4U1zgebrNpt/QSg6ecr+W3YeGf ZBe6xyrXMz7/imi5yMszWDLtyZpuSGEN6MtBdgoUR3aI8PY= X-Google-Smtp-Source: AGHT+IEdSeUG1SY2Ukn+a/DAosz1b4dGXKDOI/BJIK26zw9+n3SY56E2vyTBnGUCcAqoed2TCfB+kMQd4kONjZvG0Pc= X-Received: by 2002:ac2:5f5a:0:b0:503:7be:c85d with SMTP id 26-20020ac25f5a000000b0050307bec85dmr18431513lfz.35.1697359469591; Sun, 15 Oct 2023 01:44:29 -0700 (PDT) MIME-Version: 1.0 From: Dev Null Date: Sun, 15 Oct 2023 04:44:18 -0400 Message-ID: Subject: 29.1; .Xmodmap Win-key configurations cause keybinding issues To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="0000000000003dc1270607bd4c36" Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=patriot.game@gmail.com; helo=mail-lf1-x134.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 15 Oct 2023 10:48:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --0000000000003dc1270607bd4c36 Content-Type: text/plain; charset="UTF-8" The following lines of my '~/.Xmodmap' file remap my left Win key to Ctrl: remove mod4 = Super_L add control = Super_L When I run GUI Emacs with this in place, entering any keybinding 'C-s-X is undefined', where X is the key that I pressed. E.g. if I press 'C-n', I get the following: 'C-s-n is undefined' In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Arch Linux Configured using: 'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter --localstatedir=/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules --with-x-toolkit=gtk3 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto'' 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 TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 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 puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x 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 rmc iso-transl tooltip cconv 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 seq simple cl-generic indonesian philippine 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 theme-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 xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 36436 12851) (symbols 48 5151 0) (strings 32 13179 1298) (string-bytes 1 373971) (vectors 16 9324) (vector-slots 8 148882 13860) (floats 8 21 23) (intervals 56 234 0) (buffers 984 10)) --0000000000003dc1270607bd4c36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The following lines of my '~/.Xmodmap' file remap = my left Win key
to Ctrl:

remove mod4 =3D Super_L
add control = =3D Super_L

When I run GUI Emacs with this in place, entering any ke= ybinding 'C-s-X
is undefined', where X is the key that I pressed= . E.g. if I press 'C-n',
I get the following:

'C-s-n = is undefined'

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, G= TK+ Version 3.24.38,
cairo version 1.17.8)
Windowing system distribut= or 'The X.Org Foundation', version 11.0.12101008
System Descript= ion: Arch Linux

Configured using:
=C2=A0'configure --sysconfd= ir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib
=C2=A0--with-tree-sitt= er --localstatedir=3D/var --with-cairo
=C2=A0--disable-build-details --w= ith-harfbuzz --with-libsystemd
=C2=A0--with-modules --with-x-toolkit=3Dg= tk3 'CFLAGS=3D-march=3Dx86-64
=C2=A0-mtune=3Dgeneric -O2 -pipe -fno-= plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D2
=C2=A0-Wformat -Werror=3Dform= at-security -fstack-clash-protection
=C2=A0-fcf-protection -g
=C2=A0-= ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Dauto'= ;
=C2=A0'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now= -flto=3Dauto''

Configured features:
ACL CAIRO DBUS FREET= YPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LI= BSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY
PDUMPER PNG RSVG SECCOM= P SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP X11 XD= BE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
=C2=A0 value of = $LANG: C.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode= : Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t<= br>=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren= -mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-sha= dow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t<= br>=C2=A0 blink-cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 inde= nt-tabs-mode: t
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition= -mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode:= t

Load-path shadows:
None found.

Features:
(shadow sor= t mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddef= s rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config g= nus-util text-property-search time-date subr-x mm-decode
mm-bodies mm-en= code mail-parse rfc2231 mailabbrev gmm-utils mailheader
cl-loaddefs cl-l= ib sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils rmc= iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-ho= oks 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 fon= t-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq sim= ple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang = vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 he= brew greek
romanian slovak czech european ethiopic indian cyrillic chine= se
composite emoji-zwj charscript charprop case-table epa-hook
jka-cm= pr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-= loaddefs faces cus-face macroexp files window text-properties
overlay sh= a1 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= xinput2 x multi-tty make-network-process
emacs)

Memory informati= on:
((conses 16 36436 12851)
=C2=A0(symbols 48 5151 0)
=C2=A0(stri= ngs 32 13179 1298)
=C2=A0(string-bytes 1 373971)
=C2=A0(vectors 16 93= 24)
=C2=A0(vector-slots 8 148882 13860)
=C2=A0(floats 8 21 23)
=C2= =A0(intervals 56 234 0)
=C2=A0(buffers 984 10))

--0000000000003dc1270607bd4c36-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 15 20:56:54 2023 Received: (at 66558) by debbugs.gnu.org; 16 Oct 2023 00:56:54 +0000 Received: from localhost ([127.0.0.1]:55018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsBuf-0007F4-Px for submit@debbugs.gnu.org; Sun, 15 Oct 2023 20:56:54 -0400 Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:43829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsBud-0007CK-2S for 66558@debbugs.gnu.org; Sun, 15 Oct 2023 20:56:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697417780; bh=sF+SRl5XS5cQ1UeHKemXhGczU2hHCbzx8UWbolosfn4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=owHnXumyxHXwENIOR46T5P4zkxIDbtlguwKtvoEa7edNvFLCxyGwDgNJdNKklrmLA5grxwIa4/sgzPX4Olp60x7U+8yvrrQRWLspyiNMhxgjkHtMuA1VSSoA9Rpmz3IXGA0GEy0+hVUqbWq2bHDeaPx8p9aOpAvsyW8We3Yw5WVL4BY5vJvWK96jfab6S/UrCMF+kP/UTevHKGWMxb/xqRsYe8bSXm1NYvZ4dy8T1DNAolLWAyt+eFLQCWL5Ock8tiUtorg0TcKlw+iu7v3aXVUIDo0/RnHQ7J9qPWt4ok5QD7KlYxOHNJnu/gmDbUHtDkTKCIZfBbocbHd8giDDsw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697417780; bh=sUiqm9vcPU8J+9nfyNkm/VrxGbbqZ06fqI0bX1jFlNN=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Qi2e/oi4wkTguE9fY8weKQ4JrnEa3+8QWej2t9cYJMYZtiJN1EYNZNXR2zf4iKFFd3WlE4H0ktBxiXyJO3AZVkn74exh436rvJO66HFuvub7JaFcyabjuYPPf117Ler6rytfwsagoFbCY4pJ8e+KEb7KTP2KU5Nf3TGyLfCBad3pB517EQ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juXfO_nkt7olE08OHPTvMtyikPdEgGrpDPyEqPx8agpD_ps3i8znGAt vUNawKzzVmJWvKDw2mHS45.GGEwwSUq_FfmAgcGYBJ4.I9fcjjQMJnRjXjC8kc5DBr_xak3Vv00z d2wV605Td9im7gyWVj7ILBIEsUQGqqNTcDdjoAKq9ScbTHHb8bu7yk_Ah7xyuU3pV7N9q5oiEUJ3 yQL.h.GsNLE4UNEKFFY8of94qpZnMJnk6M8pTiY5sOuXPvkBEGixYvqIedH8_nrAjKKxwkm04_oy I69CFypnZPs0qm2RSJd7fH9reLAmm8MjuDmuHfPB0eL98Rv16.mgfU.NEbw1x9T8Ha8XR X-Sonic-MF: X-Sonic-ID: a4fbe54e-38d6-4171-bcb3-c0b053fdda6b Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Mon, 16 Oct 2023 00:56:20 +0000 Received: by hermes--production-sg3-57f7997989-rvbd2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 32674a3b9390cf88ab9f00c352997baf; Mon, 16 Oct 2023 00:56:13 +0000 (UTC) From: Po Lu To: Dev Null Subject: Re: bug#66558: 29.1; .Xmodmap Win-key configurations cause keybinding issues In-Reply-To: (Dev Null's message of "Sun, 15 Oct 2023 04:44:18 -0400") References: Date: Mon, 16 Oct 2023 08:56:09 +0800 Message-ID: <87ttqr75cm.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 653 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 66558 Cc: 66558@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) Dev Null writes: > The following lines of my '~/.Xmodmap' file remap my left Win key > to Ctrl: > > remove mod4 = Super_L > add control = Super_L > > When I run GUI Emacs with this in place, entering any keybinding 'C-s-X > is undefined', where X is the key that I pressed. E.g. if I press 'C-n', > I get the following: > > 'C-s-n is undefined' My powers of clairvoyance enable me to deduce that another key is bound to control, in all likelihood Control_L. You must remove _every_ key from a real modifier you rebind, or Emacs will rightly attribute to events with it pressed the detritus of previous bindings that remains. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 16 06:43:08 2023 Received: (at 66558) by debbugs.gnu.org; 16 Oct 2023 10:43:08 +0000 Received: from localhost ([127.0.0.1]:55301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsL3v-0001V1-U8 for submit@debbugs.gnu.org; Mon, 16 Oct 2023 06:43:08 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:50679) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsKHS-0008Ep-HH for 66558@debbugs.gnu.org; Mon, 16 Oct 2023 05:52:59 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-507975d34e8so4035544e87.1 for <66558@debbugs.gnu.org>; Mon, 16 Oct 2023 02:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697449948; x=1698054748; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=j5m8yzMyJpWuPp2BJEklynsxRyBQK02wz8X3j0/P/iE=; b=ePPBlqMEKp8Z1SAzTNmoZ/JXXhUUOZeYS3ygXp8xpghMB/5SKzSKkdRpDuoeKufmjf ZRWnyD4828+xkI08oNKcpcY64E9erVfkizm6UgcRLIcuPJI45ArU+xkzdsYICK/rbXSR 0GxlyjAuJrnxqwHRJLSVfF+O62R5Yf9nHn3/JPbPOfHehmamLwWdC8JlxhPmxjpcgEbh u/WQipqnOifhicuBxDlJ2ezM9oP63GH5MHXsioKQ1VFtwGjKjY+j4QoQfy2SIogT/vvq EM0KS4rgDrtjgs1FMP/ekd5jMZQBfS9IyLS5mUI+psTNhRN0kP2f2ZR0d08byaDPBsV3 78Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697449948; x=1698054748; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j5m8yzMyJpWuPp2BJEklynsxRyBQK02wz8X3j0/P/iE=; b=uFakGHcg+bvUSTAXTB/n4jPTo2gx7haSDqr2nC210NoFYUK4RlQ6gZBToV3VSBnfhl aJUeYZzZQKCmhF+1Cht19A3AQoQPm6LddLgZpTxdEaewTeFzCYN4YOU+yNHGXQw4Hhzp N+iW0CEndK5533gwHcOqxtG7TGBHz6DOfDenSTPicAu2fchn3JSd0tUccAfoNrfaMyYo 1ILVzS/wXUTw7b3U0JiG2Q+/uinCGsgt6PesGGdZhfwKh5oyXMHlhFMeKTc3fUKJT7o1 rvzEDwLmxBvP/dh1KrC6/vSZKEpyHaiPVZDWSixtF/LOWeoD2Fdk6Wiil9rKIQe0B1hs HKhA== X-Gm-Message-State: AOJu0YxEvj+sjajk/sh3OTEpj0/swZLSG9pwDW6pBU7YXA4zOQ2QBvHb ZrVXTNRk8LqKp+A4WGK60wP6fVHjCkaoBYeIyaV0aqMk7mo= X-Google-Smtp-Source: AGHT+IFkGgfCFWDJJPZmgIOgCMnJUtmvBoeB3YSkhLSYq0uTkkL9+xGol8N6TatRHD4oDH0Co0W4CgbXLiNbM98mWro= X-Received: by 2002:a05:6512:1327:b0:4f9:586b:dba1 with SMTP id x39-20020a056512132700b004f9586bdba1mr27640240lfu.4.1697449947568; Mon, 16 Oct 2023 02:52:27 -0700 (PDT) MIME-Version: 1.0 References: <87ttqr75cm.fsf@yahoo.com> In-Reply-To: <87ttqr75cm.fsf@yahoo.com> From: Dev Null Date: Mon, 16 Oct 2023 05:52:16 -0400 Message-ID: Subject: Re: bug#66558: 29.1; .Xmodmap Win-key configurations cause keybinding issues To: Po Lu Content-Type: multipart/alternative; boundary="000000000000261d620607d25d90" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66558 X-Mailman-Approved-At: Mon, 16 Oct 2023 06:43:03 -0400 Cc: 66558@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000261d620607d25d90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry, I=E2=80=99m a little confused. The Win key appears to be recognized = by Emacs as the =E2=80=99S=E2=80=99 modifier. If I run Emacs without that .Xmodmap f= ile, and I hit the left win key + n, I get =E2=80=99S-n=E2=80=99. If I use an Xmodmap file= consisting of just those two lines and hit the left win key + n, I get 'C-s-n'. So it appears that after the Xmodmap is read, Emacs is still recognizing my Win key as being bound to super, while other programs on my system don't seem to have that issue. I'm having trouble understanding why keys bound to control are the issue here. On Sun, Oct 15, 2023 at 8:56=E2=80=AFPM Po Lu wrote: > Dev Null writes: > > > The following lines of my '~/.Xmodmap' file remap my left Win key > > to Ctrl: > > > > remove mod4 =3D Super_L > > add control =3D Super_L > > > > When I run GUI Emacs with this in place, entering any keybinding 'C-s-X > > is undefined', where X is the key that I pressed. E.g. if I press 'C-n'= , > > I get the following: > > > > 'C-s-n is undefined' > > My powers of clairvoyance enable me to deduce that another key is bound > to control, in all likelihood Control_L. You must remove _every_ key > from a real modifier you rebind, or Emacs will rightly attribute to > events with it pressed the detritus of previous bindings that remains. > --000000000000261d620607d25d90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I=E2=80=99m a little confused. The Win key appears = to be recognized by Emacs as the =E2=80=99S=E2=80=99 modifier. If I run Ema= cs without that .Xmodmap file, and I hit the left win=C2=A0key + n, I get = =E2=80=99S-n=E2=80=99. If I use an Xmodmap file consisting of just those tw= o lines and hit the left win=C2=A0key + n, I get 'C-s-n'. So it app= ears that after the Xmodmap is read, Emacs is still recognizing my Win key = as being bound to super, while other programs on my system don't seem t= o have that issue. I'm having trouble understanding why keys bound to c= ontrol are the issue here.

On Sun, Oct 15, 2023 at 8:56=E2=80=AFPM Po Lu= <luangruo@yahoo.com> wrote= :
Dev Null <<= a href=3D"mailto:patriot.game@gmail.com" target=3D"_blank">patriot.game@gma= il.com> writes:

> The following lines of my '~/.Xmodmap' file remap my left Win = key
> to Ctrl:
>
> remove mod4 =3D Super_L
> add control =3D Super_L
>
> When I run GUI Emacs with this in place, entering any keybinding '= C-s-X
> is undefined', where X is the key that I pressed. E.g. if I press = 'C-n',
> I get the following:
>
> 'C-s-n is undefined'

My powers of clairvoyance enable me to deduce that another key is bound
to control, in all likelihood Control_L.=C2=A0 You must remove _every_ key<= br> from a real modifier you rebind, or Emacs will rightly attribute to
events with it pressed the detritus of previous bindings that remains.
--000000000000261d620607d25d90-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 16 07:00:30 2023 Received: (at 66558) by debbugs.gnu.org; 16 Oct 2023 11:00:30 +0000 Received: from localhost ([127.0.0.1]:55358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsLKn-00028x-TS for submit@debbugs.gnu.org; Mon, 16 Oct 2023 07:00:30 -0400 Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:37982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsLKj-00028b-MJ for 66558@debbugs.gnu.org; Mon, 16 Oct 2023 07:00:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697453994; bh=fRFl1Nx0dPvXiF1YylN0moOyNQcJftodZHp1rq/1gAU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ISsM8w3tPckywMTIce2O0M/keWXkIg/WiG/hH+6S4fprA2d1bc4mHJ8DR99IsOsqzcfQWcDWrrrzI19QtEAsLh7jMlasg/hHq1cSLq2cp4iDLMPwRsTtuSwmLsHWcgN+V4NeEcBa4bvW2oBUNaioDI3YItzkqtSdK28Sk487/5TAhVBv9vbB6JhlX1eP+a97oxV4844xstsYlU8v0a5vOHniFknoozML51gmt17nHiu4Xgx7EK7btUNtajXgLrlg/jPSCnngjV1ch2dMg4ym281Zu0mnTyX8crVCGqe+TCL5/E9BltAH/dmhXWGmuhMIVsQFiPfE95P5TSlNMppBAQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697453994; bh=mCLCpeM59ZMrNXjmVVcTRi/yYJATkwqCw0EH7O2xb1W=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=OUh//x/hAJRNeg9jy0EUbHXnrkZY19gt8N2PqYJ5c7pxt0U1EXBoEsHcN+ln2fP8QPCDZpKv3by/WodR3yL8hVf1S3Bf5Fpf9+ST5mL6aTY+vHEmORzFKr8x6xEHMN55qQeYkYnZbJ3WChR0+WCk3spnZnY+prFtXHe3dBTRbpzFrkpoxyI8S2syeKvh10Nds3BYMqz9IhQXejsnOoEU9xHZdRbMQ3vCH2CVMfPaqeXke1BiXDF1vA+t3edKSDyvJdL2NtYqsnGC1oHFpfC2S8clj3cXChuWDbre12gpwqdxp9f54MgSNcWSpxHJ5QH7+87Yp26lN/2p9kc1QJql9A== X-YMail-OSG: 9frgXhIVM1nq_0twspoGysbPxTj0FDuGajQdRdPtE67nJEC8TDMoyn5AnzhhDZr I_n_K1hUtiCgAHUkVDXjl96_Ssoj8D_jOqsaUeHFfhsNOwLT_vekwS0BI2KMQhQUiZXfkq3Pb37j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EpvqydlD9EmJ2zgaGjsC.qx4bvofgz35xQCaaDO_xuhmUMJAVo- X-Sonic-MF: X-Sonic-ID: 23e76f95-a961-4159-b25c-f6bf7cc3b4d8 Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Mon, 16 Oct 2023 10:59:54 +0000 Received: by hermes--production-sg3-57f7997989-bg88w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ed2c269c8efb617b69c10673dce0c64f; Mon, 16 Oct 2023 10:59:50 +0000 (UTC) From: Po Lu To: Dev Null Subject: Re: bug#66558: 29.1; .Xmodmap Win-key configurations cause keybinding issues In-Reply-To: (Dev Null's message of "Mon, 16 Oct 2023 05:52:16 -0400") References: <87ttqr75cm.fsf@yahoo.com> Date: Mon, 16 Oct 2023 18:59:45 +0800 Message-ID: <87fs2a7rz2.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1269 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 66558 Cc: 66558@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) Dev Null writes: > Sorry, I=E2=80=99m a little confused. The Win key appears to be recognize= d by > Emacs as the =E2=80=99S=E2=80=99 modifier. If I run Emacs without that .X= modmap file, > and I hit the left win key + n, I get =E2=80=99S-n=E2=80=99. If I use an = Xmodmap file > consisting of just those two lines and hit the left win key + n, I get > 'C-s-n'. So it appears that after the Xmodmap is read, Emacs is still > recognizing my Win key as being bound to super, while other programs > on my system don't seem to have that issue. I'm having trouble > understanding why keys bound to control are the issue here. My mistake. When you rebind Super to a non-virtual modifier bit such as control through xmodmap, the XKB virtual modifier Super is also assigned to that bit. Emacs 29 no longer respects such misconfigurations when the XKB extension is enabled on the X server. Since the control modifier bit is furthermore uniformly interpreted as Control, any event arriving with ControlMask set always matches both the predefined Control modifier and the Super virtual modifier established during display setup. I think the solution is for you to assign the Super keysyms to Control through XKB, while I devise a fix for Emacs 30.