Function: ghostel--enter-readonly-state
ghostel--enter-readonly-state is a natively compiled function defined
in ghostel.el.
Signature
(ghostel--enter-readonly-state)
Documentation
Common setup when entering copy or Emacs mode.
Saves the cursor style and re-enables hl-line-mode if it was
suppressed. Does NOT cancel the redraw timer — that is the
caller's job when freezing.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--enter-readonly-state ()
"Common setup when entering copy or Emacs mode.
Saves the cursor style and re-enables `hl-line-mode' if it was
suppressed. Does NOT cancel the redraw timer — that is the
caller's job when freezing."
(ghostel--cursor-blink-stop)
(setq ghostel--saved-cursor-type cursor-type)
(setq cursor-type (default-value 'cursor-type))
(when ghostel--saved-hl-line-mode
(hl-line-mode 1))
(add-hook 'pre-redisplay-functions #'ghostel--fake-cursor-update nil t))