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: master 927b885 1/3: Disable filtering of commands in M-x completion Date: Wed, 17 Feb 2021 22:18:00 +0000 Message-ID: References: <20210217165944.26910.26583@vcs0.savannah.gnu.org> <20210217165946.030D420DFC@vcs0.savannah.gnu.org> <87blcih3ar.fsf@mail.linkov.net> 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="29255"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , "emacs-devel@gnu.org" To: Juri Linkov , Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 23:19:23 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 1lCVAH-0007S6-Bu for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 23:19:21 +0100 Original-Received: from localhost ([::1]:57176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCVAG-00012d-Eq for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 17:19:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCV96-0000GG-Aa for emacs-devel@gnu.org; Wed, 17 Feb 2021 17:18:08 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:56486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCV93-0005pd-TZ; Wed, 17 Feb 2021 17:18:07 -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 11HM9rOq152375; Wed, 17 Feb 2021 22:18:03 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=8Ka+9Aqomv9+Kcs/GSPwBH9SV85wRu+6TOWm0uGBUbc=; b=RkaU0QJQFMm/9Qx8/7D54V9O/icmTk/gvCDFhNkvyqtzfxjKLsQvgkti7YbXmfc9OMlB zBNntkIPBEOLfggQ2HYEQvflYftqUMeAzg+VWx1jZHd+hcnkPLBaa9OwLtpUAZnD8oVe Vgzgca2mtysFnnfvMWiMcUJHE26+kxoLNsyc4hM4e/pvWWJH6mIZLQWmLW3tyxZDDDOB y+5Kkfy30GrjoHsyw3UnahsUP058o+gjxM6VQXF3LwxmffbmZuW/rhLfMpN0lwivlkmS BH6AXeFSR2aJ/rICqsjqo80bMrJMMtYKnofOcbhjxJtxSyElgKeSNCsCfKtcP4vfW5Mi fg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 36pd9abgr2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Feb 2021 22:18:02 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11HM9d2x154922; Wed, 17 Feb 2021 22:18:02 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2104.outbound.protection.outlook.com [104.47.55.104]) by userp3020.oracle.com with ESMTP id 36prhtefd7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Feb 2021 22:18:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AdgMLiR4yxIvMMeRSn8alohcjFqGoH+32c0ZA9SJoMktXut/zmAD6NrjAvu5OZOUgKHxZnbkTXtnmENn3S9XwgZyqDJRQMHCsFTQ5OeRtiQNB0k33yujUIHF7Kzhnq7yqcN1HfRPy9N+jOgE0QjWN1K5gGSg/vXrs+A20DBoecsXCQ/giR14C9OV78A8j2kQPxnFfzvzF+0PXx84F0SuFcmdhq0WFuCyAmf2zQuepy9BaezByMqiHMDahi54plMyrTFYCLfOjms5oIxBtVWpxQAEfd2FFSPNpmAApwp9V+rYxMbMx9u7IIUrUYGVQUrk/sMPN7lQOqeaAtO07yoXXg== 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=8Ka+9Aqomv9+Kcs/GSPwBH9SV85wRu+6TOWm0uGBUbc=; b=nZWUmICK+Xm0zJDIg0gAgOKDE6+95ABKP8ubMzVQsdaz4+Jtm4ib8EVTGOI632vCUEH7hLKS57dnsTWbfAeYhVFhZZpkaC5eBlhQyGIsH09R+GAWTfJLl1QQTCLagOz361jI6t170RmDuqTV1JTr/gHQawrFxsY+wbKJkxLoNdQF7f0C8RKUE5e4uZFqT2pUcOm9uMP1pEYJHHwUs4j5v+UJlMk8UpiaV0l+Zz0q1uPaZMldc443A0jaF+tH1GACJvklw6NWuX4KePyKfZFmMypeoTDYrMupSl5iu0Zo7R2CRLDmU5HUiONk7mnk5n16dkKTdzC3umOos0OBLXQLng== 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=8Ka+9Aqomv9+Kcs/GSPwBH9SV85wRu+6TOWm0uGBUbc=; b=HbrV6eDhwHqFI7cAn1GBbvUOZbZleCMYS0nXPOMLEzpeVr+4R0VW2IHWtBKrJ8vsurky13nTTyTWhynPR761/Qg/crIXdWFUxTCOwdac3MS2VO1pMHG6l8R0cUg5irEorkZ9PTrKtjfXkQad8Qq0J2umHGNSSy1NX0qlRzDu7RM= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4572.namprd10.prod.outlook.com (2603:10b6:806:f9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.29; Wed, 17 Feb 2021 22:18:00 +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.043; Wed, 17 Feb 2021 22:18:00 +0000 Thread-Topic: [External] : Re: master 927b885 1/3: Disable filtering of commands in M-x completion Thread-Index: AQHXBWmGC0LwgHFZY06wZfFXyFj41qpc5wVQ In-Reply-To: <87blcih3ar.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; 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: 0dc97671-1500-4ac9-a3f7-08d8d391e2ef x-ms-traffictypediagnostic: SA2PR10MB4572: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pr3VqhCLDxyDzHKYNyfPfTo3W3FTZ/LPQ4odEA+ERyQNghtGmrURHQjCtBXJaEDLw1hcx4XLnaK1frIj8CIGMagvMobO6np5a3Kc3+umXx3NdtiCS8faiqkTYjaLfnUrAozK4jg5z+ANAdgY48zfjWuOI+WSZgAgeYREC+Ftwn1+EFpaxtwWaL/BGdCBy4ziChYHmFBQSTVFHlFkCcwj1XGkcQDfJicdZXU/PcjTnYhuJsEu78JaIzXn3LrLyjv86sL8lp4GPCg2pWijxbAGF4CBqPbrOc2cKl73wB14CFmDm5hpKRxetJO1c10gNgNSErY2ydy6nROMK40YlsUFNcwFBhHzHO6987gaMJb37b8xpdvvNu26wuHIB4kMgCkF+6bj64O1QouvBd0n5Fxzwlt+FZ2jr9eaKU0KU5DejeuwaRwfUtS094dXLv+AwYaul8FawT7lfwoMgkdTvLR1WdNN6ezdjLNv18frDVfQb0jteCeKlmzjDPiWN3dGflwJQWEyv7yDOy58ZO1szJekMA== 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:(376002)(366004)(346002)(396003)(136003)(39860400002)(86362001)(4326008)(6506007)(55016002)(76116006)(26005)(66556008)(7696005)(66476007)(52536014)(5660300002)(64756008)(110136005)(54906003)(316002)(8936002)(66446008)(9686003)(66946007)(44832011)(33656002)(8676002)(186003)(71200400001)(83380400001)(2906002)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?XYipVV+8exfv1i/zPI7OUkqnFf87LdsUcJqiEb7dwYZEnqYoYNWlMYpzcVq+?= =?us-ascii?Q?jM7ZnVTW4LA9NlTXoQ9CMqN93L8xpiu9pi/CMqEc8ecBQ069Rr9VZqq0WOuU?= =?us-ascii?Q?fE+rXOkFxT5YsmDTylCESXio2/xWOT0JFTmym4EXgKXpiVx8QiZzrAAyZZtG?= =?us-ascii?Q?4h0uYY3c/6IOzsq6/DbaZL9ACH1pqGCNns8b8Uv7L4GHenA5W6fo4iI3MmzG?= =?us-ascii?Q?GNxfXWp4R8AuhEaAbxS+ecqL+mmRI9KYI8gr0BVzeL/mY/P5VW/gyQ2ncvaB?= =?us-ascii?Q?jxHyD580ZWe2I8nJhQE2ZpVWDsMjkRrSc16I9kOGyH21nEKtcBec7CJ6f1rr?= =?us-ascii?Q?ISYQU1U79yZc2nm3gXp2FirFnF9uuShRXifZUcWILu3GWKxbdsAUy0/PtPOA?= =?us-ascii?Q?kaUgBwUq+OlLFLToFrLvTqlgV1bYdn7Vw1hREF5OW8/s5GJ3dE+UM/PaHyYb?= =?us-ascii?Q?XslxfEq7mhUhxxDcx6XqGAJrnFy8MrGUPtUeWjReRIu7IFLtSlT1P0+FGSdL?= =?us-ascii?Q?UYVdr58SiSZnC9gTDvcsCaLvwebzMquQ7LhWCEayVws49HVvU2kPrgeATEhi?= =?us-ascii?Q?uHiEFZ+y6VYR1N+o9KhfaJfnhGbydZWLjjqw6VwEwHtNlWKnxQKCAyyjq6vl?= =?us-ascii?Q?0QS4 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: 0dc97671-1500-4ac9-a3f7-08d8d391e2ef X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2021 22:18:00.3452 (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: koGtoXomNtPgR5O+dWCTnei5F+3zFh73ncsPqaqSpqfP+dViAHDYpGrS3zWra6h1qEn2LNScXR/ALFoPgMNBOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4572 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9898 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102170164 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9898 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-2102170164 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:265096 Archived-At: > Also maybe a key to toggle filtering in the already active completion > (and a key to toggle sorting). For filtering, why toggle instead of cycle, or completion-choose a sort order? I.e., why allow for only two choices? > I'd like also to suggest to filter out > commands having "r" in their interactive specs - they signal > an error when the region is not active, so no need to show them. Are you sure they raise an error? (defun foo (&optional beg end) (interactive "r") (message "FOO")) I also think it's misleading to base filtering on an `interactive' form that uses a string. That's inherently fragile/limiting. It won't apply to a form that evaluates a sexp to provide the args. The resulting incoherence will confuse users. > Also filter out commands with "*" in read-only buffers. Same problem. Relying on a string arg to `interactive' is not a great idea, I think. > `describe-command' is a very good idea for searching > and discovering commands. I mentioned that I defined that long ago. But I'll also mention that `describe-function' with a prefix arg already gives you that behavior. Oops! Nope, that too is something I defined long ago in `help-fns+.el'. Similarly, I defined `describe-option', and a prefix arg to (my definition of) `describe-variable' limits choices to user options (like `describe-option').