GNU bug report logs - #51001
28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk

Previous Next

Package: emacs;

Reported by: Tom Hughes <tom <at> compton.nu>

Date: Mon, 4 Oct 2021 10:36:02 UTC

Severity: normal

Tags: notabug

Found in version 28.0.50

To reply to this bug, email your comments to 51001 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Mon, 04 Oct 2021 10:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Hughes <tom <at> compton.nu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Oct 2021 10:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tom Hughes <tom <at> compton.nu>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
Date: Mon, 04 Oct 2021 08:51:26 +0100
I have "Meta is mapped to Left Win" selected in gnome-tweak-tool
which adds "altwin:left_meta_win" to xkb-options in gsettings and
causes xmodmap (via Xwayland) to report Meta_L as mapped to mod4.

That works fine in a traditional emacs and causes left Alt to be
recognised as an alt modified but with pgtk left Alt is being
treated as meta instead and I've been unable to find any way to
make it be recognised as alt.

In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4)
 of 2021-10-04 built on bericote.compton.nu
Repository revision: 4c49ec7f865bdad1629d2f125f71f4e506b258f2
Repository branch: feature/pgtk
Windowing system distributor 'System Description: Fedora 34 (Thirty Four)

Configured using:
 'configure --with-pgtk --prefix=/var/tmp/emacs 'CFLAGS=-O2 -march=native''





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Mon, 12 Sep 2022 10:27:01 GMT) Full text and rfc822 format available.

Message #8 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tom Hughes <tom <at> compton.nu>
Cc: 51001 <at> debbugs.gnu.org
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Mon, 12 Sep 2022 12:25:53 +0200
Tom Hughes <tom <at> compton.nu> writes:

> I have "Meta is mapped to Left Win" selected in gnome-tweak-tool
> which adds "altwin:left_meta_win" to xkb-options in gsettings and
> causes xmodmap (via Xwayland) to report Meta_L as mapped to mod4.
>
> That works fine in a traditional emacs and causes left Alt to be
> recognised as an alt modified but with pgtk left Alt is being
> treated as meta instead and I've been unable to find any way to
> make it be recognised as alt.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

There's been a lot of changes in the input area in Emacs lately -- do
you still see these issues on the current "master" branch?




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 12 Sep 2022 10:27:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Mon, 12 Sep 2022 16:42:01 GMT) Full text and rfc822 format available.

Message #13 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Tom Hughes <tom <at> compton.nu>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 51001 <at> debbugs.gnu.org
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Mon, 12 Sep 2022 17:27:52 +0100
On 12/09/2022 11:25, Lars Ingebrigtsen wrote:

> Tom Hughes <tom <at> compton.nu> writes:
> 
>> I have "Meta is mapped to Left Win" selected in gnome-tweak-tool
>> which adds "altwin:left_meta_win" to xkb-options in gsettings and
>> causes xmodmap (via Xwayland) to report Meta_L as mapped to mod4.
>>
>> That works fine in a traditional emacs and causes left Alt to be
>> recognised as an alt modified but with pgtk left Alt is being
>> treated as meta instead and I've been unable to find any way to
>> make it be recognised as alt.
> 
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
> 
> There's been a lot of changes in the input area in Emacs lately -- do
> you still see these issues on the current "master" branch?

This still seems to happen on master, yes.

Tom

-- 
Tom Hughes (tom <at> compton.nu)
http://compton.nu/





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Tue, 13 Sep 2022 02:34:02 GMT) Full text and rfc822 format available.

Message #16 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Tom Hughes <tom <at> compton.nu>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Tue, 13 Sep 2022 10:32:43 +0800
Tom Hughes <tom <at> compton.nu> writes:

> This still seems to happen on master, yes.

The Wayland compositor does not respect modifier mappings set in the
Xwayland server.  GTK 3 has lost the concept of a separate "Meta"
modifier, so there is no way to achieve what you want on PGTK.

And probably on Wayland in general, I think.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Tue, 13 Sep 2022 17:49:01 GMT) Full text and rfc822 format available.

Message #19 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Tom Hughes <tom <at> compton.nu>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Tue, 13 Sep 2022 17:32:29 +0100
On 13/09/2022 03:32, Po Lu wrote:
> Tom Hughes <tom <at> compton.nu> writes:
> 
>> This still seems to happen on master, yes.
> 
> The Wayland compositor does not respect modifier mappings set in the
> Xwayland server.  GTK 3 has lost the concept of a separate "Meta"
> modifier, so there is no way to achieve what you want on PGTK.
> 
> And probably on Wayland in general, I think.

So I think I have found a way to get what I want, because I don't
actually care about a meta key, but I use A-letter for all my main
short cuts. Fortunately this works:

(setq x-meta-keysym 'alt)

I did try changing my A-letter shortcuts to M-letter but that winds
up breaking ESC x as M-x which is the one thing I do use.

Tom

-- 
Tom Hughes (tom <at> compton.nu)
http://compton.nu/





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Sun, 03 Sep 2023 08:42:02 GMT) Full text and rfc822 format available.

Message #22 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Tom Hughes <tom <at> compton.nu>
Cc: Po Lu <luangruo <at> yahoo.com>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 51001 <at> debbugs.gnu.org
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Sun, 3 Sep 2023 01:41:32 -0700
tags 51001 - moreinfo
tags 51001 + notabug
thanks

Tom Hughes <tom <at> compton.nu> writes:

> On 13/09/2022 03:32, Po Lu wrote:
>> Tom Hughes <tom <at> compton.nu> writes:
>>
>>> This still seems to happen on master, yes.
>> The Wayland compositor does not respect modifier mappings set in the
>> Xwayland server.  GTK 3 has lost the concept of a separate "Meta"
>> modifier, so there is no way to achieve what you want on PGTK.
>> And probably on Wayland in general, I think.
>
> So I think I have found a way to get what I want, because I don't
> actually care about a meta key, but I use A-letter for all my main
> short cuts. Fortunately this works:
>
> (setq x-meta-keysym 'alt)
>
> I did try changing my A-letter shortcuts to M-letter but that winds
> up breaking ESC x as M-x which is the one thing I do use.

Is it worth documenting this trick somewhere?  Po Lu, what do you think?

Other than that, I guess this is not a bug in Emacs.




Removed tag(s) moreinfo. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Sep 2023 08:42:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Stefan Kangas <stefankangas <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 03 Sep 2023 08:42:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Sun, 03 Sep 2023 09:07:01 GMT) Full text and rfc822 format available.

Message #29 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Sun, 03 Sep 2023 17:06:23 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Is it worth documenting this trick somewhere?  Po Lu, what do you
> think?

Don't we already document the x-*-keysym variables somewhere?  I'll
check later today.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Sun, 03 Sep 2023 09:47:02 GMT) Full text and rfc822 format available.

Message #32 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Sun, 3 Sep 2023 02:46:10 -0700
Po Lu <luangruo <at> yahoo.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> Is it worth documenting this trick somewhere?  Po Lu, what do you
>> think?
>
> Don't we already document the x-*-keysym variables somewhere?  I'll
> check later today.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Fri, 22 Dec 2023 14:54:02 GMT) Full text and rfc822 format available.

Message #35 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Fri, 22 Dec 2023 06:53:30 -0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Po Lu <luangruo <at> yahoo.com> writes:
>
>> Stefan Kangas <stefankangas <at> gmail.com> writes:
>>
>>> Is it worth documenting this trick somewhere?  Po Lu, what do you
>>> think?
>>
>> Don't we already document the x-*-keysym variables somewhere?  I'll
>> check later today.
>
> Thanks.

Any update here?  Thanks in advance.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Sun, 24 Dec 2023 03:15:02 GMT) Full text and rfc822 format available.

Message #38 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Sun, 24 Dec 2023 11:13:44 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> Po Lu <luangruo <at> yahoo.com> writes:
>>
>>> Stefan Kangas <stefankangas <at> gmail.com> writes:
>>>
>>>> Is it worth documenting this trick somewhere?  Po Lu, what do you
>>>> think?
>>>
>>> Don't we already document the x-*-keysym variables somewhere?  I'll
>>> check later today.
>>
>> Thanks.
>
> Any update here?  Thanks in advance.

x-*-keysym are documented in (elisp)X11 Keysyms, so I think there is
nothing to be done here, save for perhaps modifying their descriptions
to not imply they are exclusive to X11.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Mon, 25 Dec 2023 18:26:02 GMT) Full text and rfc822 format available.

Message #41 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Mon, 25 Dec 2023 10:25:00 -0800
Po Lu <luangruo <at> yahoo.com> writes:

> x-*-keysym are documented in (elisp)X11 Keysyms, so I think there is
> nothing to be done here, save for perhaps modifying their descriptions
> to not imply they are exclusive to X11.

Could you suggest a patch for the documentation?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51001; Package emacs. (Thu, 02 Jan 2025 01:21:01 GMT) Full text and rfc822 format available.

Message #44 received at 51001 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 51001 <at> debbugs.gnu.org,
 Tom Hughes <tom <at> compton.nu>
Subject: Re: bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta
 with pgtk
Date: Wed, 1 Jan 2025 19:20:41 -0600
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Po Lu <luangruo <at> yahoo.com> writes:
>
>> x-*-keysym are documented in (elisp)X11 Keysyms, so I think there is
>> nothing to be done here, save for perhaps modifying their descriptions
>> to not imply they are exclusive to X11.
>
> Could you suggest a patch for the documentation?

Friendly ping.




This bug report was last modified 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.