[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no que
From: |
Lars Ingebrigtsen |
Subject: |
bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions |
Date: |
Sat, 15 Jan 2022 11:02:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> 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
- bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions,
Lars Ingebrigtsen <=