mirror of
https://github.com/ch11ng/exwm.git
synced 2024-11-23 11:47:58 +01:00
Improve confirmation prompts
* exwm.el (exwm-restart, exwm--confirm-kill-emacs): Improve confirmation prompts.
This commit is contained in:
parent
ca7623349e
commit
d4a7d16676
1 changed files with 2 additions and 2 deletions
4
exwm.el
4
exwm.el
|
@ -127,7 +127,7 @@
|
|||
"Restart EXWM."
|
||||
(interactive)
|
||||
(exwm--log)
|
||||
(when (exwm--confirm-kill-emacs "[EXWM] Restart? " 'no-check)
|
||||
(when (exwm--confirm-kill-emacs "Restart?" 'no-check)
|
||||
(let* ((attr (process-attributes (emacs-pid)))
|
||||
(args (cdr (assq 'args attr)))
|
||||
(ppid (cdr (assq 'ppid attr)))
|
||||
|
@ -1017,7 +1017,7 @@ manager. If t, replace it, if nil, abort and ask the user if `ask'."
|
|||
(`break (y-or-n-p prompt))
|
||||
(x x)))
|
||||
(t
|
||||
(yes-or-no-p (format "[EXWM] %d window(s) will be destroyed. %s"
|
||||
(yes-or-no-p (format "[EXWM] %d X window(s) will be destroyed. %s"
|
||||
(length exwm--id-buffer-alist) prompt))))
|
||||
;; Run `kill-emacs-hook' (`server-force-stop' excluded) before Emacs
|
||||
;; frames are unmapped so that errors (if any) can be visible.
|
||||
|
|
Loading…
Reference in a new issue