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.devel Subject: RE: [External] : Re: Smarter M-x that filters on major-mode Date: Sun, 14 Feb 2021 02:40:38 +0000 Message-ID: References: <8ed9b43502ae1480e06b@heytings.org> <83r1lohqoc.fsf@gnu.org> <87wnvfenry.fsf@gnus.org> <87blcrdlqf.fsf@gnus.org> <87v9aydg3f.fsf@gnus.org> <83y2fuheph.fsf@gnu.org> <87im6yd4sz.fsf@gnus.org> <8735y2y44f.fsf@gnus.org> <87mtwajua4.fsf@telefonica.net> <87eehmwfeg.fsf@gnus.org> <87blcqjq45.fsf@telefonica.net> <875z2ywbvm.fsf@gnus.org> <87pn16mehu.fsf@gnus.jao.io> <87o8gpvdfd.fsf@gnus.org> <87a6s9mf87.fsf@gnus.jao.io> <87o8goryuj.fsf@gnus.org> 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="29404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jao , "emacs-devel@gnu.org" To: Lars Ingebrigtsen , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 14 03:41:45 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lB7M0-0007Zk-PE for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Feb 2021 03:41:44 +0100 Original-Received: from localhost ([::1]:54412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lB7Lz-0000h8-QZ for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Feb 2021 21:41:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB7L5-0000EG-2A for emacs-devel@gnu.org; Sat, 13 Feb 2021 21:40:47 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:57386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lB7L2-0003YG-Iz; Sat, 13 Feb 2021 21:40:46 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11E2ef0p041023; Sun, 14 Feb 2021 02:40:41 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-2020-01-29; bh=sMRZp04k98Y2hCFo5YklcTBJkuZyPTeI8pROLZIg7aU=; b=lOn/l/nxFZ0FY7ZXB2RZoIOWfqOLV8/TsuSxc3Woc6GWSbOxFdrkJzJ7CEc6JirDV166 dtAP3dTl5cTV2K13bsCqkVN6b72r82u/+BX1QEb7F3qlWw6Xb3RKwNlWyiOk+gx2Ypsh ZmDOeQHSWipSc6Dg6dh4bzkLmpdVKIdnievx2CAv1V+X6OkK68rFMLWcrRdQdox1Yt6T qOj39eeWGo1n7BFwJC8UNs2PYsERk6337Pv8Xo8D4A+D5qvUrymccXbVijxXto4W8NM0 Eh+zZxVaSpCVD+nAWWnWJnXHzEkzx2rXTlBOQJsckGVoRF2I2+xxXoH7+1YkTD1TbJR9 EQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 36pd9a0rhc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Feb 2021 02:40:40 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11E2e7pM165592; Sun, 14 Feb 2021 02:40:40 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by aserp3030.oracle.com with ESMTP id 36prbjtkwc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 14 Feb 2021 02:40:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S5aiRGFLtqslcdK/HfTgn5iEblzYAWZJgYG+6VL7r8KN/Arn7zV+wZQj6yRc+4LFERATcME9FQ1SOG4W0dxtB2qElfbnt2zpZ/PoUX3W+qfdjOT+UPcc5rwEUOWHQEunxnlBsrEXX5772Kn9oujqffKIDvKPIPyVIrC287tvsrzWqovpLtqLqn/74BxIQ0KKTa13uM3lhonvOdueg1vTmQOlGlQVfCC7utqKoK9bULvi2dyL8vQa4Eh+DUepNdvfpsGAbm5GQFnCYHTl8OOYzFBpa8X5+fVNbgBKhivd00WUTJw7+HXMzU9wKXuL9o/ieKB6xutew1KMVvfzxUz0ow== 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-SenderADCheck; bh=sMRZp04k98Y2hCFo5YklcTBJkuZyPTeI8pROLZIg7aU=; b=iJHk69GKakuBBjMLKTfIq6SGFNzoJ/5Jfzcwdf2AALES6cZfJn4n1xp5boUUhkkdQApPwOzSXlP/bZOxcRAg0e3G9GjXs94gsN8YQvoPLTg+chBW9cw9wNYLi4miBOtG75hxDJgpan4UgtZeVsf+4KmWRd+B5na5An+bgmBFAz9kFu0SNyHy/TRKK2Pm4FKRTUMx2+4lwAHftmQcpr67ak1+MHG2Obkmuwr/d/uDdVxMNX0sQtG60AoO4Dw0A6UKo+ogRNhxcJ3wSQ8RQKLGlrfCYGeR4ryhNkoGyR03KlUoGUyCcBvGJXZeOZhiFbPJz9nW4RuvC045FdW1Z8HSEg== 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=sMRZp04k98Y2hCFo5YklcTBJkuZyPTeI8pROLZIg7aU=; b=tM1OVlyvq9KieIJ5ltE0xrztIm12xIIge94YnWtbmDN1s01OsEPOEguQkbBqt5erYzknLDPjfXsNES9b1GdjNcl8ojEe2T7uWv9X5ANlSCvujiOyQ413XJQ17BTPUwtC324fd/QIbLxDgOWf06y4DADxd27Xuq7D/bfvA3XuDPg= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2959.namprd10.prod.outlook.com (2603:10b6:805:d2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.38; Sun, 14 Feb 2021 02:40:38 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3846.038; Sun, 14 Feb 2021 02:40:38 +0000 Thread-Topic: [External] : Re: Smarter M-x that filters on major-mode Thread-Index: AQHXAftykJfURVZXl0+AvDT0oeVndKpW7r0Q In-Reply-To: <87o8goryuj.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 850fb7f0-141f-446d-fa16-08d8d091e9bf x-ms-traffictypediagnostic: SN6PR10MB2959: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NuZQCtsicrZIqd0qPhnatQwc3VOF8Xcji94IY+Id4UZ0dKOLzSbdxoo+MTkl+qqcbC3ny7Fb1rEn+jKaC9PmQ6oGlPvgq1auUH/qSenBmK8NkG0DkavVuRHoG9YxsTrOPjjmMgmh2yWq6AcW5wLisdSaw8gE/57Br38NgR0NU4ZXjoUvPFY7uUKT2zqwCvLB5FXlUixfVj2ZWRxwjVL5XZPNAvkW78kZv/Lq32B6/Wyp6HR+606Gd9Zn2LGvzamD6bpnJ3lTNX6pOPSw/YvO4P05sUeZiVn8dE4UKzGDme2XS13e35nNnt2eINWrnvbrSqXlqnPdY4XeS71Uo+ce4dvHD9wg28EZOpvkuKPaMiKcMkXXDoA1/Q5IMrCoSvZO5C2QRuJN6wE+67GM/hH/l9dIR4oei/YX5dt+vZPKtg0RUyVQh8wV5MwuS+TUlamiBd0CZMC1WN0CroAjgg60rk7wb3/baBHBrhcKvK/GA3T0Dy2S6aisCRj/Ntfjk3cnd9MAiP8v2tFgJqe3svPkZA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(346002)(366004)(39860400002)(136003)(376002)(71200400001)(4744005)(83380400001)(44832011)(54906003)(33656002)(9686003)(55016002)(4326008)(86362001)(478600001)(8936002)(8676002)(7696005)(26005)(76116006)(316002)(5660300002)(66946007)(6506007)(52536014)(64756008)(66556008)(66446008)(66476007)(186003)(2906002)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?aB12KTqvDInebqgIp+XcFAENEG13yGg8zDLsv8lyEdaUTOxsonZNv4tOcmbq?= =?us-ascii?Q?eepKlv8xvxgxsjVTjKtpk+loMKHbZWjuUb2NiUUNOmlchLP1ZLzQ9AqgejB/?= =?us-ascii?Q?V+XLjYDf03znnnZFEffzoFxeFy1YOvOo9uaHgJRLwHXYs5LS8YJ7kZy5Eawz?= =?us-ascii?Q?RalXUKoS7cWNo28eF682NhQLL+XzwzbFQBGD0odFRfSnDzvLm6ZO7f49kgRX?= =?us-ascii?Q?YNOTe51mwCSvREVxqYNvkYDPgNz7pWDdrbSRF8E+zjYX9wi5XTer1WEl3THk?= =?us-ascii?Q?xK4x3Iatj6/mkkYU8jc0ANx6nJMytGuQDYN07f4cMy/5PUB1kZz3UWZf5+ry?= =?us-ascii?Q?JFokjVAljTg8JJylYJt8MMI385+NmlS4w8sQf7Z9A5yr+JaLypiYjmJ4OGRE?= =?us-ascii?Q?DjU5AoqFjqHv3DHgrQQL3GHlogLLGRc5J+FiODFk3KL6wMy5bzKdCgiTVU8z?= =?us-ascii?Q?z+1o1wEohr2h0TFO/6p+u79LXDeq/LPX6lAvGkHR0/h7SqQEzRsUkTgj9K61?= =?us-ascii?Q?3Mvm4vbF9xfVWxjZ3ke2iwOEf0WSjT0hCGbeJmN3rOCxycSGaAm2XheXcilq?= =?us-ascii?Q?gNIxiRTMSwIfXj0SZCeJJHzv9YznvcHuMiVc8vKkwW4BA1aB8jWC5qCjBmZP?= =?us-ascii?Q?q53S x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 850fb7f0-141f-446d-fa16-08d8d091e9bf X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2021 02:40:38.2437 (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: gE9DEHPWkv0fJXmwTaxZVZHczCjixL+xNceiBX6DofxM87O8czomNDaZ/dOhgPp1+wFqvp2VK2sVXmYnZ8zPdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2959 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=989 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102140019 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9894 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102140019 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:264677 Archived-At: > > There seems to be an assumption here that the defining info > > to hiding a command (or not) is the current major mode. > > > > While it's an important case, I think it'd be a mistake to design > > a feature that can only use such tests. There are many other useful > > conditions that one might like to test, such as the activation of the > > region, the existence of some other buffer, etc... My thoughts too. > Commands bound to modes cover 97% of the cases, > my stats dept. informs me, Really? Could you please post what's behind those stats? And maybe say just what you mean by "commands bound to modes". Do you mean commands whose only reasonable use is only within a given mode? How did you measure this?