From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#52876: 27.2; Call `describe-specified-language-support' without menu-bar Date: Wed, 29 Dec 2021 17:14:22 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26090"; mail-complaints-to="usenet@ciao.gmane.io" To: 52876@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 29 18:22:32 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2cel-0006bR-NT for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 18:22:31 +0100 Original-Received: from localhost ([::1]:45380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2cek-0007AL-5p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Dec 2021 12:22:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2cXb-0005UN-19 for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:15:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2cXW-0007gf-Mu for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2cXW-0008B0-JY for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Dec 2021 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52876 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.164079807331360 (code B ref -1); Wed, 29 Dec 2021 17:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Dec 2021 17:14:33 +0000 Original-Received: from localhost ([127.0.0.1]:50204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2cX2-00089j-RM for submit@debbugs.gnu.org; Wed, 29 Dec 2021 12:14:33 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2cX1-00089X-Bq for submit@debbugs.gnu.org; Wed, 29 Dec 2021 12:14:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2cX1-00050R-5Y for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:14:31 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:25338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2cWy-0007bu-Rn for bug-gnu-emacs@gnu.org; Wed, 29 Dec 2021 12:14:30 -0500 Original-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 1BTGSbc5007573 for ; Wed, 29 Dec 2021 17:14:27 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=xcrhG7On5oQZ6rfvXUglMphhC7S+4kpfPWMblNbvZ7E=; b=qHazjt4C/djSwh/hminmhjnM3k1dcORjr8PSxRx3sGoGM01jxDUAPacaa73hXOVVL4Sk ZnzLcMtsWpilWQzh4f3ZXfT0TFtW/dQggmHtCFA+SAxzsmqJOgvJ8NGvYtJVRsflE69Z y4mJQD9xn9BJApgx4CZC5F2H60sZeJCNeJRXBT/gR21bi7F6FAO+dJKnAzguFtNOpAVZ LAaNkTgAepIol3Ky3rokNdU+KbnLPB4x6cSbZU/eBAohq27oFQVg9O78m87ofr/XbXNh xJFRyy6bJmXQXvVXcsEgwVs5OrS5Ohr7bq8lEHazMUi1qwE7Zq9vq1uoR2/IJYdGgdoB Pw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3d7rwmjqsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 29 Dec 2021 17:14:26 +0000 Original-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 1BTH5IhH177865 for ; Wed, 29 Dec 2021 17:14:26 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by aserp3020.oracle.com with ESMTP id 3d5u44xvns-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 29 Dec 2021 17:14:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BWDuxN7iXbKsB+rA+3XbuoOsICt7ep9i6Cf7WmZbHCAambvaLFhRnh/jLmZMTfWARoMO2sEmceXlmEz+Bs1Cf/sGddIM2pWMapUe52ln8ZfekzX66SEQmOVMg1TAH0FEcnzRYsgJfix6nnFxuZmld3ptYxfJe+1Q5LnFcctbo/2lFaMns+hsoWom/TnjjKl0yhWAuXZR8aZu+MbDLmCI6otxjo38/ULR7QSSr9tm6Zcf/L7TV3Sfa9IE6YSAIiJ+i2KgRudHkOzh4xbN3LBpx0DhweCuTOFphzw11IvzHLLH0MxlV/zmGFXaCcYV5HnoGuep0dxDVCHoexTQrHT2AQ== 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=xcrhG7On5oQZ6rfvXUglMphhC7S+4kpfPWMblNbvZ7E=; b=RqGmmxOxjmWA/qgCVwDgWC4KOhh4DhLEGC5KQJJqp/CftcpmH9CsKP155Xi2JpnOeIVy6U0DKxPKrfHMhXjLdwQBs3AH/gQHJyCzYFNZszx5ASLRI7dn39tPAsABskPYBKA9CK872xqke2ZyPB6Lo2MZeak/tklpkdKhAHCF8CSn5RkDJ2AYBx0HohGY+OQSvywvkD4JeV/aj5doIgU3bCJxZbO+QQYNilk0CElI1QYsxqBc/rWRc+LL3zq6I7HCJC0vDHaDvu9LgcK0SQLY3lFnA3gs6qKcpf/7Hx79bAgxAP3Kw2YO8e6z7BaPWK4JERYzvNsJPnx3EjspEp40kw== 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=xcrhG7On5oQZ6rfvXUglMphhC7S+4kpfPWMblNbvZ7E=; b=KLczQegX0tpEFjkSSCI97UoDQF0L/yeAzaSf/gp869mqwx8cUOQ7dsXhVIPllM2X7SMwvycx5Ju6x5To68D/eSM0jVxx4naHrZQj4+HCZH4XiED+BfsxPmNXuQvWwpzWUzCSsO/39u6Hoqi9f9nxrDZw0L4rFPkwYQ7EE/XCYUg= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3223.namprd10.prod.outlook.com (2603:10b6:a03:157::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4823.21; Wed, 29 Dec 2021 17:14:24 +0000 Original-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:14:22 +0000 Thread-Topic: 27.2; Call `describe-specified-language-support' without menu-bar Thread-Index: Adf81VEtpeemJsNISVKMg9XNhtDGVQ== Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0ea95678-72cd-4f33-fc34-08d9caeea89c x-ms-traffictypediagnostic: BYAPR10MB3223: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: kGPjyDlBraHcAQNX7PGDQ0ZUVTGseJEq+3lh42iTJtFAN9EhczlUj6MCakmMlAWdcCoCiL0KPhVG2fU0MIr9rZeML2TqsuT2j9M3KMHoc3pWtZcnDYktP/5gclceX3cdLYXz12pAimp6NKO7od4HELkokErCvBtO0GTFJUFARB/vBAStDJU5NVAx6OB1uVsr/L9kfKfKIh2z45xW6lCCDhkMR1CD/hO0bSRhgjQGCFOcc8lGMAxb88gzdM/DF3MvswQM6I5UBv675aholGlnme8BsETffoHUalNsrQQr4Fm4FBeEN3HX8SYE+ienXC/rOqaKvqjnPzdZbrbRLIa939cryLPxxlx+g/6RFw5aE+F3H0+yRxEMdY8KT2K4/QoSwaRhFEogmTa588TK4jeMUCUA7XDzRaWfnLFlhBx0qzr6y8dRznhwoXX3l9COmpKcVZJiNv5e3sluOAzCBwietu0ZfGvRWYpQcFXNL60WdIPRYVxmJZHEfgZTyW2PpsH6mVMa+lHL4z2pLk2OOdRKioNXawPM5yes1FLPhXMvQxdMyeTunOoUClVi7yveM27G5oI3uBqpl03Ir5RhlVaEMGE9UDJvcdx+8USSICAFzq1ZIkFH13iGrvjxn4MaXDTeE1bj5uosiAecwCtERQ+Tgd/HurQQiPr59SjcJTe6nHlTlAAUuqxXoy71FXjGRZ1u3jAnExqAVASrztbjpC2dggHL434VfChm9mC2HhMT31g= 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)(55016003)(45080400002)(8676002)(83380400001)(44832011)(9686003)(6916009)(33656002)(186003)(71200400001)(76116006)(2906002)(52536014)(66946007)(86362001)(64756008)(26005)(316002)(122000001)(7696005)(8936002)(6506007)(38100700002)(38070700005)(5660300002)(66476007)(66556008)(66446008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: zw3smjfiCWXnJPBmLh1gJPA2kVP+4r1g9iNFp40+artXkgyNFX0acTZxFTMOZy22gpqCy+zvm3XaRRfLg163dtDF7ermxlliY0EFo/Yrq3Sn5Wazf0DBouul49WSzUlYe+KfCw6bbfJdW2j1Hx+S0AdKB2yY+qMpNEC6GxxQLSL/I+3KZz+7SGtHeYUWLE0swiBftbiL+hDbZ+5pATcLtDqvamPg/OWuLMK7JbsJJ/N3vpRmbj8OVM7IFDwWQNt8+8I1+0aGmFKNjomn6EzXX6fLJPvqYO18qxaEcmu71sVYGaWagweN3hihfg/52JNGs18z31OeyLwtJFu/Zdr1uwA9YsSbMDEGemFRWAAGqefcJVD5mUcz6cQGJqmtLBM4DMvbRpGyVLVQ2Y4V3SllYHg6KB25dp4y2t5ZYuyQXA1gHvUKlhuo4GcVrDMtng6UG8l1MVTCR6wfaZWaw4Wki1R/juA46m8/69Q+4rfZEAPDD4YOvCxHZC3HOYg8/U/YQ4dMjoB8YyLTjQaVfriyyHa/pi0hwug28nIW/0qeanxb7O9xtEg4gDgF4Cg1Y88BiKBOePq0ho+YjCvAJ4VmNdETVAYJ2WZfJn4WrDgpOu/EtLFAMjB5MsTC9chEuxzBgp8W2EjqjuLgRmhiyuEWTPHZJ9f20GiM3gDtbiVcAK82AL2/V+JFql1L2MVUnDUM8o7QEg8GXFMgEHmjtodJoy6u74BO/n9z747t20qhHoG77OhKl/SpAJ1wME ytN0RBMXwcH1WfBDJSZlO0ULWNZGj/lpar34szXhUrCRN9QWmDo1mgd/NXPNVHMEVnqemyqAKh1fNus39Bdd5zj2Bhr0d0Vtjx 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: 0ea95678-72cd-4f33-fc34-08d9caeea89c X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Dec 2021 17:14:22.8117 (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: 5x+UzRDoKZIjTN0BdzF32Oy9bl1SueVJ1V3TdCSj/zWte+oO4c8WJtwrwsYabW2P2exreQrnLn4h+WUHv2B9Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3223 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10212 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112290092 X-Proofpoint-GUID: miEdyHzfQRnXHZRqsoyXo6xLe6AZwpRD X-Proofpoint-ORIG-GUID: miEdyHzfQRnXHZRqsoyXo6xLe6AZwpRD 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223362 Archived-At: `describe-specified-language-support' raises an error if it is called other than by way of the menu-bar. Please remove this restriction - make it possible to invoke it any other way as well. See this comment in mule-cmds.el: ;; This function is intended to be called from the menu: ;; [menu-bar mule describe-language-environment LANGUAGE] ;; and should not run it by `M-x describe-current-input-method-function'. That comment doesn't say _WHY_ there's this design constraint. Why should it be important that it be called only from the menu-bar, and (for example) with no variable or argument that provides whatever context/values are needed for it to do its job? This seems to be an unnecessary, arbitrary limitation. The code seems fragile and inflexible. It should not matter how/where such a command is invoked. ___ A use case: an environment (library lacarte.el is one) that lets you access commands in menu-bar menus using completion (so, direct access anywhere in the menu hierarchy, with substring completion etc.). It should be possible to invoke the command in any way: that way (menu completion), `M-x', or with a keyboard key binding. ___ If there are other commands with similar limitations, please fix them as well. (`setup-specified-language-environment', perhaps?) __ And I wonder if there are related bugs in mule-cmds.el. I see this: ;; FIXME: This "read-key-sequence + call-interactively" loop is trying to ;; reproduce the normal command loop, but this "can't" be done faithfully s= o ;; it necessarily suffers from breakage in corner cases (e.g. it fails to r= un ;; pre/post-command-hook, doesn't properly set this-command/last-command, i= t ;; doesn't handle keyboard macros, ...). Perhaps that's not directly related. But those features of command invoking are important. Making the commands in this library more normal would help all around. 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)