Subject: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 15 Jan 2022 11:02:19 +0100

Drew Adams <[email-masked]> writes:

> A starting point is to redefine commands such as `menu-set-font', to
> respect `use-dialog-box'.  For example:
>
> (defun menu-set-font ()
>   "Interactively select a font and make it the default on all frames.
> The selected font will be the default on both the existing and future frames."
>   (interactive)
>   (if use-dialog-box
>       (menu-set-font)
>     (call-interactively #'set-frame-font-all)))

If use-dialog-box is set, you want menu-set-font to call itself?

In any case, the current definition is:

(defun menu-set-font ()
  "Interactively select a font and make it the default on all frames.

The selected font will be the default on both the existing and future frames."
  (interactive)
  (set-frame-font (if (fboundp 'x-select-font)
		      (x-select-font)
		    (mouse-select-font))
		  nil t))

So it uses a graphical chooser by default, no matter whether
use-dialog-box is set or not.  So I don't think there's anything to fix
here, and I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no