From unknown Sun Jun 22 03:57:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19977: 24.4; Incorrect translation of Super modifier with Ctrl or Meta on OS X Resent-From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 29 Mar 2016 10:17:42 +0000
>
>=C2=A0 After pressing M-s-a, I get the message:
>=C2=A0 M-s-=C3=A5 is undefined
>=C2=A0 Expected: M-s-a (being defined or undefined)
>
>=C2=A0 Tested running Emacs as a Carbon app on OS X:
>=C2=A0 open -W -n -a /Applications/Emacs.app --args -Q
>
>=C2=A0 After pressing C-s-a, I get the message:
>=C2=A0 <C-s-268632065> is undefined
>=C2=A0 Expected: C-s-a (being defined or undefined)
>
>=C2=A0 Seems to happen for all keys, not just a. For C-s-<letter>= , the
>=C2=A0 character produced is 0x1002ffa0 + <letter> instead of <= ;letter>; for
>=C2=A0 M-s-<letter> the character produced is whatever OS X maps = to
>=C2=A0 Option+<letter>. This happens only if Super is pressed as = well. More
>=C2=A0 discussion at
>=C2=A0 http://lists.gnu.or= g/archive/html/help-gnu-emacs/2015-02/msg00503.html.
>
> Unfortunately this is still happening with 25.0.92.1.
What is the evidence that this is an Emacs problem?
What do you get if you type s-a?
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 29 Mar 2016 15:45:13 +0000
> Cc: 19977@d= ebbugs.gnu.org
>
> Some more debugging output, using NS_KEYLOG =3D 1. The input sequence = is a, C-a, M-a, s-a, C-S-a, M-S-a,
> s-S-a, C-s-a, M-s-a. As you can see, 'code' is correct (A or a= ), except for the last two cases.
I guess someone who understand how keyboard input works on OS X will
have to look into this.
> From: Philipp Steph= ani <p.stepha= ni2@gmail.com>
> Date: Tue, 29 Mar 2016 15:45:13 +0000
> Cc: 19977@d= ebbugs.gnu.org
>
> Some more debugging output, using NS_KEYLOG =3D 1. The input sequence = is a, C-a, M-a, s-a, C-S-a, M-S-a,
> s-S-a, C-s-a, M-s-a. As you can see, 'code' is correct (A or a= ), except for the last two cases.
I guess someone who understand how keyboard input works on OS X will
have to look into this.