unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
@ 2021-10-04  7:51 Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-12 10:25 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-04  7:51 UTC (permalink / raw)
  To: 51001

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''






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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2021-10-04  7:51 bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-12 10:25 ` Lars Ingebrigtsen
  2022-09-12 16:27   ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-12 10:25 UTC (permalink / raw)
  To: Tom Hughes; +Cc: 51001

Tom Hughes <tom@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?





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2022-09-12 10:25 ` Lars Ingebrigtsen
@ 2022-09-12 16:27   ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13  2:32     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-12 16:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 51001

On 12/09/2022 11:25, Lars Ingebrigtsen wrote:

> Tom Hughes <tom@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@compton.nu)
http://compton.nu/






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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2022-09-12 16:27   ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13  2:32     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 16:32       ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13  2:32 UTC (permalink / raw)
  To: Tom Hughes; +Cc: Lars Ingebrigtsen, 51001

Tom Hughes <tom@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2022-09-13  2:32     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 16:32       ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-03  8:41         ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-13 16:32 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 51001

On 13/09/2022 03:32, Po Lu wrote:
> Tom Hughes <tom@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@compton.nu)
http://compton.nu/






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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2022-09-13 16:32       ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-03  8:41         ` Stefan Kangas
  2023-09-03  9:06           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2023-09-03  8:41 UTC (permalink / raw)
  To: Tom Hughes; +Cc: Po Lu, Lars Ingebrigtsen, 51001

tags 51001 - moreinfo
tags 51001 + notabug
thanks

Tom Hughes <tom@compton.nu> writes:

> On 13/09/2022 03:32, Po Lu wrote:
>> Tom Hughes <tom@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2023-09-03  8:41         ` Stefan Kangas
@ 2023-09-03  9:06           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-09-03  9:46             ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-09-03  9:06 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Lars Ingebrigtsen, 51001, Tom Hughes

Stefan Kangas <stefankangas@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2023-09-03  9:06           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-09-03  9:46             ` Stefan Kangas
  2023-12-22 14:53               ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2023-09-03  9:46 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 51001, Tom Hughes

Po Lu <luangruo@yahoo.com> writes:

> Stefan Kangas <stefankangas@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2023-09-03  9:46             ` Stefan Kangas
@ 2023-12-22 14:53               ` Stefan Kangas
  2023-12-24  3:13                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Kangas @ 2023-12-22 14:53 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 51001, Tom Hughes

Stefan Kangas <stefankangas@gmail.com> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>> Stefan Kangas <stefankangas@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2023-12-22 14:53               ` Stefan Kangas
@ 2023-12-24  3:13                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-12-25 18:25                   ` Stefan Kangas
  0 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-12-24  3:13 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: Lars Ingebrigtsen, 51001, Tom Hughes

Stefan Kangas <stefankangas@gmail.com> writes:

> Stefan Kangas <stefankangas@gmail.com> writes:
>
>> Po Lu <luangruo@yahoo.com> writes:
>>
>>> Stefan Kangas <stefankangas@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.





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

* bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk
  2023-12-24  3:13                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-12-25 18:25                   ` Stefan Kangas
  0 siblings, 0 replies; 11+ messages in thread
From: Stefan Kangas @ 2023-12-25 18:25 UTC (permalink / raw)
  To: Po Lu; +Cc: Lars Ingebrigtsen, 51001, Tom Hughes

Po Lu <luangruo@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?





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

end of thread, other threads:[~2023-12-25 18:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-04  7:51 bug#51001: 28.0.50; [feature/pgtk] Wrong modifier used as meta with pgtk Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-12 10:25 ` Lars Ingebrigtsen
2022-09-12 16:27   ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13  2:32     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 16:32       ` Tom Hughes via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-03  8:41         ` Stefan Kangas
2023-09-03  9:06           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-03  9:46             ` Stefan Kangas
2023-12-22 14:53               ` Stefan Kangas
2023-12-24  3:13                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-25 18:25                   ` 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).