unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tim Harper <timcharper@gmail.com>
To: emacs-devel@gnu.org
Subject: OS X Lion and "ApplePressAndHoldEnabled"
Date: Wed, 15 Jun 2011 14:58:16 -0600	[thread overview]
Message-ID: <A2D6E19E-8F2B-4CBF-8D38-4C98AE284A53@gmail.com> (raw)

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.

This is especially troublesome for key bindings that use the home-row keys for navigation, such as viper mode.  No longer can you hold down "J" to go down several lines…

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")

… then the previous behavior is restored, making viper users and the like happy once again.

I recommend that this should be set by default.

Thanks,

Tim


             reply	other threads:[~2011-06-15 20:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-15 20:58 Tim Harper [this message]
2011-06-18 16:29 ` OS X Lion and "ApplePressAndHoldEnabled" Chong Yidong
2011-06-18 18:54   ` Tim Harper
2011-06-20 16:22     ` Tim Harper
2011-06-20 18:06 ` Stefan Monnier
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

  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=A2D6E19E-8F2B-4CBF-8D38-4C98AE284A53@gmail.com \
    --to=timcharper@gmail.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).