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."
|
"Restart EXWM."
|
||||||
(interactive)
|
(interactive)
|
||||||
(exwm--log)
|
(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)))
|
(let* ((attr (process-attributes (emacs-pid)))
|
||||||
(args (cdr (assq 'args attr)))
|
(args (cdr (assq 'args attr)))
|
||||||
(ppid (cdr (assq 'ppid 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))
|
(`break (y-or-n-p prompt))
|
||||||
(x x)))
|
(x x)))
|
||||||
(t
|
(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))))
|
(length exwm--id-buffer-alist) prompt))))
|
||||||
;; Run `kill-emacs-hook' (`server-force-stop' excluded) before Emacs
|
;; Run `kill-emacs-hook' (`server-force-stop' excluded) before Emacs
|
||||||
;; frames are unmapped so that errors (if any) can be visible.
|
;; frames are unmapped so that errors (if any) can be visible.
|
||||||
|
|
Loading…
Reference in a new issue