unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: "Pascal J. Bourguignon" <pjb@informatimago.com>, help-gnu-emacs@gnu.org
Subject: Re: OS X: M-s and C-s modifiers generate weird keystrokes
Date: Sat, 28 Feb 2015 06:36:42 +0000	[thread overview]
Message-ID: <CAArVCkTuLtYYU09Qn+d3LGNt1=UNY5c_pyJyuSnsSH8CvN391A@mail.gmail.com> (raw)
In-Reply-To: 878ufjiyf5.fsf@kuiper.lan.informatimago.com

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.


  reply	other threads:[~2015-02-28  6:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.915.1425021241.31049.help-gnu-emacs@gnu.org>
2015-02-27  7:52 ` OS X: M-s and C-s modifiers generate weird keystrokes Pascal J. Bourguignon
2015-02-28  6:36   ` Philipp Stephani [this message]
     [not found]   ` <mailman.985.1425105408.31049.help-gnu-emacs@gnu.org>
2015-02-28  7:16     ` Pascal J. Bourguignon
2015-02-27  7:13 Philipp Stephani
2015-03-01 16:42 ` Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAArVCkTuLtYYU09Qn+d3LGNt1=UNY5c_pyJyuSnsSH8CvN391A@mail.gmail.com' \
    --to=p.stephani2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).