Function: evil-with-state
evil-with-state is a macro defined in evil-core.el.
Signature
(evil-with-state STATE &rest BODY)
Documentation
Change to STATE and execute BODY without refreshing the display.
Restore the previous state afterwards.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-core.el
(defmacro evil-with-state (state &rest body)
"Change to STATE and execute BODY without refreshing the display.
Restore the previous state afterwards."
(declare (indent defun)
(debug t))
`(evil-without-display
(evil-save-state
(evil-change-state ',state)
,@body)))