Function: evil-save-transient-mark-mode

evil-save-transient-mark-mode is a byte-compiled function defined in evil-common.el.

Signature

(evil-save-transient-mark-mode)

Documentation

Save Transient Mark mode and make it buffer-local.

Any changes to Transient Mark mode are now local to the current buffer, until evil-restore-transient-mark-mode is called.

Variables pertaining to Transient Mark mode are listed in evil-transient-vars, and their values are stored in evil-transient-vals.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-save-transient-mark-mode ()
  "Save Transient Mark mode and make it buffer-local.
Any changes to Transient Mark mode are now local to the current
buffer, until `evil-restore-transient-mark-mode' is called.

Variables pertaining to Transient Mark mode are listed in
`evil-transient-vars', and their values are stored in
`evil-transient-vals'."
  (dolist (var evil-transient-vars)
    (when (and (boundp var)
               (not (assq var evil-transient-vals)))
      (push (list var (symbol-value var)
                  (local-variable-p var))
            evil-transient-vals)
      (make-variable-buffer-local var)
      (put var 'permanent-local t))))