help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X: M-s and C-s modifiers generate weird keystrokes


From: Pascal J. Bourguignon
Subject: Re: OS X: M-s and C-s modifiers generate weird keystrokes
Date: Sat, 28 Feb 2015 08:16:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> writes:

> Pascal J. Bourguignon <pjb@informatimago.com> schrieb am Fri Feb 27 2015 at
> 09:00:21:
>
>> Philipp Stephani <p.stephani2@gmail.com> writes:
>>
>> > I realized that on my OS X system (OS X 10.10.2, GNU Emacs 24.4.1
>> > (x86_64-apple-darwin14.1.0, NS apple-appkit-1344.72)
>> >  of 2015-02-23 on p) the key modifiers C, M, s, and C-M work as expected,
>> > but C-s and M-s produce unexpected keys (according to the messages
>> buffer):
>> > C-s-a produces C-s-268632065, and M-s-a produces M-s-å. Is this expected,
>> > or should I report a bug?
>>
>>
>> How do you type s- on a MacOSX keyboard?
>>
>> I use a DasKeyboard 3 keyboard, with "System
>> Preferences"/"Keyboard"/"Modifier Keys…" set to
>>
>>     Caps Lock ->  Control
>>     Control   -> Control
>>     Option    -> Command
>>     Command   -> Option
>>
>> (there's no Hyper or super choice here);
>>
>> and consequently,  I get the following map to emacs
>> (http://www.emacsformacosx.com) modifiers:
>>
>>
>>     C-                      RET
>>     S-                      S-
>>     C- A- M- SPC M-a A- C-p C-
>>
>> (notice the C-p bound to the second form the right bottom key, which I
>> cannot change to anything more useful).
>>
>>
>>
> I have a MS Natural ergonomic keyboard with Ctrl mapped to Cmd and Cmd
> mapped to Ctrl in System Preferences. The keys on the bottom row are
> labelled Ctrl, Windows, Alt, Space, Alt, Menu, Ctrl. OS X maps the first
> three to Cmd, Option, Ctrl. With all the customization options in the "ns"
> group in Emacs (from Homebrew) being set to their defaults, left and right
> Cmd (that is, the keys labelled Ctrl for me) are mapped to Super, Option
> (labelled Windows) is mapped to Meta, and Ctrl (labelled Alt) is mapped to
> Ctrl. (Here it would be possible to also add mappings for Hyper and Alt.)
> For the Option key Emacs seems to merge the bindings of OS X (Option+a = å)
> and Emacs (Option = M), but only if the Super modifier is also pressed. No
> idea what happens for Super+Ctrl.


Notice how I carefully configured my keyboard to distinguish A- from M-.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]