From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dev Null Newsgroups: gmane.emacs.bugs Subject: bug#66558: 29.1; .Xmodmap Win-key configurations cause keybinding issues Date: Mon, 16 Oct 2023 05:52:16 -0400 Message-ID: References: <87ttqr75cm.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000261d620607d25d90" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66558@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 16 12:44:14 2023 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 1qsL53-000AVT-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Oct 2023 12:44:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsL4Z-0000D6-I2; Mon, 16 Oct 2023 06:43:44 -0400 Original-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 1qsL4U-0008VE-0x for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 06:43:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsL4T-0006Rt-Pe for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 06:43:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsL4r-0001aZ-Vx for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dev Null Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2023 10:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66558 X-GNU-PR-Package: emacs Original-Received: via spool by 66558-submit@debbugs.gnu.org id=B66558.16974529885776 (code B ref 66558); Mon, 16 Oct 2023 10:44:01 +0000 Original-Received: (at 66558) by debbugs.gnu.org; 16 Oct 2023 10:43:08 +0000 Original-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 Original-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 Original-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) In-Reply-To: <87ttqr75cm.fsf@yahoo.com> X-Mailman-Approved-At: Mon, 16 Oct 2023 06:43:03 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272558 Archived-At: --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--