Function: evil-quit-all-with-error-code
evil-quit-all-with-error-code is an interactive and byte-compiled
function defined in evil-commands.el.
Signature
(evil-quit-all-with-error-code &optional ERR-CODE FORCE)
Documentation
Exit Emacs without saving, returning an non-zero error code.
The FORCE argument is only there for compatibility and is ignored. This function fails with an error if Emacs is run in server mode.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-quit-all-with-error-code (&optional err-code _force)
"Exit Emacs without saving, returning an non-zero error code.
The FORCE argument is only there for compatibility and is ignored.
This function fails with an error if Emacs is run in server mode."
:repeat nil
(interactive "<N><!>")
(if (bound-and-true-p server-buffer-clients)
(user-error "Cannot exit client process with error code")
(kill-emacs (or err-code 1))))