File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3474,15 +3474,15 @@ is closed."
3474
3474
(set-process-query-on-exit-flag process nil ))
3475
3475
(kill-emacs )))))
3476
3476
3477
- (evil-define-command evil-quit-all-with-error-code (&optional _force)
3477
+ (evil-define-command evil-quit-all-with-error-code (&optional err-code _force)
3478
3478
" Exit Emacs without saving, returning an non-zero error code.
3479
3479
The FORCE argument is only there for compatibility and is ignored.
3480
3480
This function fails with an error if Emacs is run in server mode."
3481
3481
:repeat nil
3482
- (interactive " <!>" )
3482
+ (interactive " <N>< !>" )
3483
3483
(if (bound-and-true-p server-buffer-clients)
3484
- (user-error " Cannot exit client process with error code. " )
3485
- (kill-emacs 1 )))
3484
+ (user-error " Cannot exit client process with error code" )
3485
+ (kill-emacs ( or err-code 1 ) )))
3486
3486
3487
3487
(evil-define-command evil-save-and-quit ()
3488
3488
" Save all buffers and exit Emacs."
You can’t perform that action at this time.
0 commit comments