unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RE: OS X Lion and "ApplePressAndHoldEnabled"
@ 2011-06-17 21:01 Donald Ephraim Curtis
  2011-06-17 21:29 ` Edward O'Connor
  2011-06-17 21:36 ` Tim Harper
  0 siblings, 2 replies; 11+ messages in thread
From: Donald Ephraim Curtis @ 2011-06-17 21:01 UTC (permalink / raw)
  To: timcharper; +Cc: Emacs-Devel devel

Does this happen when you are holding a modifier also?

This sounds like it should be a modifier for viper-mode but not necessarily for normal Emacs bindings which require a modifier.


^ permalink raw reply	[flat|nested] 11+ messages in thread
* OS X Lion and "ApplePressAndHoldEnabled"
@ 2011-06-15 20:58 Tim Harper
  2011-06-18 16:29 ` Chong Yidong
  2011-06-20 18:06 ` Stefan Monnier
  0 siblings, 2 replies; 11+ messages in thread
From: Tim Harper @ 2011-06-15 20:58 UTC (permalink / raw)
  To: emacs-devel

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-06-21 18:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 21:01 OS X Lion and "ApplePressAndHoldEnabled" Donald Ephraim Curtis
2011-06-17 21:29 ` Edward O'Connor
2011-06-17 21:36 ` Tim Harper
  -- strict thread matches above, loose matches on Subject: below --
2011-06-15 20:58 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
2011-06-20 18:26   ` Tim Harper
2011-06-20 18:33     ` Stefan Monnier
2011-06-21 18:50       ` David Reitter

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