all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tim Harper <timcharper@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: OS X Lion and "ApplePressAndHoldEnabled"
Date: Mon, 20 Jun 2011 14:06:33 -0400	[thread overview]
Message-ID: <jwvr56oidoj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <A2D6E19E-8F2B-4CBF-8D38-4C98AE284A53@gmail.com> (Tim Harper's message of "Wed, 15 Jun 2011 14:58:16 -0600")

> In the latest version of OS X Apple has introduced "Press and Hold".
> In Emacs, it's on by default.  This translates to in Emacs, any alphanumeric
> key, when held down not in combination of any key modifiers, only one key
> press is emitted, in contrast with the previous behavior where the key is
> repeated as fast as your system repeat rate is set.

IIUC this is because "press and hold" is then interpreted as "choose
among various chars" instead of "auto-repeat".  This feature makes sense
when the key is bound to self-insert-command (whether you like it or
not is another issue, but at least I don't see a reason why Emacs
should necessarily disable it rather than obey the user's system-wide
preference for it), but it clearly makes no sense when the key is bound
to some unrelated command.

Not sure how/if Emacs can enable/disable it selectively depending on the
current binding of the key.

> Fortunately, there is a workaround, shown to me by hober of #emacs.  If this
> is added at the top of your emacs config file (such that it is executed
> before the frame is fully initialized):

> (ns-set-resource nil "ApplePressAndHoldEnabled" "NO")

Maybe we should include it in lisp/term/mac-win.el for now?


        Stefan



  parent reply	other threads:[~2011-06-20 18:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-15 20:58 OS X Lion and "ApplePressAndHoldEnabled" Tim Harper
2011-06-18 16:29 ` Chong Yidong
2011-06-18 18:54   ` Tim Harper
2011-06-20 16:22     ` Tim Harper
2011-06-20 18:06 ` Stefan Monnier [this message]
2011-06-20 18:26   ` Tim Harper
2011-06-20 18:33     ` Stefan Monnier
2011-06-20 18:35       ` [PATCH] Default to disable PressAndHold in Mac OS X Lion Tim Harper
2011-06-21 18:50       ` OS X Lion and "ApplePressAndHoldEnabled" David Reitter
  -- strict thread matches above, loose matches on Subject: below --
2011-06-17 21:01 Donald Ephraim Curtis
2011-06-17 21:29 ` Edward O'Connor
2011-06-17 21:36 ` Tim Harper

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

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

  git send-email \
    --in-reply-to=jwvr56oidoj.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=timcharper@gmail.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.