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: Context menus and mouse-3 Date: Wed, 21 Jul 2021 17:26:26 +0000 Message-ID: References: <87y2acv2tw.fsf@mail.linkov.net> <83zguragqj.fsf@gnu.org> <87pmvnuyug.fsf@mail.linkov.net> <83zguq8n5o.fsf@gnu.org> <87im1dydhx.fsf@mail.linkov.net> <874kcw28zk.fsf@mail.linkov.net> <83lf686qqv.fsf@gnu.org> <87lf67fcvu.fsf@mail.linkov.net> <83lf6669dg.fsf@gnu.org> <87o8b2nkys.fsf@mail.linkov.net> <87zguii9gy.fsf@mail.linkov.net> <87tukoso8f.fsf@mail.linkov.net> <878s20shjw.fsf@mail.linkov.net> <861r7si8l9.fsf@misasa.okayama-u.ac.jp> 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="25185"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "spacibba@aol.com" , "rms@gnu.org" , "philipk@posteo.net" , "emacs-devel@gnu.org" , "tkk@misasa.okayama-u.ac.jp" , "arthur.miller@live.com" , "dgutov@yandex.ru" , "ghe@sdf.org" , Eli Zaretskii , Juri Linkov To: Stefan Monnier , Tak Kunihiro Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 21 19:27:46 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 1m6G0Y-0006K6-4u for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 19:27:46 +0200 Original-Received: from localhost ([::1]:57264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6G0V-0006xp-TM for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 13:27:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6FzR-00064y-Ow for emacs-devel@gnu.org; Wed, 21 Jul 2021 13:26:37 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:16720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6FzN-0002bo-Sm; Wed, 21 Jul 2021 13:26:36 -0400 Original-Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16LHH5PF020212; Wed, 21 Jul 2021 17:26:29 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=lXKAaMvmaw/68vDwvgN3YP+BaovJdWd2c6SD8xCub5U=; b=cri/8hyIGwQ65V4XCipXxvWrCUEfymw9VKbK6oPbmEbKH+iX7Kn5ofZ/5kHDgd3m1ufb 0T4ulHqsezovXTQ/TWbRCdpA7uczwY4ObwH3QnYpGqv6+9MoL4q0Li5u1dZKpHaMCL9v V6eNXG2hdSSeGqu/zKYqQ7CHV34EOHbg9yw1k/YZwtT3kW66KID8j+16E9kyaU4Zs4CX XKovbl85DP4/Wjjpin4yik0E1bmRcjJZrn0eArBYkdlehPfPafEzSZKA2EKKOTKhnWmS s9Uo75t+gFgKanhmNOj+mS+dm70LIOyLPpLjBWuXGXH2QlQr3d51qKuRp70xrYvVDCTV nQ== 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=lXKAaMvmaw/68vDwvgN3YP+BaovJdWd2c6SD8xCub5U=; b=d5RDpX9RZE9pqnJYNUkK0T/7A+JDLyi9R4bk7k8EIr0JoZ+at98wv3CVD2x7qFmdcisj 7A+dJBN3YIEZT3JUDhQMzrj6XGLx7tm6D6tIN5uPZsjSmBCLfRlaTtcpyaoVUbYiZ13d M6AD+rMmYVyzeuegWOk5E3Z2eI8froVVQgSMA9VBSF5H/r1JXWfEKUIr5UKraPhaVv+K 2PnKgE4efUhvTiFq82vtP2SjPtTnTIp+FfmxVbgjwJtgHBwdEZciTMrVxa75swQVWijR ZrwR8w28ly7yfvMx7OiwCrseu2Lhag2kfEvI9Z9ueX0SHWHueBYZExeCxYxAeWSFIO+P 9A== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 39xc6bsn8g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Jul 2021 17:26:29 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 16LHLKun094291; Wed, 21 Jul 2021 17:26:28 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2175.outbound.protection.outlook.com [104.47.58.175]) by aserp3020.oracle.com with ESMTP id 39uq19kwfc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Jul 2021 17:26:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ViiKfj4QpHDoeWzMVgonuugWEsUjQXyPCZRzDb8aQ6grC/defzeSjM4MOveuDroj+0xOwIdO/Q7SRoaEE1xYvuwvyNMnDJKqE5SN0tyiqFqs/PaNr/cavBS4OBOWnZ3FhtGLe2/RI6KyGT1QKevYzyRfninJNXtFRt98j7vQ2sfmUR5iHmp+dfnOku35qEfSNH8hPLNyNLBeSu1nrRUhgJjG8y82+FcUVNeDBW29RGba03TdVUi6GTWltctpj+GqwKb5dSZSC3Ucl7unUq9oNYX40ovvy5jEo7eooRRFXu5vgvPk3d6TSPKZr2GcvoAeeDVv7eQ8PsBYJKbJqZcodg== 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=lXKAaMvmaw/68vDwvgN3YP+BaovJdWd2c6SD8xCub5U=; b=IfqyvhZxkV0/bF6F7ZkQ2udT0YacCr8SJkSpHl+lGttjFNenKyfoFteILdFaHrCOa0DWyz0xdA16rXfN++r+KaAIzJsDPKyQ8eMygGcI74kGTZM/B9hYkV1DspF2YLelbpNDePJVmQAy53zjLdQCCt6jtFgfMFI4Dy5nmZqjBuWJ2jZsm9XmfMPFy7djoBOMzjIjGW9CWHBymbnh3rD84eULLTqw6SVWP7VoNOyS+WRoFRemj3cvAZnhl9IS81W2BXCeJqj8ojLHWMr4ZcOZ5Z+jN6vCjyy+UNR/1sySr1bnh565Hs4l+/cCL0GWXWHQmprusEWE9Vga9RZSbuS9Hw== 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=lXKAaMvmaw/68vDwvgN3YP+BaovJdWd2c6SD8xCub5U=; b=XE/4ncNsmm/2LOPznpYqbMTRqDqaQhStzxunhC9Nb70eSJJYHZV9cotb/hb1/5hXsGHiUXT80VU8EQoDoWhpe6b6tpPlzhHgv0qAr8lCudlDG8mToltHj8yplLlNVB4Hj3qYGNDyAVv5bWWElr2XZ0S2S2SCMx4jbYLnZlc6lxo= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3607.namprd10.prod.outlook.com (2603:10b6:a03:121::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21; Wed, 21 Jul 2021 17:26:27 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::1d3c:d31b:8add:1958%5]) with mapi id 15.20.4331.034; Wed, 21 Jul 2021 17:26:26 +0000 Thread-Topic: [External] : Re: Context menus and mouse-3 Thread-Index: AQHXfi5GKpKuQyA9zECmZFKbGxugpKtNrZ4g In-Reply-To: Accept-Language: en-US Content-Language: en-US authentication-results: iro.umontreal.ca; dkim=none (message not signed) header.d=none;iro.umontreal.ca; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c6dc4e51-4a0a-4be2-0f4e-08d94c6caba6 x-ms-traffictypediagnostic: BYAPR10MB3607: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gYeKsGYa0qbNszN/3qhBpp2uaFlDRsjSXus0tTew2rbVBbj0xF1ZqTcKzb/KGjKWieOrAe7DCaZ56/UFPIGfQr2kENu7/RPHb2tWSB2SZdo2mWRo/5VW0QlGOrExx2wx1zjZ0noPV69IcGVjqBdaHwUuYBFa68wqtJpAF0yhKK+0tbOxBjwBHIrbOsux4+PMunKx8IWdp5Tb7HpR/BSofBZGILCG3xGNzuPaP12gVVhRW8jV+vMFc8a3G+soi2yQrf2ipYWyRezKfCOmxum0GeDc1g3pRJHrwG9pwm6dwV/sDEOhjyx+2xD89hZWiNF9xJamfIM7JZQODE6jePbGnHVc9aKe6XVzxQcqidlV1Q9DePcBSmlGHKz53f4ygghV4BYkTkyp8zqXtXI35T57ji8xW4J42tajQSWXnAZ+t6TqXt2y8s2K6u0qNfNBytLcai/cvPOEHJqbgu3Ye8q8MErRVNnzTVDgnF2mGNVIwry+ViUBd6bsKT/FpyIn3BfZSudIY1SU3/E7ZDSW5Ap9Fp0geammxLo2hj4gempJ5F9yiWivsBkQQhQzZ4avIjsAHQ2sK73SfvXfs9i9+g52SSl9HHhmr053c1naJXgjB1Bdtyjx6h6oS2sdy/KFZ33VC7kMoT3js4F03bQ8mH57yHNxlmvbZxYCeEP/hgMvSnZaLsOaHoMF7v5R6H/HY/gGZHxtDYLpi4r6KLTpf8jvbA== 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)(136003)(376002)(346002)(39860400002)(396003)(64756008)(66446008)(186003)(54906003)(2906002)(7416002)(52536014)(478600001)(110136005)(296002)(6506007)(4326008)(7696005)(44832011)(4744005)(83380400001)(66556008)(26005)(86362001)(66476007)(76116006)(8676002)(5660300002)(316002)(71200400001)(9686003)(8936002)(33656002)(66946007)(38100700002)(122000001)(55016002)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TA4RQllkHLvYWNWWJdK4UTqzyGTIfyobQaPIVltprJJAu+1XwxgxXhauA2Is?= =?us-ascii?Q?li3iedQCfImvG/CWgLvT63Fm5y2bwnqGUqakMJ/VMypTG3gpFlcN5apkQymU?= =?us-ascii?Q?mHLVNCl0zaH1AACmxtlo8+27UBdY3TeopViq8SrdnLs3jFHxxCG5SwNvI8Gt?= =?us-ascii?Q?7CwPkxZI+fAm2UN7rTIxi9W9RN8pqqXCZ4DmqfxGu21guS5DcsSrivAPKHIR?= =?us-ascii?Q?fW4Kq4jrP5aM/7pbht+fhRqy+U3YApA6yFyqCS5AWKsWB3aAXwsw5SxF3FgL?= =?us-ascii?Q?brXx0oBJ+Cs2Me6C0KDTNPkQHUSOYshgaRDe0cO3wpND3n4WhPtXWAe8s3yd?= =?us-ascii?Q?QcqqsmAFhHURPBEsKQzcm3nXHTTTIbrwMVqrTJqledAXFMeEq/Pq0gE4Dbbi?= =?us-ascii?Q?Uqj1e14FtIvsJXxtpuP81xPg4JHCZngvAWhihimLEaGvB0CM15fDAIW565WA?= =?us-ascii?Q?FU5y9EgVIsSvPjrtoBDeD0e31qymKoF6E2SnvUnolzhY/XPo215Tgsxu6nrE?= =?us-ascii?Q?Y9aZe18ja/2aZEutABYb07xe45Dj41mqgMp4ek+6RFOueW786qIEvXtHFz2Y?= =?us-ascii?Q?pMXkmrsCKxcSgdy44Xprvn6uZJ+LQznqg91fALiNR8/cjSUxwfUv2tKVH03U?= =?us-ascii?Q?pI x-ms-exchange-transport-forked: True 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: c6dc4e51-4a0a-4be2-0f4e-08d94c6caba6 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2021 17:26:26.8546 (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: GCLyVLkdw9D3UD3+dBiX6G6rn1aKR29qf4ZdSRWmQ/rA2BmMVgsbAmgEg4tW9bTHQsC3hdWQWfWVLBeqCbpjuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3607 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10052 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107210102 X-Proofpoint-GUID: SO3yvqxsqTc5oUBJN2pgPH6AM3GotzQX X-Proofpoint-ORIG-GUID: SO3yvqxsqTc5oUBJN2pgPH6AM3GotzQX Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-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_H2=-0.001, SPF_HELO_NONE=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:271425 Archived-At: > > I think most of the time, a thing under mouse cursor matters for > > context-menu instead of mode. >=20 > Obviously, but note that the code that decides what "thing under the > cursor" is relevant, and which menu entries should be shown for it is > most likely going to be provided by a mode. >=20 > So I guess what I'm saying is that I disagree with "instead of". Yes, fair enough. Several things can be relevant to determining what's in a "context" menu - including modes, buffer text under the pointer, and properties (text, overlay) under the pointer. Anything having to do with current Emacs "state", of any kind, can be considered behavioral "context". Of course, context that is closely related to the mouse-pointer state is particularly relevant. It's not just modes. It's not just text under the mouse pointer. It's not "instead of". Right. It's anything you (a user or code) want the menu to be.