From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 29 12:47:27 2021 Received: (at submit) by debbugs.gnu.org; 29 Dec 2021 17:47:27 +0000 Received: from localhost ([127.0.0.1]:50279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2d2s-0002gy-UI for submit@debbugs.gnu.org; Wed, 29 Dec 2021 12:47:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:55780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2d2s-0002gI-96 for submit@debbugs.gnu.org; Wed, 29 Dec 2021 12:47:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2d2r-0005zK-V5 for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:47:26 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:63996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2d2p-00051y-Is for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:47:25 -0500 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BTGPa5Y021623 for ; Wed, 29 Dec 2021 17:47:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=neZWdK8suKNOAmBhAZy0L0f0LbAvjF0xk9V0EaS1mec=; b=D6wDCckbmdsctd1mhvuh8VRZmR9cLilaOvuEkzVf6R3TXkujUFfalMSnUjVSxSwb5zlr xU4TwaHJLFer4/KPHMl/iLTRRPzsfc/JVlZqB+cHOn5Pv6xdHYq0fQQHixptMLVfrFnz LLi1GBCHQmHnO6CH7I8EHxxFYwvTlxU+stPe2gDBQScHSrJoy15ZcK4et1sd8B0rtLrM pgAhcXXgWlkNnf/MrRYQx5Z0JMSPAps8E1goVqLGSAp8XvWGNgW6cQz3NkaYCjciZK3i q+ueDyDIMPmOoGdNAgAVCamThnaq93AHgDaU7C9BNE6cUR/t6UhH4QhsHpQViMoh6jT2 OQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3d7gh5barh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 29 Dec 2021 17:47:21 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BTHfitn114899 for ; Wed, 29 Dec 2021 17:47:21 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by aserp3030.oracle.com with ESMTP id 3d5sbe9mcs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 29 Dec 2021 17:47:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fYyjhqT1QbL8v68a8KgMTOiAm5eeoAWYDbrh+Hq/9Xbb1AdjetvzJ1gNOvhC3M78rYPe45CStqSuRAjCPncUfDFfnhIt3gKgr96hJpMO0+95Vjyr22gSQRjlMUPD6rBmPlZ4xn6mhm/40YvVO/wWwPctKOW520dBoHc/3Mj5L946m04dufgmaokXJQhDsrjc2IRA6+F6s+3yp9Hk+4fprL2bqB4RoiUStE7MvcCWavFwNfsyo5l39oCRg/s7FA/KsZepAN4PkkitfMcFL/ffDT3vmEbonn3i7st2rKEL6MJrF+x9NWfzSBzWdp1Fpi/vw/WqzzIACUZjTz5lK7wYUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=neZWdK8suKNOAmBhAZy0L0f0LbAvjF0xk9V0EaS1mec=; b=XdHBWZd1ncwprogHLqlAmh5ZaXhAQq8jIBBAThau9UfFwD8qVH2DKoO1Nw7+SJoU/NntGZA4Kb5tCfY2485tRZz83mnN8i/Q8cDbiBGcVwm/l3RdSDr76YfBsKTdkdF+plaqKknLlhSHtQXY3yvTpV9WFrovugJtKlF47A75SBUO/ynKvq6ddDj3oCDJtw2VjQRQWJixMkiOJdc2zeTI598nk9ClUIOnEAqu7TlLQG3Yb8J2krIrcRO/BY1ICGdd8ZzBuBwxFrmbg8ZIDUvoYbHIANHqfToMaFTUP1dv22MBTd8XwxlrMnRykreJWc36z0AYJk3HqJH27b5OtIcPfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=neZWdK8suKNOAmBhAZy0L0f0LbAvjF0xk9V0EaS1mec=; b=WHD1baNo14mY3QiO8CCNs+s6Yyc9vTUG3X8m6a0O3sBBtMdxyBTCTPeLvaTz60218BwDka7Lq+VVq41v4C7FcoQiwOFVahA9fh8oTT+s8ab/z/4QXtoWCU0tLlTdVJ/g0ESyu4KVat9dQw+Iaexkm+M6h2tTIPFg1FEivV92lAo= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2966.namprd10.prod.outlook.com (2603:10b6:a03:8c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.18; Wed, 29 Dec 2021 17:47:19 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%7]) with mapi id 15.20.4844.014; Wed, 29 Dec 2021 17:47:19 +0000 From: Drew Adams To: "bug-gnu-emacs@gnu.org" Subject: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Topic: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Index: Adf83BGvgz7Hu9fcTX2mlrN80W/Ejw== Date: Wed, 29 Dec 2021 17:47:19 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dcc21312-804f-415f-2130-08d9caf34297 x-ms-traffictypediagnostic: BYAPR10MB2966:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: atouEwq1CgPsz/I+H+vyLcdG3riA/TUysVfBl7I/u2C11HrOYEL8DwRHZ/Y0b85We6HQusgTWjhVe0vO5xhy+G9XWgWYxUkTKqKRXJfkenDhr8z48DBTwDvpiVulNtyvPa2C9DQS1v8RQZajfbmGNJ+DwxWfLNP906aCpXND7cVnPsKGNKzw1JWN37sKtvHG8nlZlTyRBQlhBxLI+Gfu/+Q2ZUAfpzaM0+NIQhPbu44E4rohP5su81oVg68mj+dHLTOgetmry1QxCSwKuR6N/7BncpCB2yEyCQqMtl3vw9WF+udJAID8OiDy1kAzM5JOMwCLICErgcAmz83fYn0wLFs6kKxrmno6K6heo80J2DI0vUVZlh2eXSN/Jxv3WXyV2AGhtirNcKixghzYKxrqt4KPIbMKe2cfzfVX4AEfbKK+Za3XzV2KMy/CPhU0LbefeSpBHdDxziR3CJZZDkml1X7UeqSHPGTGblNZE62v6Bz9qTDXJqGS5bn89k0KpYsfpaQmDZdNVZS/hCTLG4oecB+MaN6FRjcZQLjGnA8nxGkcbkxZ5Vlu5XORLzS6jq7S6BLYxWNrzRyc6+xanPdPy+jfrwxRUt1YZ62b0z5W38c7FpAnwdQdTJLDDUFXAp3lyp/1tm0yZL5zWKe6835eUL1PEdP6u36lK3dFaOscxWBlgYuGLCjTwnk6flfYTloKj7Osv+u3k96PS5191/aPVTmSKNYyuUJqfa8VRc9qc/Y= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(186003)(38100700002)(122000001)(52536014)(33656002)(26005)(76116006)(44832011)(5660300002)(55016003)(9686003)(38070700005)(71200400001)(6916009)(66446008)(66556008)(6506007)(508600001)(66476007)(66946007)(64756008)(7696005)(86362001)(8676002)(316002)(45080400002)(8936002)(2906002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gAupH/oQLyu27BmIbfSs7PyaT+xs//npq4X2PXtNZMEmU3a4dDBJVfzpQD6o?= =?us-ascii?Q?Y+pr/T6spGkNCJZ5Nn1ya0o2oxGc7HAVEVkTDmFdzXPBLFPb/42guTSzCWRD?= =?us-ascii?Q?PylEEmNU9uVr1q1S9dQ6UbUytWc1EYH7f/71prOokZObvQG6LFLkLqEpE+NA?= =?us-ascii?Q?d/IeWKL7HgfXbWWxMwwDl8GnWgonJRE3t/Zr7m+AcfoT7+uqcwprGsvIeSMx?= =?us-ascii?Q?aLI5ov5qSxVU+gKL/Pu2BU6r7nhudIbZEm866xnHFWEtXtiuveaODG3EkQpV?= =?us-ascii?Q?/KPtOcGqupFQzda369ADSBHg0jlaEnEpxtf4BU8Y/pP7BazxFaou9WEPVQtG?= =?us-ascii?Q?n3C4Ecce4DaKEJ0YN7omDhJmJ0aL8H1BNn9zoNyB3zhT332EJFz3E1fgPWHQ?= =?us-ascii?Q?opU1FCFFumG1cYev3oRipBYXoaHYZrqXg2Tjxy3UMFCvl8IbSiZPDbqBZQpW?= =?us-ascii?Q?LTQgYEI1woJFczYoahU09ixI+Dcu/KrQ9X3hhMSxJcYA5/WNQXqTAmxpl04d?= =?us-ascii?Q?9u7y3SGC8YG90ffjAPPsLJ3bkOjQAao7lvjKxpoivYGB2S7XhVLVhL6hW0Mx?= =?us-ascii?Q?uI4Oxox6VzyqLXAE/TMr/CAVPR9fqONmUV1UD9Zf0K60Jfpe3Dd3vMiAigWM?= =?us-ascii?Q?BHaLYwlWbF9ZD8nQdkyBtIga8ZwnUIZo9gPfu6nYjQY5lxmXyLz0NR96m/rY?= =?us-ascii?Q?jMDEufzlIysCbb1ai50QVei4o0i0sKAAZIqbEK/NaA6oF9KqUorxguODHzk8?= =?us-ascii?Q?tZR1ga4ewc32Zc0uYlzJ+0ADOyxjJQj1yZm0TF/eOkovT0E/ipg9Pd0O/7gE?= =?us-ascii?Q?J3YG8/uDy9CxjW4rtw0sxd+NJANqSdcO7ixnzyLd6YYnWQvUst4cIGkdhWeT?= =?us-ascii?Q?qcMWD7yrmkPQEVFcy+1uc9KDojG99j7Tl4Uk28B3kN7CQqvyrZbB6dh9C1fk?= =?us-ascii?Q?+DMLC0sv5Iw9l046dEOZZiJIQavgoQn38cdWHdk95o+bhuRdzzDE+wq+Uo2S?= =?us-ascii?Q?FjTWYHJ2nYaw95D/luepkaoZGCTexdCcBt1icHS6BOhVTeKs2AH/vOQ/az2P?= =?us-ascii?Q?lOLWGotQ7i7EKEhM2q3PY0maH92HYdgfBB4t3Hsve9y70qSItX5ULABSkDtZ?= =?us-ascii?Q?FSKQS5dF6AU1Cs+VFB0jTr97CXjIOJvHqgIZ7Lk7kURC0kF2vfzm++TOToDC?= =?us-ascii?Q?vwPMu6uXp86cSLKS67HXAmPdVfGAC3uNXXyogsiYrX3Rk5uSfMft46dj1zLh?= =?us-ascii?Q?08bpNdyNd38Q1ol7KQHBvV7mqYGWKUpciNUBgG8ednyDit8Wt0ta41N4NbdV?= =?us-ascii?Q?LgCVTdZ1Th+EPs3kIXImHk92ZDOaeY5w35LW+ft9TdE9yo8xfG+oj7UB8ZBR?= =?us-ascii?Q?CHvY8mET2DnWIT0gojAEincXxZBtX0kQdicQuLPSSU7zyDwcUmsYLRQ0PsC3?= =?us-ascii?Q?ibJr4gtihzycSABZsU47bsDMnV6QEjGJYxYquiFZYmO6o26oBhPta3UrxLsl?= =?us-ascii?Q?Fiq3rtIRYoJeP1G9HPOdbH3ttuTDvl+mvUMPOkaV5BJHlF/zZvts0mrRCUCL?= =?us-ascii?Q?GMwIveLod1er8eGfg3MwkQJFC3037+0S0HpXDalQoAq6uYBGzZk2JZPyk4XD?= =?us-ascii?Q?8A=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dcc21312-804f-415f-2130-08d9caf34297 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Dec 2021 17:47:19.1606 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: iku0I1Az723wXHgkqpI91bCdS4tmkSEHxR0fauLvlAxU4Z+GaicqUAUnuukiCvWjhKjp8VgAthjvYNh+O9dy3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2966 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10212 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112290095 X-Proofpoint-GUID: 2zvCgNOSe77u_9JbJMavZncwj7eRGQjt X-Proofpoint-ORIG-GUID: 2zvCgNOSe77u_9JbJMavZncwj7eRGQjt Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 frame= s." (interactive) (if use-dialog-box (menu-set-font) (call-interactively #'set-frame-font-all))) (defun set-frame-font-all (font) "Set the default font to FONT on all existing and future frames. \(This is `set-frame-font' with `t' as argument FRAMES.)" (interactive (let* ((completion-ignore-case t) (font (completing-read "Font name: " (x-list-fonts "*" nil (selected-frame)) nil nil nil nil (frame-parameter nil 'font)))) (list font))) (set-frame-font font nil t)) If you prefer, instead of attempting the more general improvement of commands that could respect `use-dialog-box', just fix `menu-set-font' as indicated (or similarly). But I think more commands that today always raise a dialog box should be able to respect `use-dialog-box'. In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19042 System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1348) From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 05:02:46 2022 Received: (at 52877) by debbugs.gnu.org; 15 Jan 2022 10:02:46 +0000 Received: from localhost ([127.0.0.1]:39094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8ftW-0004tu-GK for submit@debbugs.gnu.org; Sat, 15 Jan 2022 05:02:46 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8ftF-0004jo-D0 for 52877@debbugs.gnu.org; Sat, 15 Jan 2022 05:02:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=otI4XpuJof6gbo5oR1FGZB5yGmemnfNDGlcT9J1MVv8=; b=udIUhsOG1gPbMvgUVi0tmEkMy2 HX05BV3wjMCrmzDWBrbylNikhJrjuSaztCHT320ljYDq6YCO4MOGsVG779kYgE6EHYieQPvflp0En feMND8cy2XWqsob/Gm4vb4VFKMDZ3PzlaXPtftUoCdw3jEM9p7/plgXxcXySNh1Q3hO8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8ft6-0003Mt-Ii; Sat, 15 Jan 2022 11:02:23 +0100 From: Lars Ingebrigtsen To: Drew Adams Subject: Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions References: X-Now-Playing: Joni Mitchell's _Archives: The Early Years (5)_: "Little Green" Date: Sat, 15 Jan 2022 11:02:19 +0100 In-Reply-To: (Drew Adams's message of "Wed, 29 Dec 2021 17:47:19 +0000") Message-ID: <87r199wc44.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Drew Adams 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 al [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52877 Cc: 52877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Drew Adams 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 05:02:40 2022 Received: (at control) by debbugs.gnu.org; 15 Jan 2022 10:02:40 +0000 Received: from localhost ([127.0.0.1]:39092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8ftQ-0004ta-9w for submit@debbugs.gnu.org; Sat, 15 Jan 2022 05:02:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8ftO-0004qF-Ht for control@debbugs.gnu.org; Sat, 15 Jan 2022 05:02:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FG/XxOY6XjVloCLINuWU58ukis0F5MbEoROB/meLN8Y=; b=X9c0iTUG7EVpx2PAdFedbcGiCl nV7gqk9E67E7L3pWh5rSaNc11Q0+o7QC3Q6/xrykOMnA57khCOawqhhEqU9chAucistJPJVZ9q5JV WhdPeLFU54YI/A6jVTEwEovxgOl7u7d8LtzQRzjo66X9DgNIP1J6YqkIIPUMod6rRXpA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8ftG-0003N1-Gb for control@debbugs.gnu.org; Sat, 15 Jan 2022 11:02:32 +0100 Date: Sat, 15 Jan 2022 11:02:29 +0100 Message-Id: <87pmotwc3u.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #52877 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 52877 notabug close 52877 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 52877 notabug close 52877 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 17:12:13 2022 Received: (at 52877) by debbugs.gnu.org; 15 Jan 2022 22:12:13 +0000 Received: from localhost ([127.0.0.1]:42161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8rHQ-00068M-K7 for submit@debbugs.gnu.org; Sat, 15 Jan 2022 17:12:12 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:41110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8rHO-00068A-28 for 52877@debbugs.gnu.org; Sat, 15 Jan 2022 17:12:11 -0500 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20FG9MDR016452; Sat, 15 Jan 2022 22:12:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=XaitBJGfNxX7BivJr2l4/L4TBWPiU5JFKqHNTm+q0vc=; b=ZZOMhoEks6pcx45NYBZ6Ywy600EJVdU34b09pMNLg/wp6dHLkeSx+r5UlQwVgS8R7WVj YXnWXtxfdhy4rk4wrNTIHGcw+AE5cGWfFlVpFaoEIxVbXjn2zcT/G+cFwbnpyy9Rud// izJ2KX7elOHEDlxtDeJxH3+LvYS08H9b+V0qsboSp7PYp9X3fdZjDUESJDUtAF8MJwtq JZjxwYCJ4E2vEKVp9rzTJBBz8nsbd+okWI6AwwWu+Ckc7OOaCZ3lrks/RgTHRD6k3851 SUXDVl4KZnOHUe6x6E9AzVAp71lm1qcNs9xA9phH953f8mTBJ/gKYbB2Nj+e74EYON8x JQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3dknvsrw2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 15 Jan 2022 22:12:08 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20FMAh88043879; Sat, 15 Jan 2022 22:12:08 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by aserp3030.oracle.com with ESMTP id 3dkma974t4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 15 Jan 2022 22:12:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KkYHNMQcIuHubbYwbzWECgZz0QnI+E87rtSxXm4CAO8HjoZ5usEzzZxnIcvDhReMlmSGKrWc3K/5yYbcZNbLaY/Q/GkXbHuLRBFdPou73Q7Lzf1GAp/gPmKAiUmkpo1T7NqpQmONktXqpV6J7r93hZYOSflgwXUZaNT7cS6En1LPiE7aFYdNAzyxUJ/ZzLHZY7uxIuIY8kW0Wl2S0X7gkE/bWyU7dnB/G9N6eacwRmbcLlihuNjuzkv/kJsPnrV3/4ZWwjCXaIbfICeMbZaHWvTYdQwstNpq+HegYut1QhkN5lM2QkHVIopUJbasE+dCFzaJd4zNRuqnCYD0Nr+4Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XaitBJGfNxX7BivJr2l4/L4TBWPiU5JFKqHNTm+q0vc=; b=mIx+pXc6eSY+MOdDCjWjWRlHvAfkXs0AkyGod/sqxZW0H3KdrMM7PwQIugYkdkRoj5q5e4L/7g9A7gsX+4MDQEWX5rUl2+6Z06o4xGzm2tYyG28jtvNPA3aTZT87LIkFBkepilfsZ7rnr6O9F1fr8zrMQX4AvZS2yJ21zffEsf0rFe5A5q+DpOgkJ85nezJgx6Di/22t6I/RNP+UDXwdZlpolwcYpqXyO5Q7m+4jYLULYBVrL/7/a50QLqC65BJABKFUtzEaxe5CVort1CgxrU/ZWo+uS6YrylzpkrPDInNCgstu/5LSCLZH1Gmu9RrC7IhVrPLipYnFmyj5OAjtWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XaitBJGfNxX7BivJr2l4/L4TBWPiU5JFKqHNTm+q0vc=; b=cdflyBB8A2yquWrc8uta5lTnWEJMXJU/cyXlPQ7FjCUe+BevBK+vejsT8+GiLoq5ky5f0jg4R8xSZoQNVR8SzzkIHKnlX8btwbAcm2dEuoqzAJEUcGsMr0fEOfaF7+smQYVN7NQThRh0iR8vMleAbcgnBz1x0llXsODW14fd3Co= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BY5PR10MB3937.namprd10.prod.outlook.com (2603:10b6:a03:1fe::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.9; Sat, 15 Jan 2022 22:12:06 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%7]) with mapi id 15.20.4888.013; Sat, 15 Jan 2022 22:12:05 +0000 From: Drew Adams To: Lars Ingebrigtsen Subject: RE: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Topic: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Index: Adf83BGvgz7Hu9fcTX2mlrN80W/EjwNGvD+kABkgP1A= Date: Sat, 15 Jan 2022 22:12:05 +0000 Message-ID: References: <87r199wc44.fsf@gnus.org> In-Reply-To: <87r199wc44.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1c4d0f5d-be58-4b48-350a-08d9d87410ca x-ms-traffictypediagnostic: BY5PR10MB3937:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: f1nXyDW1UtepJoIefP7WUqVNAC8Qc3Y2zAzRO21voNHqwuOlXNrV91k1P3kS9vUBYj/iWKsh7M8VlUx+yTwTu2uOSJYqlMPUJP5aWIlJCxjvvRvBrOJWJQKiCsPYguWWYc1fJUTpDuNJ0Gxh6cTHLsRInwDYYX2grHF8M8ZITdOI1wapnCFwZ767/WY5NP91I2LhXCLvV4PSkcdI1LjsJ56D4R8LoaIM3XhXLWG1dV1xMkX3Jh4RgZzqo9xyuNdoOvJfgoG1Wr5cYrf8igJ/gJHkQ+RCvwWSgD4k3vAjPMIvdNkGg/D7Jnncv4E6VFdn/bIJoe/5pt32IO5eUZJ7TmEG2IopIzx1Y27Kd26OGzKDysAddO2Yn+TkFFA8WCgd3HtjZSHiZ4Y/YSKStC0k2p0j34CxhYkOzWwawk71DcySFeqxqapA73S88h6VT+vSIuGXJfEtz07GQ3svjVwJZjm2X7jgaW2c4NPMRKNAo0qtvVordGmi+LPB87xpPlUVUQlJo9sM1WpocBS01EIJfXvtXlyfyqv9G324mCkx/9gsm/ZB19+sDKqqCWD2hL4iFfz8Jk0x7Mv9wcIeDu9Zsxx51Wxbycun5itIk//GyZWIkRU4APLV1McyRsbIRbK4xE82Kv5ecMfDoO5FShMEsyLoxgDUzlG/mddJRkUd4MLbWWqqQ9w+yTo0D05vjwVDIWswCxqutfjrLTffl0Iek2HcIKFqU1YK/nI107Vrz5I= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(44832011)(6916009)(83380400001)(2906002)(316002)(508600001)(55016003)(26005)(5660300002)(86362001)(7696005)(33656002)(66476007)(66556008)(64756008)(66446008)(38070700005)(4326008)(122000001)(8936002)(66946007)(38100700002)(76116006)(71200400001)(9686003)(6506007)(186003)(8676002)(52536014)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eM2zKDdFodPxR4DPQwanOdLcmCfF8FtEcdfx0r3XR+Ev86rCr0Fgs2VxGvG/?= =?us-ascii?Q?/pZHJk9y1JUu2iWANTFjAgx1Oxkf7Bh1iOL/c4eqa2AqfpSdHMiyuA1HQWd7?= =?us-ascii?Q?Z0VKs5TvMwu2oi0sHQH/+qeM6WOUvyjHxY6X21z47s4WRcVMWUjpZPd2DRIV?= =?us-ascii?Q?oxXewI5aqZRj43aNHFteasfVueIAuO68PSMt0as9mmCqS0/P8EtVxwdblOsd?= =?us-ascii?Q?1ttZHmbQeHk1Le9lHxc3HOTNurlQyiJ9ZoemYeX6fmp4byFa893JUrRWXUfI?= =?us-ascii?Q?bbJQeX50zL4pe5c1A3NI4tpKRWVDfZwll+df61YCdndniQaS3pYe9a5RwJkZ?= =?us-ascii?Q?3gSbH1fWqMO629KqSPDCvvdq+k98FzERA9E0EPCWw0PHaG7DYrHHupvXN/Sz?= =?us-ascii?Q?cAl091Of0QVoNFyGLQ5DIBo0m8yywmKhJWQW0yOLwi3p/Y5tbIVgjaTfnWZv?= =?us-ascii?Q?dpl2WJn8+kFxEOa4xNqxae7fg+rUuRWGiMb1ssrORm2/Kma9BVDIkG/J7e0D?= =?us-ascii?Q?Kc+4n4iK/a8Wy2c+lWOhDFCm9f2ItKpZxQmhFohSXiOXLPjcPaTSXqdLQC7S?= =?us-ascii?Q?+d03z/2LMP5e/pWOcFUWpP4L2tvVCgnSdhH2r3/HRGCj2nl24uL6i743rkm+?= =?us-ascii?Q?9LV5PBB35lIEfDrwqTzTKV4NJFjF3vin/JEhyWTRT71btDblwdp/PZ/QzqEB?= =?us-ascii?Q?4OsvLUMow3I5GGqDaPS8qGPv8V/XJojUohQBFbAQtA+5SSqeTpmI1KNDjde1?= =?us-ascii?Q?0mPP3OCLke5pQlG7MaIWk8FOw+AOXpo1pOcguTbd3PrwDUyBZsusfXHr7gUZ?= =?us-ascii?Q?Jc63ELEes9Etx0aIaVxiTfYB/0s0AGJYCudtOKCwKWjohRagz2Z5KuEHWCXK?= =?us-ascii?Q?VqV57yfwmXxSienc9USsfby1S+0FRA0LOpOG7xdYTDhe4DfIpGRCtZTQko5u?= =?us-ascii?Q?6de3D4KlOX1388iPohuw0MXMVHA8KLn+42trjDJzsNziAVq49P/g4Fi0wJXK?= =?us-ascii?Q?C7zrIhMBQFjPPq0awBb9PLo9RkrL6adCd0c/N3s9/xvdYYoveoCronfs/2/M?= =?us-ascii?Q?z6n35pmfFc4DhkOqVtaeTIR15qtDxnP6er2lO9wT+0/3n0QT3Tp7wX1GVdKC?= =?us-ascii?Q?3XUgusimQz/ZErJBt3LJuYuOaNlCYVzdeKI04tt/QhVQXeYuejnR6tP+rDFT?= =?us-ascii?Q?25BNz9N0GkzN06v3dbuse14q/pGuwgQit8keQxzFN2aAkpg+xV5Mp9eKa4GG?= =?us-ascii?Q?QrEl0dWMyRU1KyRX+fSm3UUDYz1pmRLYAQoYgQMoQ1BGCm7JKwp9Kwhk7xsb?= =?us-ascii?Q?79vIuLwJNAqgcTfqDk3nOtlI3RM8OjSNon2JAM8RDSgYi8J5rizLPhCWMhAe?= =?us-ascii?Q?+VyuGhh0ZC+ZA7KeGs/oTIzkWcuWcT1fZcowX83BNCsB7Z+TKtxvB3wuGO/C?= =?us-ascii?Q?GOFl1Mtfno+Q3ctgsaQIcYNiAWHfnw+lfbowSvLLnrKUG+bR8GwjAhcCXBjS?= =?us-ascii?Q?ed+zxyQU66Mvn65OidC5t/620YCR/FBYfHuSy4GFFLOuS9U+l5OnQskZtwCP?= =?us-ascii?Q?ecxUI3JPDWub01WxioQvcsuKsL0/IHbcgnoFMlUCOgIBQ2kchJMdUbDpfbfn?= =?us-ascii?Q?eg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c4d0f5d-be58-4b48-350a-08d9d87410ca X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2022 22:12:05.8035 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0jwN6sLqGqIz9wjPbQI1ZsGmC0YMm/HbN8ntwJ40Yi0xEV1bWDLSuNpD8UQkxbA0M6UmUpjTGhQSk9nSDPzHZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB3937 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10228 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201150146 X-Proofpoint-GUID: GVk8nVb7foefUW0jokRya9_UOjEMj7cT X-Proofpoint-ORIG-GUID: GVk8nVb7foefUW0jokRya9_UOjEMj7cT X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52877 Cc: "52877@debbugs.gnu.org" <52877@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > > 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))) >=20 > If use-dialog-box is set, you want menu-set-font to call itself? The call inside the function should have been `(current-definition-of-menu-set-font)'. > In any case, the current definition is:... Which is pretty much what it's always been. > So it uses a graphical chooser by default, no matter whether > use-dialog-box is set or not. Exactly. That's exactly the limitation this enhancement request asks to remove. Let _users_ control whether it uses a graphical chooser or not - exactly what `use-dialog-box' is for. The limitation is that `use-dialog-box' currently is usable only with `yes-or-no' questions. Clearly the `set-frame-font-all' code I showed, together with the `use-dialog-box' test, should have clued you in to what's being requested. Alas, it apparently did not. > So I don't think there's anything to fix > here, and I'm closing this bug report. Too bad. This enhancement is not at all about only `menu-set-font' - that was an illustration. In your zeal to pointing out the typo in the the `menu-set-font' definition did you perhaps overlook the whole point? From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 16 03:50:56 2022 Received: (at 52877) by debbugs.gnu.org; 16 Jan 2022 08:50:56 +0000 Received: from localhost ([127.0.0.1]:42437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n91FY-0008RT-CG for submit@debbugs.gnu.org; Sun, 16 Jan 2022 03:50:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n91FX-0008RI-Bq for 52877@debbugs.gnu.org; Sun, 16 Jan 2022 03:50:55 -0500 Received: from [2001:470:142:3::e] (port=44760 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n91FR-00032H-QS; Sun, 16 Jan 2022 03:50:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=E0ylciL/Du8FVDpYfleQ4tATp7PtUVGHCVaqf3TCFCk=; b=NQAyPIYhjw+8 OQ6z9MWyI4IIzBe8EWoA7EN36Tq6KU1onHo7wiyPSOkFVTmHlHDSXFtSSUrObd1P7dEBUm5Czmsaq YE3bzlHCyVnmaAj2ai99oQ5WgjH2duz6HO4XL7oAaHD6+0N4+vredTZQ7xPXDnYKqxQeRHy1ZwY6m 6nqqa6GtvgIM32khI4ghrojYcfCoCUjC/3KGo7eEeJ9DSl+PEoS7YF6y0fSD/FdZcidXIhCr7yBTB wwQpiZbEnN+uTQA4qEQNLPy5EV+MIelw5LAjiKQUKkGSAzLpKRR5iU6VYqwgc0GgEXdoDP5ErwzRB 0Hg6IC83eLUgjNa1Lhjnbw==; Received: from [87.69.77.57] (port=2735 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n91FQ-0002G5-Rm; Sun, 16 Jan 2022 03:50:49 -0500 Date: Sun, 16 Jan 2022 10:50:34 +0200 Message-Id: <83bl0cysh1.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-Reply-To: (message from Drew Adams on Sat, 15 Jan 2022 22:12:05 +0000) Subject: Re: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions References: <87r199wc44.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52877 Cc: larsi@gnus.org, 52877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Drew Adams > Date: Sat, 15 Jan 2022 22:12:05 +0000 > Cc: "52877@debbugs.gnu.org" <52877@debbugs.gnu.org> > > > So it uses a graphical chooser by default, no matter whether > > use-dialog-box is set or not. > > Exactly. That's exactly the limitation this > enhancement request asks to remove. Let _users_ > control whether it uses a graphical chooser > or not - exactly what `use-dialog-box' is for. > > The limitation is that `use-dialog-box' currently > is usable only with `yes-or-no' questions. We don't provide any non-dialog way of selecting fonts because no one has written code to do that. The dialog we show uses OS APIs, and the implementation, beyond popping up the dialog and using the value it returns, is not in Emacs. So we simply cannot offer the users control of this, since we don't have code to find the available fonts relevant to Emacs and display them grouped by family, typeface, size, etc., in a useful way. We use the system-provided dialogs instead. IOW, this is not a bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 16 17:13:44 2022 Received: (at 52877) by debbugs.gnu.org; 16 Jan 2022 22:13:44 +0000 Received: from localhost ([127.0.0.1]:44378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9DmR-0002JX-Hv for submit@debbugs.gnu.org; Sun, 16 Jan 2022 17:13:44 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:12220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9DmO-0002JO-9m for 52877@debbugs.gnu.org; Sun, 16 Jan 2022 17:13:42 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20GBJF7k023002; Sun, 16 Jan 2022 22:13:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=4WYIhWUydvYT0VRpkWeoEKQHQjDGaD6BY5ek8Hx1P+E=; b=ROjdwIQGRuGAJUtBPSz9EokmL6v0PD7uArN3CFD1W4OEX6BARBh3nv08uURrCROaIJIj WL3XyLPqoh+PqM3C1oRfl+A/0UHBxCFyhxaKBlYZu4kWgxIay8J/xL809q6t++NYRChr 7iD2qZ/lH7UyVtJLdPnXfhFS47ArW7Wq4DkAL9ByUIR/x+Oc7U/FBLa8mReaFnlbtShj itfc21wAbfnZeKXDB1mtJH2XU2K8Mnh5n91Xoxh2BCpuOxe0LJUF8Wanml3rxRpox5Vu rE5JgWJF4sSVlGPQmPwuJH8jZGi1qOPrFrUEYUXWbGwnJWbTVJ2WsBcZH9EFs4v8VVxZ ww== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3dkn22t64r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Jan 2022 22:13:39 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20GMAj2b186496; Sun, 16 Jan 2022 22:13:38 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by aserp3030.oracle.com with ESMTP id 3dkma9xu4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 16 Jan 2022 22:13:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VB1uvp/UBCJ6HeU1QgNxExN7Df2Fn2XfCbe93YPBimfVQE0fqZwqSW+go9mfG9/K3+5oJwjmFIzk9faoZu1V6JnWDbd+ktF6/dQBkovNQ6n/53DTMjtqJS8urqAc3Xo8S/cbNL85ObmXGUugYQY6qd2RHvhET5BnMa2/nrIgs+8b2jX2h+AnFVyHiJ5jshyHPIBc1nLRauRAlP+sHIftw7lXKfyZ6YClQorftdr0zqg2DjhC8EEGwAxwB7K1Zn5CGlJDtLy0cUhfW8KdK9KiLrOGWPrKttJ4u+pltYnyqDQ4gqnfb6j1MYJGdUzbOvVkJ6JP7+Ipnj5ZKYujW3MIQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4WYIhWUydvYT0VRpkWeoEKQHQjDGaD6BY5ek8Hx1P+E=; b=FsntIeuXfgwYmCWC7i0M3lMCgPfm9y4d1s3qI0V007LwZvn40DAO23UXhp0NUnrJrQPJKbS2T6YjG01f01G0mUk78wj1wIxrbMlB4eS9+x6IfzCUuHuleFac22bQKaNx5Yf7zPvrc5l6acEr1kmAz978q/8saVilqNvpx/G35ZWtGr538rydtE2Q7ax2MzUgPblAHdAcZuv2uX1geOL78EC3z/k8wefXhuun08g9iKir124x0mczIUmpt13aPmsVCZUR+BEN5kRoq81J1wZGu/jq6kCsWNKZrvLen4wMzYe4cTq1J9qNx5KOjbI6GDQDFf2aShkLO8VnyRE174BOUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4WYIhWUydvYT0VRpkWeoEKQHQjDGaD6BY5ek8Hx1P+E=; b=bEUTLd6hTT/nCsJzoZdMrzdMAP/M+osNNEe8kABQAzUldAxtkIgiwCebRfBsIwzP5zlm31mV5FjGAkstZHjayz6AK7LjYgFyAnu9Hsfk7eq+Iz2FoFEfbq11eKd++NeuUtfdd8U1aq+SmDLKNa36kCNbE4An9gvV2iZfgCXg/+4= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DM6PR10MB4027.namprd10.prod.outlook.com (2603:10b6:5:1fb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.12; Sun, 16 Jan 2022 22:13:36 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%7]) with mapi id 15.20.4888.013; Sun, 16 Jan 2022 22:13:35 +0000 From: Drew Adams To: Eli Zaretskii Subject: RE: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Topic: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Index: Adf83BGvgz7Hu9fcTX2mlrN80W/EjwN2hu6HABsR60A= Date: Sun, 16 Jan 2022 22:13:35 +0000 Message-ID: References: <87r199wc44.fsf@gnus.org> <83bl0cysh1.fsf@gnu.org> In-Reply-To: <83bl0cysh1.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 925cedc6-2a87-4334-f545-08d9d93d70d1 x-ms-traffictypediagnostic: DM6PR10MB4027:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HsWAWx1w4rWFzjhjUlfhP7piyrPjFMtMELGwLzuSC4AITCMa3jEaiuhkefvGmG9DThAsXInR4cd6aC8c5gpceFQFifc5VoJ/USXDaDqrxvjfyQZL3GXreIeAXrvHCVvc7Qp9Wdgdtthcx5VQt2uNvJxiatQzKXoWS1w+gyT78VBRzZFN/D3DEbUo/LzdUmwmUmPWOROj83JpbnGEF7rqrBInEQIrpKm+gW2djhF7UaWFFBy38WAfujNaaAM7bSoHlzvooYR0iUYeFWn5Rv1WYFPkF9OYbMexMqtdXnMgsUB7g7xJhtIMLgazMwVPxcA6IEdASSqYt08p9FqGehag7PB4OXOFjoxtahQUWATGhb68dw7NN0PDwe6bXh4Li6N6TzFNX4TWObgN+geqaGAwRg1FAR+Jgj/ntiVAVB6zBwJQ9+Z1+2epmF06ZVSanVIcp5WnD/MRsb3++527r6nIcT1lS25YHjIOn4waTLIRAEzCdERXFM4pnUsdGuE2B24zxAcoKWMUJhAGcR0nGN7Hm2jTU7spr+eHo9qQwRCSALZiQ7lUmHlGkgLGhApK2L6f69Zy+X/KPLAfhEombLE9UxH6qZCM9XTa+GKUdWfH6ZDUr/Rfx+OhgeiI2LhEflM3ja8HECjw40/WnBnALMIdyzWMsZQevSL9VM19IPfCdLRtdLOZ6Sni3oZ6mEYkfXNO9Rqf5PN+Amlc6ZBVs1k3jpCRA7DhC7/t1t6c0cscsyk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(55016003)(83380400001)(54906003)(8936002)(6916009)(186003)(52536014)(33656002)(86362001)(38100700002)(122000001)(2906002)(66946007)(66446008)(508600001)(7696005)(26005)(66556008)(64756008)(38070700005)(316002)(76116006)(9686003)(66476007)(71200400001)(6506007)(5660300002)(8676002)(44832011)(4326008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XzrM1lr2+6V0vWoxiHz7fCF22tXMcp7saztQywcUeGZCcvwNw1rBB9n+erX7?= =?us-ascii?Q?KkvqPyCkTfT2lQXFhaPaDSogqOtAxVOkuHs2UwuBnueXJkt4flc90ZIsACrQ?= =?us-ascii?Q?tK2kgt1teehb1c/0F2O9RL5Uko+8231FP5Ld59dyCl5TJuT0CGR7YEmLgXYx?= =?us-ascii?Q?wCD2LuOxLpDopLWG8qGBmsm8GPWPCixORGmA7pZ8tX1jIcJhBxbZAV2AyKac?= =?us-ascii?Q?+h0jW8S4KRavAdCisNwNPpuHF4cQPRnK6kKrF22ToGDmxjUg0jt+S08Tb/rf?= =?us-ascii?Q?m03l5anDOQMBpGxFd3RJ6DKStYxpsQvR8W45sVWbYGNAuK3YBPjHgZ+KS1qH?= =?us-ascii?Q?wpXl54M0SZWUbKHuGSTVB687zDqpQSmv5QxyNOlnN1FW5hVuHTcYM6Udc5lW?= =?us-ascii?Q?m1Z/vZgZtlBWF1699ENMRQeO8WedB62XvgS70R664AuG9CK+03F02RB8MCou?= =?us-ascii?Q?zF8PmCekopMfAPuFLbbpFpafH/jfgdeFs2XkoNgdCKe4LlUyp7997isLbYHY?= =?us-ascii?Q?mzb3/qPqcb4etxDpRDK/xoJwZv8AC4gF9niMkuD4qZaxWEsINhAQjwIBQd3v?= =?us-ascii?Q?thClsswCmFBdl2PGr9IqtcSAlcGM8a1e4h6QtBAQ+Ce5u08Dl6GmCOhbIT5q?= =?us-ascii?Q?uwMsTsLqvCJGmqACfBmXes/Y0w/hxVKmwI1ABLiDlhH+lUkq62VunW2vIvlg?= =?us-ascii?Q?awpFSsN4jtG8GDwf5OLMJd5Bo+arMrI+b0+fX0Gn/+YzHut3Ec9XxK2gBXLq?= =?us-ascii?Q?UVmeUE/bWcjVyAzALDazH1yGkg2TU6HCCn5sr2zohj1Gh//+JZENSAPewrzH?= =?us-ascii?Q?xOfN7WDcqejaFcUaTCBGBsDvBrmpvv3Nslglv/MXH9ZavkcHNOmsCkKC86Tz?= =?us-ascii?Q?vwPyZHJ+vSClvP3lHjR+nj1CVEXfYekdP7UojDb0sR6MRY2l2Z1F1k1vkvkH?= =?us-ascii?Q?vri7eVSOdq3pfr7+G8M9IbSCjHCNWvJH8nsYt7cZiI0UZdUkxehPluIuVq3z?= =?us-ascii?Q?sLpzpZNZ8ahayanR42dv0JLCipu49NiZD76QGBQY0jTd2HPNLRDdtnfAuc3m?= =?us-ascii?Q?krDZnTLAJeeAbo2iN754jYPmw61bU09K31+ziHUNhNjCo1lrxHbYSi3Nn5e2?= =?us-ascii?Q?B0aKkHFtd4u7G/PHFTZrutJX2CuQv9Ct2H0ltk0i3jSs7eOTm3CR/XSGe7Xb?= =?us-ascii?Q?LkWv0iojLqAurfXXN5rSIjtN5WqhjiyVZmEo88uec0Q4TOmQUrrjNzNxyHEq?= =?us-ascii?Q?gJI1Gj6OhS5cuLqR5ZEaE5t9+gJEXaOdIj7YRqjMRfxYr9OBrJ+v4qRazGy0?= =?us-ascii?Q?gvN1UFGnoOL/IY1EQ9ya09pAVufpNmrRwVH0goVIOdDF41CE1w1BqwfLt6Pd?= =?us-ascii?Q?TJI+sjzLydmEbAD5IZkSdkOy6oZeUpqM/Bsnq0xXYrYS7OxlEvwx/iPDNNbr?= =?us-ascii?Q?eLPFiAxuX2jlN5Mdpc4AhNGlgiu4XzkIPrceKInJuccI5LB6l5IJvreyNeh4?= =?us-ascii?Q?dNr8iNhkAy2P9dbas7ETHRKsq0144wUYZxPWI4I+iIUFtPyww1oR/rqdPVEK?= =?us-ascii?Q?gQvCJqrQprMn7lULrIyuBsXR0dSrUnWKzQ3m72LvxiRhHX8UQUAl+7ToDuPs?= =?us-ascii?Q?2g=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 925cedc6-2a87-4334-f545-08d9d93d70d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2022 22:13:35.5082 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3UJstLnRQiKQAXXh8HkgKOjpudUyAfoI2sjN2+Kacvel9glHGKtyTb7Z5Bknx5auMcelnfNVufxbKvKGLJ2pKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4027 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10229 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201160146 X-Proofpoint-GUID: skBeukMDIp8YDp6K4DR7YjBKSjHgHueI X-Proofpoint-ORIG-GUID: skBeukMDIp8YDp6K4DR7YjBKSjHgHueI X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52877 Cc: "larsi@gnus.org" , "52877@debbugs.gnu.org" <52877@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > > > So it uses a graphical chooser by default,=20 > > > no matter whether use-dialog-box is set or not. > > > > Exactly. That's exactly the limitation this > > enhancement request asks to remove. Let _users_ > > control whether it uses a graphical chooser > > or not - exactly what `use-dialog-box' is for. > > > > The limitation is that `use-dialog-box' currently > > is usable only with `yes-or-no' questions. >=20 > We don't provide any non-dialog way of selecting fonts because no one > has written code to do that. The dialog we show uses OS APIs, and the > implementation, beyond popping up the dialog and using the value it > returns, is not in Emacs. >=20 > So we simply cannot offer the users control of this, since we don't > have code to find the available fonts relevant to Emacs and display > them grouped by family, typeface, size, etc., in a useful way. We use > the system-provided dialogs instead. >=20 > IOW, this is not a bug. Let me try again to be clear. 1. This is an enhancement request, NOT a bug report. 2. This is a general request, to do what's suggested for at least some commands that prompt for input other than yes/no or y/n: When the system provides a dialog box for choosing the input, let the command test `use-dialog-box', and use that dialog box when that var is non-nil, but use minibuffer input otherwise. Do this when it makes sense for a given command. If it truly makes no sense for some particular command - e.g., there's no way to get the required input except by using a dialog box - then don't try to do it for that command. 3. As an _illustration_, and as a possible starting point, do this for `menu-set-font' (which could, but need not, be renamed to remove "menu"). This code does that. It uses the current code for that command only when `use-dialog-box' is non-nil. It instead uses the minibuffer with completion when the option is nil. (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 frame= s." (interactive) (if use-dialog-box (set-frame-font (if (fboundp 'x-select-font) (x-select-font) (mouse-select-font)) nil t) (call-interactively #'set-frame-font-all))) (defun set-frame-font-all (font) "Set the default font to FONT on all existing and future frames. \(This is `set-frame-font' with `t' as argument FRAMES.)" (interactive (let* ((completion-ignore-case t) (font (completing-read "Font name: " (x-list-fonts "*" nil (selected-frame)) nil nil nil nil (frame-parameter nil 'font)))) (list font))) (set-frame-font font nil t)) AFAICT, at least on MS Windows, it just works. But if you feel it doesn't work as you'd prefer, feel free to use other code. As for whether the simple code I suggested here for `set-frame-font-all' provides _exactly_ what the use of the dialog box provides (you mention grouping fonts "by family, typeface, size, etc., in a useful way"): that's not very relevant - not definitively limiting. The doc of the command can make clear what the behavior is in each case, if they differ: graphic input vs minibuffer input. In any case, the point is not this particular code. The point is not even, more generally, to fix `menu-set-font' to make it usable also with nil `use-dialog-box' (using the minibuffer in that case). The point is more general than `menu-set-font'. The point is that there's no good reason to limit the use of `use-dialog-box' to yes-no questions. But if you think there is such a reason, which precludes _any_ use, for _any_ non-yes-or-no command, to use `use-dialog-box, then please state the reason. Users should be able to make at least some commands, which today _always_ use a dialog box, respect `use-dialog-box', so that if nil they prompt and accept minibuffer input. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 07:48:25 2022 Received: (at 52877) by debbugs.gnu.org; 17 Jan 2022 12:48:25 +0000 Received: from localhost ([127.0.0.1]:44935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9RQv-0003jy-6G for submit@debbugs.gnu.org; Mon, 17 Jan 2022 07:48:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9RQr-0003ji-8y for 52877@debbugs.gnu.org; Mon, 17 Jan 2022 07:48:23 -0500 Received: from [2001:470:142:3::e] (port=36306 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9RQd-0002kr-5m; Mon, 17 Jan 2022 07:48:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wvImBQbSSNLlWvkxhjrpONNIQQKkNfm715WaGt0/8t4=; b=FRx/UQuPl7k1 ob4ji0HC5tEaq2na4svMx/15VUc1InJgdB+3F8HgQX9ow565cwW1f6qxPga0uUUAE/d2eFVvZOeIz vVcHOx6kHeZrQ5CnbI40qKVxLABji7xG3TeH5nNbZad0gHKLEQxdPIENLdE78eBrSrtOCVA3fcvbO mWm++iui1ikn6DqmRmXoY3KA/eXHpxrww9jB2eWWi+WJSOa+07lqYT5KfEZ4RqXxebTkYBY9UvY7R F2oswV4tWFNlPFCHXLx8wi8bkayhvbLAyKbhiy0sKYdlGYORRHnqvfBb2bB1eFazikEVdgalrOACy PmU2y2NjnaedUiE0ELyo5g==; Received: from [87.69.77.57] (port=2325 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9RQA-0003WI-1S; Mon, 17 Jan 2022 07:47:43 -0500 Date: Mon, 17 Jan 2022 14:47:28 +0200 Message-Id: <83o84awmu7.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-Reply-To: (message from Drew Adams on Sun, 16 Jan 2022 22:13:35 +0000) Subject: Re: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions References: <87r199wc44.fsf@gnus.org> <83bl0cysh1.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52877 Cc: larsi@gnus.org, 52877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Drew Adams > CC: "larsi@gnus.org" , > "52877@debbugs.gnu.org" > <52877@debbugs.gnu.org> > Date: Sun, 16 Jan 2022 22:13:35 +0000 > > 2. This is a general request, to do what's suggested > for at least some commands that prompt for input > other than yes/no or y/n: > > When the system provides a dialog box for choosing > the input, let the command test `use-dialog-box', > and use that dialog box when that var is non-nil, > but use minibuffer input otherwise. > > Do this when it makes sense for a given command. > If it truly makes no sense for some particular > command - e.g., there's no way to get the required > input except by using a dialog box - then don't > try to do it for that command. We already do that. IMNSHO, it doesn't make sense in this particular case. > (defun set-frame-font-all (font) > "Set the default font to FONT on all existing and future frames. > \(This is `set-frame-font' with `t' as argument FRAMES.)" > (interactive > (let* ((completion-ignore-case t) > (font (completing-read > "Font name: " > (x-list-fonts "*" nil (selected-frame)) It is wrong to use (x-list-fonts "*" ...) to produce the collection of fonts suitable for Emacs. Yes, I know: you said it's just an example. But providing an easy example that cannot be extended to the Real Thing doesn't help us make any progress of practical value. > The point is more general than `menu-set-font'. The > point is that there's no good reason to limit the > use of `use-dialog-box' to yes-no questions. That we already do. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 12:18:41 2022 Received: (at 52877) by debbugs.gnu.org; 17 Jan 2022 17:18:41 +0000 Received: from localhost ([127.0.0.1]:47817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9VeS-0006E3-NU for submit@debbugs.gnu.org; Mon, 17 Jan 2022 12:18:41 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:51760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9VeN-0006Dq-LP for 52877@debbugs.gnu.org; Mon, 17 Jan 2022 12:18:38 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20HGaj0M002150; Mon, 17 Jan 2022 17:18:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=O8Hfv4OJKMsppoc+4nxfWc6sXsEcGVl12prQVddKzak=; b=RMGCLpNqzPEpIIBWAjofWVDYtNthS7Hk9ypYj7pzVcDdHw2TIQA4aV0gJgXQWF+5Qd8p pvZnJ2akS2Y2NW2FbCcDVRyrd0HhumES/9ess2y0FPk+9mX0LBW17Ke/wkrWfH6sr8kl kbLmR9An/RA6ycloqshCgkbRa+dbvccxdhQnFLPUB5W1l2bGYaosKF45EA6CyuBnr9wd WCzGW6jPyCzNPYsH9kqFVxmDrpiXUipZhppXKY5mDJg07r3bPbO/Rir/ZhR3XG98OCg/ QPH1JH1xwUMZMHJq9vqRaI5kTfERIfscwhzx0VexfrRkL6Co5Wii+9GX2hhRll2MtqRz yw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3dnc4q02p4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Jan 2022 17:18:34 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20HHGJXx159894; Mon, 17 Jan 2022 17:18:34 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by aserp3020.oracle.com with ESMTP id 3dkp3342u8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Jan 2022 17:18:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ELNKVVqc+PV+6Ko9lGu0UEiE96cDQzc79yTDSKRKCqYRKAyK25PW0a0KVMtIlZn6txUOM6lSaA6CAwEAuVwB3P0R5ylZ2XP/0ZUQpxAsCAMEfxVdlFP/gMMyzdzcMDGd8wlihnwQUidOr3+gtBYiCGl/4bf9kxNvtBUjpLzp5nVtdfzmpSHnElho6zhfoTxDOY2fJBnpVaovqAID/e+AhH0bQQXBOHWMs+lmTS9yEZgoXU4IblgRmVyMljNqGfnPbe0grJngXnhgQqsIx82UI+fLG6LdiPtmsoWvFSixA9yHuxlJCBwJ/h413odBmBaOXOZDyLFZWCPGY1w+hWvxOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=O8Hfv4OJKMsppoc+4nxfWc6sXsEcGVl12prQVddKzak=; b=Z0p+quZYusweuhV2J4bKAB0u/kQlZ8uNthD0Ycd6j77Z7EZr/GGdc9XpQ0BhAmALZs4PASCAnLMSoJhxdFTn84wSpVP9NpqhNg7qN8bd+NREY3Won5/kWmfEzSXTgxqoBh3YsLds5+lUBf7PmpeZjLCgwL18V+1ekb9qIL88qsxGIYyQGEOnWrCivuZyDZ4aFEbeKNwvqSC1sdoBdFhnLIkPKujspsBDIEBWRTGsXckPtNG/7FyBSSxzmUuash3xqNLrj72VZ3I1PeklDdtMtAGkJPoNdFX2VjS52JovO7lFCO3fWic10sitFb8EFmm2f5yUukUSmweyD2Ut0VhoFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O8Hfv4OJKMsppoc+4nxfWc6sXsEcGVl12prQVddKzak=; b=CFIxVlvFlBkyxSLyB0VOjBDzsjZhWDEUDfxEfwS9LbgdY9JJP3qHW2BSoAhyRWTRfggckYmiCwDIFzSD0SP//hFBmq2DgnmcrYWsBbgkqzgszCKtp1aYKhSjbOfvzAI6WH9CeoVA0/hyNLlEDjg8OUj8YRS2gW1jtuoVEnmLJKg= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BN6PR10MB1283.namprd10.prod.outlook.com (2603:10b6:404:45::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.9; Mon, 17 Jan 2022 17:18:31 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%7]) with mapi id 15.20.4888.014; Mon, 17 Jan 2022 17:18:31 +0000 From: Drew Adams To: Eli Zaretskii Subject: RE: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Topic: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions Thread-Index: Adf83BGvgz7Hu9fcTX2mlrN80W/EjwOxHGxoAAgYslA= Date: Mon, 17 Jan 2022 17:18:31 +0000 Message-ID: References: <87r199wc44.fsf@gnus.org> <83bl0cysh1.fsf@gnu.org> <83o84awmu7.fsf@gnu.org> In-Reply-To: <83o84awmu7.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bd698600-9b8e-4ccd-c123-08d9d9dd62bd x-ms-traffictypediagnostic: BN6PR10MB1283:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qcju7q9ckf0MDXUa8qGO4gKM4cAqQqWVAn8ukGnlhfZQnH0qTtP7mt/QS05f4Irr7A8mUCnLFQG/hTnK6RmpOqm8jDIaDNpBBo/alXZNf+3ZakIDkw1sRHR+GBuFvaNtT2CooNEFxAVcARtxvjiZlJ2yzcuu2r2X30dHaFEtYayLd9br5NcR0nDUS2VuQOYyLRZ7L3MO2wFznC2KT/dJoenVFuARuZrPYKziln+bQdHmiM4Sx5qI93z4r5pAsWnageoAbaWmDxDrcyblUlBPZCdLh8nEQm05TM+0lt57khL86QbEFnJadqEhwM9TldWC/BbK+ku8brG9wiCVFuDSiJ0PwWtS+gU9xDc2yFY+/ET9MmUha0upRk9z9zpbBkRMV1hWkKiRLF13XnwgcsCE/h//W5KaCV8sEK/9Jo9jOwNPkgfUenARLUVUKRwre0iVhFF0v5geDS8EPLs+3p20ZPNytfw7J+3YdRJG+jQolCKs9CIezFubQN07TV4kHkpputcJf9OaNL1wilaY3OjyAE4ppPFawsgxFv96UH4cVQkWpaJamJ/p88F0n/ASf2MXZYOIK6AC/Qkej9nur3y9tZW7vfMFOJPCQwGQvI7fVFoh2C5mjgA4J+f+h0s/W2l45b91DegY7z5sUpan813+J4U5XTZppy8UVvY2n5cRszq6aXz4tMKU1jtlJDYG/uwO7xzGkYLcAaQAy2aTXW160rp2hsrAuuWQkrP2mq4ZS6U= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(33656002)(122000001)(8936002)(6506007)(8676002)(4326008)(86362001)(26005)(66556008)(66946007)(64756008)(5660300002)(71200400001)(66446008)(7696005)(186003)(38070700005)(76116006)(83380400001)(55016003)(316002)(54906003)(38100700002)(2906002)(9686003)(6916009)(52536014)(66476007)(44832011)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CqWR4ZTAbAlDUu9ALx34ozUR3gIoGiD0lQ1nC6+50j0+G46QdwlKUMZmz1Ar?= =?us-ascii?Q?ZYcP7LUMPcZCRAf5IYsTf7v6KgKQBEhxJlToyJvbtfqaCpLjfXB04MQ9nUul?= =?us-ascii?Q?qMfo/wjZ6uT/RndvLwMUoSeGmrAaYLi0Cnmy2yA4ZkBlxjJEKyo8PXlF0QLi?= =?us-ascii?Q?xJZEIXYjoZJutk7pIe/9ufRqfHVXiIOaD60aPTNqE+r85YP45l/Ek8mV+DnP?= =?us-ascii?Q?ktWiT5LPqzfsCnxvh6Rus3c+dHKQqSWE3PstdKzeLF1n8s7k7UnD8EsL+zna?= =?us-ascii?Q?JrjmaQ2H2jVht2uwVkcPKlKJsP/tGvE7rRVKy0+RnWQKVov7OHGMA++tG+al?= =?us-ascii?Q?pEoRX4DPTsiQbc0iWdvFgmTFoYhlz+Hlbc8ynMvWvCNZtwO79T9ixd0Jsjv3?= =?us-ascii?Q?DOIy3+w/o1oT0UXdhXoJ91om79OvIWp3Jlq0SSWVDZSMnc/G4m8kaX9JEvWJ?= =?us-ascii?Q?RbjE1awiNCg2NESwLYv8nSrNmyXIWcc4JGV3RoHYQ+xmoEgMlcN1sbNu5CUv?= =?us-ascii?Q?IVErGR5idz5JGtv0TJQvFocDq058NFHS/4w4nlf8NawTdbB/OGCmLrzfdd2f?= =?us-ascii?Q?UrFgDajvZwZFL8Z1r+5W0MDdUrk+H3JROqtjx5ZSvkYgEGwtNZqAUUZKmhTW?= =?us-ascii?Q?BDLVJwgaH6VreLReNzgAABwM2sGnK++8AmKeteoSLjlzpRA5xw+No0mzpGI4?= =?us-ascii?Q?ewyXEzW+DGJ0a5vdpqBnE40tmDo+Ofd/kK1g9SR680L91s7pG2GiYJEOGkqN?= =?us-ascii?Q?8Seoc2Oq8lzT0F3uPxB7gUp+CvUftLsrVn6KLo5byjHypom2XuK7ane3g8v6?= =?us-ascii?Q?h+fzGf7X/shyT/d1ueZ6fG1AbSksx0uuxj4cW+QZReGr7wSi6iTFNa2OKTFj?= =?us-ascii?Q?pNwxEUV6jmBD7devc+tm3cF3aUwS9CIupIQOTBNj4ykzSXjDe0GHS4NQNfRM?= =?us-ascii?Q?LiQyik41XoBUae/etGzJ80GjulUF+bq/LUeSM89uucnXMXumFHtuNvAsPfSc?= =?us-ascii?Q?K26WvJdh+CiMNYVny5D/Tkq9RQnLhnwUvHjujftbvA8Ivpz+MGCRa76DK60e?= =?us-ascii?Q?3q4EPVoep5MCvNWop8kw892MCXwddiikI0R4JAyK4BROxtPyADVF9gSMldiU?= =?us-ascii?Q?TU2kqZAob7CzE36y5aUyimLoFhO6etxkgsg/8ToZtIWkHjOX2/T6rw/0NsLh?= =?us-ascii?Q?/m1gg9KyHH0kAN8lJIPzUbLip0KKd8/bFCMiqa9meaP599wP7OFIWuWgo+RJ?= =?us-ascii?Q?CDm8A1Jhgi/gzRr5LITalOI4BQoEtWC/TKAvk3oD76zwbc/IOjhr6Z9Z+GFl?= =?us-ascii?Q?jCbmcZRYejpBRqLu2yadaiD+rwxyiru5seZ6pwcndHhAoOKnbrrhYqXFrS47?= =?us-ascii?Q?BkJLXKU83hSNqJMHzrjsQsi0Dp59Laek/7/V7PxXJFJv6JIRG35eNfQY3Oeg?= =?us-ascii?Q?WHoG97/4fGv12ARXRDcaBgjrnUcnHAo8mBGwNy/2thWirPAy82QP0PeuHTzz?= =?us-ascii?Q?VmfqTjrgUaf3IWV42bwaeI0y5u4y0OrZPHxBhwlXwa3hvGavhraxNDeEm9xI?= =?us-ascii?Q?Gy3wL2GpU6L05bhvzRQe8CuGYiv4kOJO3h0uozKsstXLbKJTN9XuTydNg06F?= =?us-ascii?Q?KQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd698600-9b8e-4ccd-c123-08d9d9dd62bd X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2022 17:18:31.5988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Kd4nCKR0hT2LBoWbFQvqUd0TRmICidPJr+KvPZ8GhqsZ3mB4uj3Kh2xqgRriwNzJaApPpyzpeBIvXSwOwYxJLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR10MB1283 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10230 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201170108 X-Proofpoint-GUID: 4uGh-rCpxo66WRC-_DRZ3ESGlEI2FqI8 X-Proofpoint-ORIG-GUID: 4uGh-rCpxo66WRC-_DRZ3ESGlEI2FqI8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52877 Cc: "larsi@gnus.org" , "52877@debbugs.gnu.org" <52877@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > > 2. This is a general request, to do what's suggested > > for at least some commands that prompt for input > > other than yes/no or y/n: > > > > When the system provides a dialog box for choosing > > the input, let the command test `use-dialog-box', > > and use that dialog box when that var is non-nil, > > but use minibuffer input otherwise. > > > > Do this when it makes sense for a given command. > > If it truly makes no sense for some particular > > command - e.g., there's no way to get the required > > input except by using a dialog box - then don't > > try to do it for that command. >=20 > We already do that. IMNSHO, it doesn't make sense > in this particular case. "We already do that." Really? Please point to examples of commands that use `use-dialog-box' and prompt for input other than yes-no. And if that's really the case, then please correct the doc of `use-dialog-box', which says "This applies to `y-or-n-p' and `yes-or-no-p' questions asked by commands invoked by mouse clicks and mouse menu items." The two corrections would be (1) remove mention of yes-no, or add "including" or "for example", to make clear that use only _includes_ those 2 explicitly mentioned use cases and is not limited to them, and (2) clarify that the commands it applies to are commands that "can" be invoked with the mouse. > > (defun set-frame-font-all (font) > > "Set the default font to FONT on all existing and future frames. > > \(This is `set-frame-font' with `t' as argument FRAMES.)" > > (interactive > > (let* ((completion-ignore-case t) > > (font (completing-read > > "Font name: " > > (x-list-fonts "*" nil (selected-frame)) >=20 > It is wrong to use (x-list-fonts "*" ...) to produce the collection > of fonts suitable for Emacs. "Wrong", meaning what, exactly? I don't see how it's wrong in the sense of not being able to produce a collection of fonts suitable for Emacs - it can certainly do that. Perhaps you mean that it won't necessarily produce a collection that includes _all_ such fonts? Or perhaps you mean that it can also include fonts that are unsuitable for Emacs? Please specify what you mean. If there are any such qualifications they can be called out in the doc string of the command, to make users aware that, when `use-dialog-box' is nil the set of candidate fonts is limited in whatever particular way. Such qualification doesn't at all make the command useless. I've used this for years, to provide a set of font completion candidates: (let ((fonts (make-hash-table :test #'equal)) (fontset-lst (fontset-list))) (setq fontset-lst (delete "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default" fontset-lst)) (dolist (ft (append fontset-lst (x-list-fonts "*")) fonts) (puthash ft t fonts))) Doing better need not be held hostage to a demand for perfection. > Yes, I know: you said it's just an example. But providing an easy > example that cannot be extended to the Real Thing doesn't help us make > any progress of practical value. Whether you're interested in providing a command that sets the font using either a dialog box or keyboard input is irrelevant to this enhancement request. As is also any criticism of the code I presented as an illustration. Nothing about the enhancement request prevents looking for cases where `use-dialog-box' could reasonably be used to provide input to a command by both menu/mouse and keyboard. > > The point is more general than `menu-set-font'. The > > point is that there's no good reason to limit the > > use of `use-dialog-box' to yes-no questions. >=20 > That we already do. Examples? And see above - if "we already do" then please fix the doc string accordingly (in addition to providing some such examples here). ___ FYI - This font-choosing example came from the real world. When presented with the possibility of using keyboard input with completion to match menu items (with their paths through the menu forest), a user pointed out that although it made it possible to choose menu items with the keyboard, once an item such as setting the font is chosen you have to switch to the mouse anyway, to use the dialog box. In general, you shouldn't have to. In general, `use-dialog-box' nil should allow for minibuffer input instead. By "in general", here, I don't mean "always". At least sometimes, and likely often, it should be possible and reasonable to provide for minibuffer input as an alternative to using a dialog box. Whether we decide to do that in any particular case is a different question. The point is that it would be good to extend the use of `use-dialog-box' beyond yes-no questions. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 12:34:57 2022 Received: (at 52877) by debbugs.gnu.org; 17 Jan 2022 17:34:57 +0000 Received: from localhost ([127.0.0.1]:47843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9VuD-0000Sy-H7 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 12:34:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Vu9-0000Se-C4 for 52877@debbugs.gnu.org; Mon, 17 Jan 2022 12:34:56 -0500 Received: from [2001:470:142:3::e] (port=43540 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Vtz-0002pW-Nm; Mon, 17 Jan 2022 12:34:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zgmoDK/tAs7iN4/gcbsPLuXaljxngtCS9AWpIe+MN0U=; b=A4IfPIHy59Wb vOramSk2t95BxUXAanAINxW741wNfsC/0s+J5TDh9KE0CHjG6+2R9CtDzJSX5EFs4JzyHhr6tlOYT L8S5FaUNF7gUzPf25bBlFpzLMVkfltn/DjaGHdx3AsVaKYpUQ5+LjUhHQ0esurbkNbzrqdEmvcQRe joizXxBWrp89gNdEcERSzLrFCCoT5rcA9DVzghS2yMOIOw+kCDdzWOSJ1QjBq6Ru0V2kVSWABA2jL rlKEPSoXjJYLWuqIWc/1Nke9rRiI/RSWwfrR90Yt+wQ38i2n8cXUY0VvfxjDLX84KOpTimG2FHiNi TNZvNJUTIRPBz7rjcKaqWg==; Received: from [87.69.77.57] (port=4142 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Vtz-0008Tm-Qp; Mon, 17 Jan 2022 12:34:44 -0500 Date: Mon, 17 Jan 2022 19:34:33 +0200 Message-Id: <834k62w9jq.fsf@gnu.org> From: Eli Zaretskii To: Drew Adams In-Reply-To: (message from Drew Adams on Mon, 17 Jan 2022 17:18:31 +0000) Subject: Re: bug#52877: [External] : Re: bug#52877: 27.2; Let `use-dialog-box' apply to more than just yes/no questions References: <87r199wc44.fsf@gnus.org> <83bl0cysh1.fsf@gnu.org> <83o84awmu7.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52877 Cc: larsi@gnus.org, 52877@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Drew Adams > CC: "larsi@gnus.org" , > "52877@debbugs.gnu.org" > <52877@debbugs.gnu.org> > Date: Mon, 17 Jan 2022 17:18:31 +0000 > > > We already do that. IMNSHO, it doesn't make sense > > in this particular case. > > "We already do that." Really? Please point to > examples of commands that use `use-dialog-box' > and prompt for input other than yes-no. You can find them yourself by searching the Emacs source tree. > > It is wrong to use (x-list-fonts "*" ...) to produce the collection > > of fonts suitable for Emacs. > > "Wrong", meaning what, exactly? I don't see > how it's wrong in the sense of not being able > to produce a collection of fonts suitable for > Emacs - it can certainly do that. Try looking at the list it returns some day, but look really close (it's a large list). > Perhaps you mean that it won't necessarily > produce a collection that includes _all_ such > fonts? No, I mean many fonts it produces are unusable in Emacs. > Such qualification doesn't at all make the > command useless. I've used this for years, > to provide a set of font completion candidates: So you used it. It only proves that on your systems, with the fonts you have, and with the way you used the results it somehow worked. Or maybe you just happily forgot when it didn't. It doesn't change the facts: that list includes many unsuitable fonts. Please believe me, and please stop arguing. From unknown Wed Jun 18 23:18:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Feb 2022 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator