unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tim Harper <timcharper@gmail.com>
To: emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tim Harper <timcharper@gmail.com>
Subject: [PATCH] Default to disable PressAndHold in Mac OS X Lion
Date: Mon, 20 Jun 2011 12:35:27 -0600	[thread overview]
Message-ID: <1308594927-5940-1-git-send-email-timcharper@gmail.com> (raw)
In-Reply-To: <jwvboxsicai.fsf-monnier+emacs@gnu.org>

---
 lisp/term/ns-win.el |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el
index 712929e..a54c849 100644
--- a/lisp/term/ns-win.el
+++ b/lisp/term/ns-win.el
@@ -916,6 +916,11 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
   ;; FIXME: This will surely lead to "MODIFIED OUTSIDE CUSTOM" warnings.
   (menu-bar-mode (if (get-lisp-resource nil "Menus") 1 -1))
 
+  ;; OS X Lion introduces PressAndHold and it is currently broken. See this
+  ;; thread for more details:
+  ;; http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00505.html
+  (ns-set-resource nil "ApplePressAndHoldEnabled" "NO")
+
   (setq ns-initialized t))
 
 (add-to-list 'handle-args-function-alist '(ns . x-handle-args))
-- 
1.7.4.4




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

Thread overview: 9+ 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
2011-06-20 18:26   ` Tim Harper
2011-06-20 18:33     ` Stefan Monnier
2011-06-20 18:35       ` Tim Harper [this message]
2011-06-21 18:50       ` David Reitter

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=1308594927-5940-1-git-send-email-timcharper@gmail.com \
    --to=timcharper@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).