]> git.eshelyaron.com Git - emacs.git/commit
Restart blink cursor timers on interval changes
authorPhilipp Stephani <phst@google.com>
Sat, 10 Sep 2016 08:16:32 +0000 (10:16 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 2 Oct 2016 17:49:37 +0000 (19:49 +0200)
commite0ac09906b68a6d96466fd12faf45a6e94f9ebbf
treef588ce3c8692e44e9f6468eff1bec4c9d2a5b235
parent08b386db1f4212ce90f726442fcf356885fb31ae
Restart blink cursor timers on interval changes

This prevents surprising behavior when timer interval customizations are
only applied whenever the timers happen to be restarted (see Bug#24372).

* lisp/frame.el (blink-cursor--start-idle-timer)
(blink-cursor--start-timer): New functions.
(blink-cursor-start, blink-cursor-check, blink-cursor-mode): Use
the new helper functions.
(blink-cursor-delay, blink-cursor-interval): Restart timers when
the value is changed.
lisp/frame.el