Eli Zaretskii <
eliz@gnu.org> schrieb am Di., 29. März 2016 um 17:11 Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Tue, 29 Mar 2016 10:17:42 +0000
>
> After pressing M-s-a, I get the message:
> M-s-å is undefined
> Expected: M-s-a (being defined or undefined)
>
> Tested running Emacs as a Carbon app on OS X:
> open -W -n -a /Applications/Emacs.app --args -Q
>
> After pressing C-s-a, I get the message:
> <C-s-268632065> is undefined
> Expected: C-s-a (being defined or undefined)
>
> Seems to happen for all keys, not just a. For C-s-<letter>, the
> character produced is 0x1002ffa0 + <letter> instead of <letter>; for
> M-s-<letter> the character produced is whatever OS X maps to
> Option+<letter>. This happens only if Super is pressed as well. More
> discussion at
> http://lists.gnu.org/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?
Because in other apps I can use these key combinations. E.g. C-s-f in Chrome toggles fullscreen mode. But in Emacs, such keybindings don't work. E.g. after evaluating (global-set-key (kbd "C-s-f") (lambda () (interactive) (message "It works"))) hitting C-s-f will lead to the error message "<C-s-268632070> is undefined", and M-x lossage will contain " <C-s-268632070> [nil]".
What do you get if you type s-a?
This works as expected (i.e. I get whatever is bound to s-a, and s-a appears in lossage). It's only the combination of C-s and M-s that gets translated incorrectly.