aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2013-07-18 18:50:05 +0200
committerJuanma Barranquero2013-07-18 18:50:05 +0200
commit945c5bb194ecdc4f3be4223dcfcd88077391975b (patch)
tree6245bb6e2f1b76640c3ed1568aff7ce9c43d63fd /lisp
parentabd2f2a44e9225cdc89dc6643190dd13785bb48e (diff)
downloademacs-945c5bb194ecdc4f3be4223dcfcd88077391975b.tar.gz
emacs-945c5bb194ecdc4f3be4223dcfcd88077391975b.zip
Followup to 2013-07-16T11:41:06Z!jan.h.d@swipnet.se.
* lisp/frame.el (blink-cursor-timer-function, blink-cursor-suspend): Add check for W32. * src/keyboard.c (kbd_buffer_get_event): * src/w32term.c (x_focus_changed): Port FOCUS_(IN|OUT)_EVENT changes to W32.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/frame.el6
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fc38ef046a4..f56654af9ca 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-07-18 Juanma Barranquero <lekktu@gmail.com>
2
3 * frame.el (blink-cursor-timer-function, blink-cursor-suspend):
4 Add check for W32 (followup to 2013-07-16T11:41:06Z!jan.h.d@swipnet.se).
5
12013-07-18 Michael Albinus <michael.albinus@gmx.de> 62013-07-18 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * filenotify.el (file-notify--library): Renamed from 8 * filenotify.el (file-notify--library): Renamed from
diff --git a/lisp/frame.el b/lisp/frame.el
index a37d1189552..ed47afa4b94 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1709,7 +1709,7 @@ command starts, by installing a pre-command hook."
1709 "Timer function of timer `blink-cursor-timer'." 1709 "Timer function of timer `blink-cursor-timer'."
1710 (internal-show-cursor nil (not (internal-show-cursor-p))) 1710 (internal-show-cursor nil (not (internal-show-cursor-p)))
1711 ;; Each blink is two calls to this function. 1711 ;; Each blink is two calls to this function.
1712 (when (memq window-system '(x ns)) 1712 (when (memq window-system '(x ns w32))
1713 (setq blink-cursor-blinks-done (1+ blink-cursor-blinks-done)) 1713 (setq blink-cursor-blinks-done (1+ blink-cursor-blinks-done))
1714 (when (and (> blink-cursor-blinks 0) 1714 (when (and (> blink-cursor-blinks 0)
1715 (<= (* 2 blink-cursor-blinks) blink-cursor-blinks-done)) 1715 (<= (* 2 blink-cursor-blinks) blink-cursor-blinks-done))
@@ -1729,11 +1729,11 @@ itself as a pre-command hook."
1729 (setq blink-cursor-timer nil))) 1729 (setq blink-cursor-timer nil)))
1730 1730
1731(defun blink-cursor-suspend () 1731(defun blink-cursor-suspend ()
1732 "Suspend cursor blinking on NS and X. 1732 "Suspend cursor blinking on NS, X and W32.
1733This is called when no frame has focus and timers can be suspended. 1733This is called when no frame has focus and timers can be suspended.
1734Timers are restarted by `blink-cursor-check', which is called when a 1734Timers are restarted by `blink-cursor-check', which is called when a
1735frame receives focus." 1735frame receives focus."
1736 (when (memq window-system '(x ns)) 1736 (when (memq window-system '(x ns w32))
1737 (blink-cursor-end) 1737 (blink-cursor-end)
1738 (when blink-cursor-idle-timer 1738 (when blink-cursor-idle-timer
1739 (cancel-timer blink-cursor-idle-timer) 1739 (cancel-timer blink-cursor-idle-timer)