Function: ghostel--cursor-blink-stop

ghostel--cursor-blink-stop is a natively compiled function defined in ghostel.el.

Signature

(ghostel--cursor-blink-stop)

Documentation

Cancel the blink timer, restore the cursor, and remove the blink hooks.

Restores via ghostel--cursor-blink-window rather than this buffer's current window, which may already show another buffer.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
;;; Cursor style

(defun ghostel--cursor-blink-stop ()
  "Cancel the blink timer, restore the cursor, and remove the blink hooks.
Restores via `ghostel--cursor-blink-window' rather than this buffer's
current window, which may already show another buffer."
  (when ghostel--cursor-blink-timer
    (cancel-timer ghostel--cursor-blink-timer)
    (setq ghostel--cursor-blink-timer nil))
  (when (window-live-p ghostel--cursor-blink-window)
    (internal-show-cursor ghostel--cursor-blink-window t))
  (setq ghostel--cursor-blink-window nil)
  (remove-hook 'window-buffer-change-functions
               #'ghostel--cursor-blink-restore-window t)
  (remove-hook 'kill-buffer-hook #'ghostel--cursor-blink-stop t))