Function: evil-restore-transient-mark-mode
evil-restore-transient-mark-mode is a byte-compiled function defined
in evil-common.el.
Signature
(evil-restore-transient-mark-mode)
Documentation
Restore Transient Mark mode.
This presupposes that evil-save-transient-mark-mode has been
called earlier. If Transient Mark mode was disabled before but
enabled in the meantime, this function disables it; if it was
enabled before but disabled in the meantime, this function
enables it.
The earlier settings of Transient Mark mode are stored in
evil-transient-vals.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-restore-transient-mark-mode ()
"Restore Transient Mark mode.
This presupposes that `evil-save-transient-mark-mode' has been
called earlier. If Transient Mark mode was disabled before but
enabled in the meantime, this function disables it; if it was
enabled before but disabled in the meantime, this function
enables it.
The earlier settings of Transient Mark mode are stored in
`evil-transient-vals'."
(let (entry local var val)
(while (setq entry (pop evil-transient-vals))
(setq var (pop entry)
val (pop entry)
local (pop entry))
(unless local
(kill-local-variable var))
(unless (equal (symbol-value var) val)
(if (fboundp var)
(funcall var (if val 1 -1))
(setq var val))))))