emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Default to disable PressAndHold in Mac OS X Lion


From: Tim Harper
Subject: [PATCH] Default to disable PressAndHold in Mac OS X Lion
Date: Mon, 20 Jun 2011 12:35:27 -0600

---
 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 via email to

[Prev in Thread] Current Thread [Next in Thread]