aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/frame.el6
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 22e952a91e6..14a12b53a35 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12015-02-23 Eli Zaretskii <eliz@gnu.org>
2
3 * frame.el (blink-cursor-timer-function): Don't increment
4 blink-cursor-blinks-done counter when a menu is active on a w32
5 frame. (Bug#19925)
6
12015-02-19 Juri Linkov <juri@linkov.net> 72015-02-19 Juri Linkov <juri@linkov.net>
2 8
3 * comint.el (comint-line-beginning-position): Revert searching for 9 * comint.el (comint-line-beginning-position): Revert searching for
diff --git a/lisp/frame.el b/lisp/frame.el
index 1a584fa0e2c..e1dfa483c97 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1798,8 +1798,12 @@ command starts, by installing a pre-command hook."
1798(defun blink-cursor-timer-function () 1798(defun blink-cursor-timer-function ()
1799 "Timer function of timer `blink-cursor-timer'." 1799 "Timer function of timer `blink-cursor-timer'."
1800 (internal-show-cursor nil (not (internal-show-cursor-p))) 1800 (internal-show-cursor nil (not (internal-show-cursor-p)))
1801 ;; Suspend counting blinks when the w32 menu-bar menu is displayed,
1802 ;; since otherwise menu tooltips will behave erratically.
1803 (or (and (fboundp 'w32--menu-bar-in-use)
1804 (w32--menu-bar-in-use))
1805 (setq blink-cursor-blinks-done (1+ blink-cursor-blinks-done)))
1801 ;; Each blink is two calls to this function. 1806 ;; Each blink is two calls to this function.
1802 (setq blink-cursor-blinks-done (1+ blink-cursor-blinks-done))
1803 (when (and (> blink-cursor-blinks 0) 1807 (when (and (> blink-cursor-blinks 0)
1804 (<= (* 2 blink-cursor-blinks) blink-cursor-blinks-done)) 1808 (<= (* 2 blink-cursor-blinks) blink-cursor-blinks-done))
1805 (blink-cursor-suspend) 1809 (blink-cursor-suspend)