mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix: void-function use-dialog-box-p
This function doesn't exist before Emacs 29, and also isn't meant to be
used in a global context.
Amend: 6a44a2ea80
This commit is contained in:
@ -19,7 +19,7 @@ If FORCE-P is omitted when `window-size-fixed' is non-nil, resizing will fail."
|
|||||||
Returns t if it is safe to kill this session. Does not prompt if no real buffers
|
Returns t if it is safe to kill this session. Does not prompt if no real buffers
|
||||||
are open."
|
are open."
|
||||||
(or (not (ignore-errors (doom-real-buffer-list)))
|
(or (not (ignore-errors (doom-real-buffer-list)))
|
||||||
(if (use-dialog-box-p)
|
(if use-dialog-box
|
||||||
(pcase (x-popup-dialog
|
(pcase (x-popup-dialog
|
||||||
t `("Really quit Emacs?"
|
t `("Really quit Emacs?"
|
||||||
("Quit anyway" . t)
|
("Quit anyway" . t)
|
||||||
|
Reference in New Issue
Block a user