Skip to content

Commit

Permalink
Improve confirmation prompts
Browse files Browse the repository at this point in the history
* exwm.el (exwm-restart, exwm--confirm-kill-emacs): Improve
confirmation prompts.
  • Loading branch information
medranocalvo committed Dec 9, 2021
1 parent ca76233 commit d4a7d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exwm.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d4a7d16

Please sign in to comment.