summaryrefslogtreecommitdiff
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-09-26 13:39:17 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-09-26 13:39:17 -0700
commita2513667af6c1cfc58e971b9a5476cd5edfaef1c (patch)
tree1e02fcc7d96e31aedb28ebb618b8e3f484be9c9a /lisp/frame.el
parentffd6a03521de0a177db217e56cd6564ef60348fe (diff)
parent9fc9988d4d08028fb37c588f5e0483ac85b713d3 (diff)
downloademacs-a2513667af6c1cfc58e971b9a5476cd5edfaef1c.tar.gz
Merge from origin/emacs-25
9fc9988 Improve documentation of 'expand-abbrev' and wrapper hooks c14a1d4 Minor copyedits of MS-Windows installation instructions f281924 Fix display of cursor when 'blink-cursor-delay' has small value # Conflicts: # lisp/minibuffer.el
Diffstat (limited to 'lisp/frame.el')
-rw-r--r--lisp/frame.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index cfd40bf22fc..b13621a5c50 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -2114,7 +2114,11 @@ This is done when a frame gets focus. Blink timers may be stopped by
(not blink-cursor-idle-timer))
(remove-hook 'post-command-hook 'blink-cursor-check)
(setq blink-cursor-idle-timer
- (run-with-idle-timer blink-cursor-delay
+ ;; The 0.2 sec limitation from below is to avoid erratic
+ ;; behavior (or downright failure to display the cursor
+ ;; during command execution) if they set blink-cursor-delay
+ ;; to a very small or even zero value.
+ (run-with-idle-timer (max 0.2 blink-cursor-delay)
blink-cursor-delay
'blink-cursor-start))))
@@ -2148,7 +2152,11 @@ terminals, cursor blinking is controlled by the terminal."
(add-hook 'focus-in-hook #'blink-cursor-check)
(add-hook 'focus-out-hook #'blink-cursor-suspend)
(setq blink-cursor-idle-timer
- (run-with-idle-timer blink-cursor-delay
+ ;; The 0.2 sec limitation from below is to avoid erratic
+ ;; behavior (or downright failure to display the cursor
+ ;; during command execution) if they set blink-cursor-delay
+ ;; to a very small or even zero value.
+ (run-with-idle-timer (max 0.2 blink-cursor-delay)
blink-cursor-delay
#'blink-cursor-start))))