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: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Date: Wed, 17 Feb 2021 18:11:28 +0000 Message-ID: References: <87tuqbft57.fsf@telefonica.net> <87lfbnfr8x.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38058"; mail-complaints-to="usenet@ciao.gmane.io" To: =?iso-8859-1?Q?=D3scar_Fuentes?= , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 17 19:12:50 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 1lCRJg-0009kz-Ob for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 19:12:48 +0100 Original-Received: from localhost ([::1]:37248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCRJf-0002EA-QK for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Feb 2021 13:12:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCRIe-0001ld-Uu for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:11:44 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:50796) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCRIc-0003T0-Fi for emacs-devel@gnu.org; Wed, 17 Feb 2021 13:11:44 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 11HI4LH2196579; Wed, 17 Feb 2021 18:11:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=Uz8lsbMmADJLAvwgSW4/TmRwB5hs2c6HbpydVICJ4yk=; b=f9ye6HXWXtk8xp8geKjLtTtYOeBKYj3Yq+bNNGaORiimn33B0gw2AVv7FUreRIuEdyBd W0sNPQx9eDLnqvZg4D+/rXQbufFEjszYUdxSE1Noxtbz18TWTI8p76RUNBzYiIyNQ6jV Jmhin22HsQGa5Qxqt7y5hGXiioLpym82HXNoUyVjZ8t+9sL7Cqr+qNpNYaFxK917xBIz q4hQp9NRgzbU1c2hnCYT0sjIhFlVDLQCLVGQNfl2TRBaThuJeDUVBcPRXUzmkBWATlhC O1VgDBLMue37x50NbK39v/GGJbjkSIc1W+5ImI0qHFBbeEUUTTNcqG5RByW7BaX/9ggR KQ== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 36p49bbh4a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Feb 2021 18:11:39 +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 11HIBatB071839; Wed, 17 Feb 2021 18:11:38 GMT Original-Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam08lp2043.outbound.protection.outlook.com [104.47.73.43]) by userp3020.oracle.com with ESMTP id 36prht6jrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Feb 2021 18:11:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fe1ZDDTUQn31YHQpfT1z6r8tCT5QaOzdRejWvEWIK0Quf9N7tFyTojNEiozbN+tSd6xsAtnYzRIP/IGGSOl5n7QgbKBDj6TY30Y913UGUvi+sMf1GuToRgiHRAIj/2//nUI7day0I/zA5QV1eSvy9kYpAIhYeIFEQHxITpOHda85MfGk3OB0LZLB5fpP1OQdYU7xGVfpqsjc944VLixObSqwmC40z9r4R8Slgh+WyMvN7d26tbwM6NokIk9SPFFBTDRl4ATXsoxK3clr4znDiwD6CO+c+gUvw4XX7MarYs5Hne9NEmqqjiTJ3xIjfNpMXkihcNJ+iHfP6Yq7kfRRaA== 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=Uz8lsbMmADJLAvwgSW4/TmRwB5hs2c6HbpydVICJ4yk=; b=nuApCGdxjT3+L6I/HxBpSlaZ6fo8W2ca/RYP54RBhk4UWycFdOX0sbh4htWepikHLJlgl7llrE2u2ui/JKmGQudIKdjYJVon9gMSEmzd1+7K7SftN3mrurWW6iCZhQoQabnnDpG7sP3dhaZ+V5Pe9u1NtV8Ho/NLDLopU41kyhWyIqtQAL8gVMOv6cA+gmPmnPyoq73ujAeprG9xCO+ICW3W9PGnnw0aqzF2kEdYXlwZZfKVdtE65+QYARUDvXGjCkde4q60/2quOyMkFpXUlG/W+MOVIsmC6a/ikedZQHCO6rqP8ZK19ac5XE4nZUube3RTTp0yqIKVwQN1a9e6qQ== 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=Uz8lsbMmADJLAvwgSW4/TmRwB5hs2c6HbpydVICJ4yk=; b=jbrKMJMJAahJwF9tjw6IKsdhkZltRWfktgPQRj+EDtcltxmPmJSZJiCOdxpT42PU1cvVm1+jfffnc8p0CxCST2T5x8FFpiJQVCPGf8gJm8WhS+J0jqK4I7wxq2kR9daFtMUem2EFzIhKIkU+M4tnTS0pnEXg+I/HoikmLbOUrvg= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Wed, 17 Feb 2021 18:11:28 +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 18:11:28 +0000 Thread-Topic: [External] : Re: command mode-specificity [was: scratch/command 064f146 1/2: Change...] Thread-Index: AQHXBMeXuToDzzNYh0OsbnhaUv5x0apco3Qw In-Reply-To: <87lfbnfr8x.fsf@telefonica.net> Accept-Language: en-US Content-Language: en-US authentication-results: wanadoo.es; dkim=none (message not signed) header.d=none;wanadoo.es; 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: 27690717-aa16-4a68-fc2a-08d8d36f723a x-ms-traffictypediagnostic: SA2PR10MB4474: 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: DcdPq3XMMJ/gdFvub6blLiEgwVY7Su73CeVPOr5Bwe0kJUcEcSIRT8pCVA6pU3lUdwHFlygZ1UdvvN3YZ7S3Hf7NCOBWUBZSJ7QynN49s+1Fi8ZdfcUugwI+l9QxyVYnOdsCXzM4HTAqFF5X5rLSEQjQFSGCN2iDNsKg0qu6WoGkuAg3FoqnZpq/Nq1p3qCDxXZIy7tMPyragACUpclcaPZ34o2yD9g6HKZ7bXccBpE0CUqsX8Wb7aOOta5Hl2/xFVOYyFB/JQilMQnZJbxqfSvc+06wFDnL3s7lt8p6XatvVCBEnO99DMc3lEd9sjLJwX+J4C8e0JpyiT4QPRP1A68BOFyhGxTdTn4PmvvAV/DeesS3rG5jsLgPHGMBXzD7RefqCTOs9aotjn7s+y1ir2Eg3ARQ8Goo5z/8HODY/B/yFy245E5sl97WKmmScwL/U1aFXsecaepYhqIF0HYM8G9zGW8/9Y+ooT5pyfwuPsXK1HtivXRAr9ch5dhM4iNS7iABFiLdIQpRHt9pRw/EsA== 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:(136003)(396003)(366004)(376002)(39860400002)(346002)(44832011)(66556008)(64756008)(55016002)(8936002)(8676002)(478600001)(9686003)(66946007)(76116006)(86362001)(66446008)(316002)(110136005)(66476007)(71200400001)(186003)(83380400001)(7696005)(5660300002)(33656002)(2906002)(26005)(52536014)(6506007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?QKOICZ+DTIchMb4UjbhlV5Xigik3JOgyWVBXOf9BibnW9t43RgwUjBUUZY?= =?iso-8859-1?Q?GzfhpNAmmq1VY8oG2f8tu0gRHBB6JWY2QsyIbEqOud+1MsFyoTBg/qpp1H?= =?iso-8859-1?Q?bHne9fFvrXZdgrEROHyXziNTb9u2bqm8+qIARVI7Wemvn04Ghss01n06PU?= =?iso-8859-1?Q?/vDOdeqBk2lVDiQC8PAM2Z0UAENG8hYVXDWYhRjDyI1yODI0P/KSzuF25u?= =?iso-8859-1?Q?6HSIlnuxfj02cGIzkDFyM8GEQHSA13qvjy0GCQvZA/8vVQfieoJLRqp9zn?= =?iso-8859-1?Q?c6UW3MNbPKu94cPgj+jC0HJl/5KMILr7wYypMEIzgAxxVwfByba4TvZdTG?= =?iso-8859-1?Q?DriTxH8+70VXF4oMDWq05xDrZaY9qSSTeAGFr/dsbzwFwIq22vJooyxc36?= =?iso-8859-1?Q?8aIsxIPKVfhSxplU3o0yGmgvCtXolCs18pqz/aYwEO9vdQNesFYhF1nSaR?= =?iso-8859-1?Q?pjyqmO1YTe1syinKg0Js2F6XvGZ8YLxad4LHppWpZiNpCQfepEfuaUjHuh?= =?iso-8859-1?Q?aWOz07udzpXMjVnUhA7BA67xZtJDho1qlQLGBa+axf9K1fd21c4eViAnme?= =?iso-8859-1?Q?zr47lAp5vq2HSNG6jYSVQRsZvrQYs/+PfDiRFSPTRQtURQ3fcEtrmGDo0r?= =?iso-8859-1?Q?cN 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: 27690717-aa16-4a68-fc2a-08d8d36f723a X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2021 18:11:28.3138 (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: U+7rNpYcyYt1Kv1ZFvzCTtO1Kg8NGajIFq9clcOuOLnk8coghDzVnuVwxstR70CQfTzyA4DbQkszMsd3I6UOgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4474 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-2102170133 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9898 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 phishscore=0 clxscore=1015 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102170132 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.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:265035 Archived-At: > > How about just "most commands are not mode-specific"? >=20 > That's not my experience. Stats, please. > Whenever I use M-x (and I do it a lot, since on my setup it is often > more ergonomic and faster than remembering and pressing shortcuts) I > see on the list of completions lots of commands that have nothing to do > with what I'm doing. That provides zero info about whether most commands are mode-specific. Sorry. What that indicates is that there are lots of commands (maybe even most commands) that are not relevant to what you're currently doing. That's a completely different ball game. `M-x TAB' _of course_ shows zillions of commands that most likely have nothing to do with what you're currently doing. And? Likewise `M-x f TAB', but less so most likely. > This forces me to write more characters on the > prompt to further refine the candidates Well, yes. If you're in mode `foo', it's likely that many commands relevant for that mode start with `foo', in which case `M-x foo TAB' might get you on your way. But yes, Emacs doesn't currently guess "what you're doing", i.e., just what you have in mind. > and remember to not use certain inputs which > bring in lots of irrelevant candidates just > because the naming scheme they follow. > Even worse: for any given input to M-x, the > list of completions greatly vary depending > on what I previously did on the Emacs session > (as features are loaded and inject their commands.) Yes, and we can look for features that might help with such problems. And if you find one such, I encourage you to write it up in a library and put it out there for people to try. Time will tell how useful the feature is, and you'll likely even get useful feedback to improve it. All of that is positive. Emacs can always use improvement, including in command selection. You don't have to convince anyone here that `M-x' is a fairly blunt hammer. The convincing that's called for is to support a given proposed solution/improvement. You argue that filtering out some set of commands at the outset is an improvement. Counter arguments were provide for not doing such filtering - with that particular filter, _by default_. Counter arguments mentioned interactive ways to filter, or to sort instead of filtering. I don't think anyone is against letting you filter in the way you think best. It's about what behavior Emacs `M-x' should have, by default, no?