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: Proposal: add a binding for `imenu' under M-g Date: Thu, 14 Apr 2022 19:47:48 +0000 Message-ID: References: <877d7zh9iz.fsf@athena.silentflame.com> <87fsmfpx7h.fsf@athena.silentflame.com> <83sfqf3anr.fsf@gnu.org> <83k0br356f.fsf@gnu.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="39540"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "spwhitton@spwhitton.name" , "emacs-devel@gnu.org" To: Eli Zaretskii , Filipp Gunbin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 14 21:49:24 2022 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 1nf5T1-000A2c-Is for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 21:49:23 +0200 Original-Received: from localhost ([::1]:41160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nf5T0-0000xz-BN for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 15:49:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf5Rj-0008Dx-EI for emacs-devel@gnu.org; Thu, 14 Apr 2022 15:48:03 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:16186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf5Rf-0005HU-MP; Thu, 14 Apr 2022 15:48:02 -0400 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 23EHqdYv012784; Thu, 14 Apr 2022 19:47:51 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=LzQgNlLGz2DVSdiE2WGmUGJji7uZuIW1KpTp3CI6wBY=; b=Wsk6JHtr2PUEhXAJ2YrkDtv6A58en1xDXJvkckc4ay27r44XbNn1CfqC2rLRJGoXJchs F/l+JTwvYgkDapYCnykv4AllyQQu3CF9sFZgi/7eG48aJ5zmZtvDSyLjvTaAl5nPGUtt nobJISzdnEP5rOaRjXtSlnpeGXI6JcEK/hS76En85nW8V6krrv+gIUuo7DTE2HrKzvAQ ztSdQsiMwL7tLL/PXKxqKKhafYmIt7IoDAv75OmG+MHENIDIiovSFRZ1DR4cPcmo1Nf1 9ibKPIsqzKuij2p6p2y8scEQ2AoNo29OvWlGHbXY7L4xfOah0ipUvo5kY3ByQY3Ti9vr Gg== Original-Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com with ESMTP id 3fb2pu627b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 19:47:51 +0000 Original-Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 23EJldvS011964; Thu, 14 Apr 2022 19:47:50 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fb0k5qx9p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Apr 2022 19:47:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BYd/957+FUthS0fUlll2xTtWvTTq6mFy+b6gG4tF6wv3vj/5mqg+KnW0ZBiIMxpDKWK2ai0qItPr3d4dc0mRG6XrItEMp3FSu1We+xY2w3D4jzkm8GQVPkH97qiHMFe7Ru336XVPPmkiHmjIecd0SD0IooGJoSEbb5WHuH/gQL4+e4qXSWny6eoH0Ac6jqCilfsiAcxFrotxFy6DXV1aucGFtGhjhGhcg3pl3uq/+XhPhK3C4rZoM1AhqOfZN6iegtG3/no7a7eQkdFtMqcybh4/bxRizwmdrrANP4uffzumO0U4tDbG8GnWivDgQIypNRQ95tE3pAHBOeyqrZeyHA== 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=LzQgNlLGz2DVSdiE2WGmUGJji7uZuIW1KpTp3CI6wBY=; b=M22ai8GA36TYaV09C/b48qDYAe7OU8VDcZbPOXJm40hlg6atL8cWe9chqHRRBcHtJ1xORU1Ed9AEaMK/Oy1pZJDatWqbXX48tWrCx4httgIXD8FibvgaN3LneQFnnu8pK6+3yaWbAUNWToU5NHfidzZf9/4a3fnq6A8nKgaSh5gDGuPZ9se9zwUtYP2tumLp82U3+807efE5EAU0C7VSxO8IzEXwG387JnQCHxd9lgEbADnfBe0hoIg192GbEbHLsjWLLtbADDYll/YkaPSvEKjcaFFt+veWVChf0gwv5gYS7RpLj5wtOIo2+6ULet2F1QMdQ6gR/EUWiIxXUyl+rw== 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=LzQgNlLGz2DVSdiE2WGmUGJji7uZuIW1KpTp3CI6wBY=; b=OnN35rpAZ6iBckItON7vByjwF2LVoKt+FaI6A9ldTEG1gplnldO5X3SlKNoG5EsznqoPevcqNmrgMyEJyiKB5uZPqrXfYpwZgzZKGQ4pgLqeSGx50tNUM+hydGj4BG4iJrRZ/ovDeYw1fO1vurk3YRjMN0AE3/Zsi9F1eoD1XYM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by DM6PR10MB3177.namprd10.prod.outlook.com (2603:10b6:5:1a4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Thu, 14 Apr 2022 19:47:48 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123%7]) with mapi id 15.20.5144.030; Thu, 14 Apr 2022 19:47:48 +0000 Thread-Topic: [External] : Re: Proposal: add a binding for `imenu' under M-g Thread-Index: AQHYUCs7TXUUOpLw8ESpiDC58MxBiazvy6KA In-Reply-To: <83k0br356f.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 74bc323f-165e-484f-859f-08da1e4fa755 x-ms-traffictypediagnostic: DM6PR10MB3177:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: R0TxruvaDWgYlKYV5HpYigp/I6IWBLyOtycjTKCPIbPI6R5mMTseFFaIZroyuRHZ6bdp3m1iCbZDo843Z1eJ1P7Dia6JBj0U5H2Ttowm2OwehIwU0fzLUAoyyoZKNYRYdUCzqFfKFBqvWRNUcuy5sE3W4jjuTPwXQ55cdjO0CrE6bV68H74dMvV7H8ufj/qMyO8Nl/rEMa1okhncrFduHYgKcOyRbGaHsO2MnemjX3B5HnHRbjakduGsz/H4OV1fL5WVKa12v9WohhdF4E8rdlGRaD5qXn0P6EGw++OSvyfFO/1eX/5qoODqby43B21X0KGwIkeIw/LCfowtNup1s10PujPUMNe4EJX3gY8H8WoN8jeS8jtS9lMTvM7HTXtE4l6YtUqIjmaMKa3t2i9pt3k11hRK8WUZi+qcTpzH0u1Gw42aoIbqdGiJ2qPlQ7SLwRpbqRdpb6j6acOi1XYfzhiZkCziVcpVysDfVHzfPjV1e0h99nUjG0ykl7AK+dWhxqrO/bvQLTChg9MVYN1inKh9KTajsbiGCE6WuXdzLcdw5Yig9BYqFyHCvCVav+paI1eskI3EJ4vM9qRFYtq3EhHzoGJrw9szPkb+j47IPUm5AUcr4GgLvCK1Z6iKSazKozzATcLmxo6opxz3/j02OqzxXei8xJt2WdogH9VzZ0k/yWqfCVKhHZF1zJrfLM42ZdyHnBeFGg544PgS5Znsg8NOHWJ3oPO43kLi7DjP3w8= 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:(13230001)(366004)(38070700005)(38100700002)(2906002)(33656002)(83380400001)(66476007)(76116006)(66946007)(66556008)(186003)(71200400001)(26005)(55016003)(7696005)(6506007)(9686003)(66446008)(64756008)(86362001)(52536014)(5660300002)(8676002)(44832011)(4326008)(122000001)(508600001)(54906003)(316002)(110136005)(8936002)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qREmqmL5d/sswXcMRopP6STxcJ1uvW847OuP7IIglS/tZTHOIs8sp2SpPajs?= =?us-ascii?Q?hHCeQ7YQBISwmGP+H2wANusa/UyIAFxj7+AjZJHGhQnUjVWFRIyLvf8fQaB2?= =?us-ascii?Q?7UPexaCxK8rkJYQJWwapNN+okMR+es37b1E0ZcM3JCL0GqjSriPfGU3DKMOC?= =?us-ascii?Q?i12EWppfoNSG6wxdZDDnaHeR4de2lJSLgpuJLFH4OqU2td0vUtZ2cbS04ReK?= =?us-ascii?Q?qxfHp6YJ9n/0kKQG9vcZmVjU4mHS7rE7cdsp8sjrt9sYeUPIuLrUZKPJD9fu?= =?us-ascii?Q?MbGqlbwMs8t+03TxRbxdpid+CTIDpADFmu+68xXgQ+p5zaJBPvoJwm0zyqXp?= =?us-ascii?Q?z967+REtAUUG8HGHkT+HtlpPfzvRMkmnbTGCrJjIF4LQZpCQh8LIqV6s1hSw?= =?us-ascii?Q?+55zrnGYNyrUU5omIuFyFbP0Vu2/8lsHqAE4tdb99vTH1JkaNT5ZBDvFrF9D?= =?us-ascii?Q?2A5GgD2dxkiqs8Nnc7X6RD88akDoNaaWmwi2BSbJzFZuv8C4yZm1ED39EBsr?= =?us-ascii?Q?aaKq6H2PA4V4qcbvDWe7TGugrZ3z4igmVDupTCuXzUzHTNdwJi4HncHtOnM4?= =?us-ascii?Q?dGF6gyKIMMGM5ZLbkM4tbPezNaXGkSoA7Srk+O4DhzC4gRHfEFS6dD9Uz5S8?= =?us-ascii?Q?ds 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: 74bc323f-165e-484f-859f-08da1e4fa755 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2022 19:47:48.4526 (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: z6m/AVUl/5P8EeBzG8nY7RH7Y2ut8aXi5k3DRMxwOjfoCDA4pX8kFGz0Af0bG8yenUuG60QdI07+gu1dkisITg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB3177 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-04-14_05:2022-04-14, 2022-04-14 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204140103 X-Proofpoint-ORIG-GUID: R82n9gWKj79jXE5ngQaQn1HJlsV9pqYt X-Proofpoint-GUID: R82n9gWKj79jXE5ngQaQn1HJlsV9pqYt Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:288414 Archived-At: > > >> From: Sean Whitton > > >> Date: Thu, 14 Apr 2022 07:16:02 -0700 > > >> > > >> > `imenu' doesn't have a binding. How about binding it to 'M-g i'? > > > > > > I wonder why M-g. That prefix is for commands the "go" somewhere, > > > and this one doesn't. > > > > But the purpose of imenu is "go to the index entry", it just offers > > completion before that. >=20 > We have a lot of commands that display a menu of possibilities, and ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > I'm not sure it is valid to consider them all as "go to somewhere". ^^^^^^^^^^^^^^^^^^^^^^^^^^ Did someone say that all commands that display a menu should be considered as providing menu items that go somewhere? (FWIW, I don't really care whether we add an `imenu' key binding on `M-g'. I'm just pointing to the jump in logic of that statement. It went "somewhere"...) Imenu menu items do generally "go somewhere", IMO. Similarly, most bookmark "jump" commands generally "go somewhere". So do commands such as `find-file', `pop-to-buffer', and `other-window'. Whether this or that command (accessed from a menu or not) deserves access from prefix key `M-g' is a question to be answered case by case. Command `imenu' is a reasonable contender, I think. Maybe that's what you really meant? Lots of commands go somewhere. That general characterization likely can't be the sole argument to give a command a binding on `M-g'. Otherwise we'd have a pretty large set of `M-g' bindings. If that's your point then I agree with it. Maybe any "go somewhere" command could be considered for `M-g' candidacy. But I don't think consideration of such candidacy applies to all commands that show a menu. Going somewhere is relevant here. Showing a menu, in itself, is not.