unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Random832 <random832@fastmail.com>
To: emacs-devel@gnu.org
Subject: Re: OS X: Change default key bindings of CMD and ALT
Date: Fri, 01 Jan 2016 04:58:50 -0500	[thread overview]
Message-ID: <m2ziwppqn9.fsf@fastmail.com> (raw)
In-Reply-To: loom.20160101T095057-402@post.gmane.org

Adrian Robert <Adrian.B.Robert@gmail.com> writes:
> These are good points.  Of course, the problem is whichever key you choose
> to be meta, you are giving up some OS defaults; it is just a question of
> which ones are more important for how many users.  But it would also be
> good to take a parallel approach to Emacs on other platforms.  Currently
> under X or Windows, the Alt/Opt key goes to meta under Emacs, despite
> having other uses in the OS.

I think you've got to take a whole picture view of this.  With a
European keyboard layout selected in X, the right Alt key (or
whichever key, since this is customizable with xkb) won't send
"Alt", but instead will be "ISO_Level3_Shift" or "Mode_Switch".
So Emacs doesn't have to do any special handling to get the
desired behavior.  Meanwhile, on Windows, the right alt key on a
European keyboard layout sends a synthetic "Left Ctrl, Right
Alt" modifier combination that can be detected and can and
should be acted on specially.

> But IIRC it is only done on one side, so the
> Alt key on the other is still available for character selection use.  (And
> maybe menu shortcut use in Windows?)
>
> Would this be implementable in either the NS or Mac ports?  And if so would
> it allow natural / acceptable use by European users?

This is not what is done now, but it can certainly easily be
implemented. This is how I set up my own configuration, with
(setq ns-right-alternate-modifier 'none) - the current default
is 'left, which makes it defer to ns-alternate-modifier (which
is 'meta)

I am not European, but I think it would probably be natural for
European users because this is how MS Windows and I _think_ most
Linux distributions are set up by default, and the right alt key
alone is labeled AltGr on PC keyboards.

I was incidentally a bit confused by the original post calling
the desired functionality "compose" - this feature is not
compose, it's third level shift.




  reply	other threads:[~2016-01-01  9:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-31  6:40 OS X: Change default key bindings of CMD and ALT Anders Lindgren
2015-12-31  7:31 ` John Wiegley
2015-12-31  8:17   ` Adrian.B.Robert
2015-12-31 16:02     ` John Wiegley
2016-01-01  1:40       ` Jean-Christophe Helary
2016-01-01  8:50         ` Bozhidar Batsov
2016-01-01 10:28           ` Anders Lindgren
2016-01-02  3:00             ` Random832
2016-01-02  6:02               ` Anders Lindgren
2016-01-02  6:17                 ` John Wiegley
2016-01-02  7:18                   ` YAMAMOTO Mitsuharu
2016-01-02 17:06                     ` John Wiegley
2016-01-02  8:42                 ` Eli Zaretskii
2016-01-02  9:07                   ` Random832
2016-01-03  7:27               ` YAMAMOTO Mitsuharu
2016-01-01  8:57         ` Adrian Robert
2016-01-01  9:58           ` Random832 [this message]
2016-01-01 10:11           ` Jean-Christophe Helary
2015-12-31 13:47 ` Eli Zaretskii

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=m2ziwppqn9.fsf@fastmail.com \
    --to=random832@fastmail.com \
    --cc=emacs-devel@gnu.org \
    /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.
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).