Function: cursor-intangible-mode
cursor-intangible-mode is an autoloaded, interactive and byte-compiled
function defined in cursor-sensor.el.gz.
Signature
(cursor-intangible-mode &optional ARG)
Documentation
Keep cursor outside of any cursor-intangible text property.
This is a minor mode. If called interactively, toggle the
Cursor-Intangible mode mode. If the prefix argument is
positive, enable the mode, and if it is zero or negative, disable
the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate cursor-intangible-mode(var)/cursor-intangible-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cursor-sensor.el.gz
;;;###autoload
(define-minor-mode cursor-intangible-mode
"Keep cursor outside of any `cursor-intangible' text property."
:global nil
(if cursor-intangible-mode
(add-hook 'pre-redisplay-functions #'cursor-sensor--move-to-tangible
nil t)
(remove-hook 'pre-redisplay-functions #'cursor-sensor--move-to-tangible t)))