unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server
@ 2023-08-24  8:03 Johan Bengtsson
  2023-08-24 10:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Johan Bengtsson @ 2023-08-24  8:03 UTC (permalink / raw)
  To: 65488

To reproduce:
* Map  the "windows key" to Meta_L in your x-server. Assuming the Gnome environment this is done using Gnome tweaks. Set Keyboard & Mouse > Additional Layout Options > Alt and Win behavior to "Meta is mapped to Win"
* Start Emacs
* Press "windows key + x"

Emacs will then complain that "M-s-x" is unmapped.

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33,
 cairo version 1.16.0) of 2023-08-22, modified by Debian built on
 SEUPPLX093
Repository revision: 79daa8ed367235dae549aaf46a8a38567ec70b71
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.12201001
System Description: Ubuntu 22.04.3 LTS

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/29.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/libexec
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/29.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils
 --with-native-compilation --with-cairo --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -ffile-prefix-map=/home/johanb/slask/deb-emacs=.
 -fstack-protector-strong -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP 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 $LC_CTYPE: sv_SE.UTF-8
  value of $LC_MONETARY: sv_SE.UTF-8
  value of $LC_NUMERIC: sv_SE.UTF-8
  value of $LC_TIME: sv_SE.UTF-8
  value of $LANG: C
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Features:
(shadow sort mail-extr emacsbug cus-edit pp cus-start cus-load
dot-region company lsp-mode lsp-protocol yasnippet-snippets yasnippet
xref project tree-widget wid-edit spinner network-stream nsm
markdown-mode color thingatpt noutline outline lv inline ht f f-shortdoc
s ewoc compile magit-submodule magit-blame magit-stash magit-reflog
magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-tag
magit-merge magit-branch magit-reset magit-files magit-refs magit-status
magit magit-repos magit-apply magit-wip magit-log which-func imenu
magit-diff smerge-mode diff diff-mode easy-mmode git-commit log-edit
message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec
epa derived epg rfc6068 epg-config gnus-util text-property-search
time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailheader pcvs-util add-log magit-core magit-autorevert autorevert
filenotify magit-margin magit-transient magit-process with-editor comp
comp-cstr warnings icons shell pcomplete comint ansi-osc ring server
ansi-color magit-mode transient cl-extra edmacro kmacro help-mode
magit-git magit-base magit-section format-spec cursor-sensor crm dash
compat ample-zen-theme time-stamp mic-paren jka-compr useful finder-inf
site-start c-electric-operator vc-svn cmake-mode-autoloads
elpy-autoloads flycheck-autoloads forge-autoloads closql-autoloads
jq-mode-autoloads json-mode-autoloads lsp-ui-autoloads magit-autoloads
pcase magit-section-autoloads git-commit-autoloads package+-autoloads
popup-autoloads realgud-recursive-autoloads lsp-mode-autoloads
markdown-mode-autoloads sideline-autoloads transient-autoloads rx
websocket-autoloads info compat-autoloads yasnippet-snippets-autoloads
package browse-url url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
password-cache json subr-x map byte-opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib 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
native-compile emacs)

Memory information:
((conses 16 482129 60014)
 (symbols 48 32378 9)
 (strings 32 142838 11790)
 (string-bytes 1 3882451)
 (vectors 16 55285)
 (vector-slots 8 951807 39906)
 (floats 8 223 67)
 (intervals 56 432 97)
 (buffers 984 12))





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server
  2023-08-24  8:03 bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server Johan Bengtsson
@ 2023-08-24 10:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-08-24 20:48   ` Stefan Kangas
  2023-09-02 16:19   ` Stefan Kangas
  0 siblings, 2 replies; 4+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-08-24 10:06 UTC (permalink / raw)
  To: Johan Bengtsson; +Cc: 65488

Johan Bengtsson <Johan.Bengtsson@iar.com> writes:

> To reproduce:
> * Map  the "windows key" to Meta_L in your x-server. Assuming the Gnome environment this is done using Gnome tweaks. Set Keyboard & Mouse > Additional Layout Options > Alt and Win behavior to "Meta is mapped to Win"
> * Start Emacs
> * Press "windows key + x"
>
> Emacs will then complain that "M-s-x" is unmapped.

This is a bug in GNOME we've already been appraised of several times.

Emacs now uses the XKB extension to establish the relationship between
virtual modifiers and real modifier bits within an X server, which is
capable of detecting when multiple virtual modifiers are associated with
the same modifier bit.

You probably need to run:

  $ xmodmap

ascertain which modifier bit is bound to Super, and remove the
extraneous virtual modifier from that bit.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server
  2023-08-24 10:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-08-24 20:48   ` Stefan Kangas
  2023-09-02 16:19   ` Stefan Kangas
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2023-08-24 20:48 UTC (permalink / raw)
  To: Po Lu; +Cc: Johan Bengtsson, 65488

> This is a bug in GNOME we've already been appraised of several times.

Do you happen to have a reference to the bug numbers where this was
previously discussed?  Thanks in advance.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server
  2023-08-24 10:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-08-24 20:48   ` Stefan Kangas
@ 2023-09-02 16:19   ` Stefan Kangas
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2023-09-02 16:19 UTC (permalink / raw)
  To: Po Lu; +Cc: Johan Bengtsson, 65488

tags 65488 notabug
close 65488
thanks

Po Lu <luangruo@yahoo.com> writes:

> Johan Bengtsson <Johan.Bengtsson@iar.com> writes:
>
>> To reproduce:
>> * Map the "windows key" to Meta_L in your x-server. Assuming the Gnome
>> environment this is done using Gnome tweaks. Set Keyboard & Mouse > Additional
>> Layout Options > Alt and Win behavior to "Meta is mapped to Win"
>> * Start Emacs
>> * Press "windows key + x"
>>
>> Emacs will then complain that "M-s-x" is unmapped.
>
> This is a bug in GNOME we've already been appraised of several times.
>
> Emacs now uses the XKB extension to establish the relationship between
> virtual modifiers and real modifier bits within an X server, which is
> capable of detecting when multiple virtual modifiers are associated with
> the same modifier bit.
>
> You probably need to run:
>
>   $ xmodmap
>
> ascertain which modifier bit is bound to Super, and remove the
> extraneous virtual modifier from that bit.

It seems like this is not a bug in Emacs, so I'm closing it.

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-02 16:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24  8:03 bug#65488: 29.1; Modifiers stack when modifier keys are remapped in x-server Johan Bengtsson
2023-08-24 10:06 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-24 20:48   ` Stefan Kangas
2023-09-02 16:19   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).