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 05:07:29 +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="14977"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "philipk@posteo.net" , "rms@gnu.org" , "spacibba@aol.com" , "emacs-devel@gnu.org" , "tkk@misasa.okayama-u.ac.jp" , Stefan Monnier , "arthur.miller@live.com" , "dgutov@yandex.ru" , "ghe@sdf.org" , Eli Zaretskii To: Tak Kunihiro , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 21 07:08:33 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 1m64TB-0003gV-Eu for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 07:08:33 +0200 Original-Received: from localhost ([::1]:45734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m64T9-0006GR-OY for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Jul 2021 01:08:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m64SL-0005a3-Ay for emacs-devel@gnu.org; Wed, 21 Jul 2021 01:07:41 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:13012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m64SI-0002rD-TZ; Wed, 21 Jul 2021 01:07:40 -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 16L56gBi032206; Wed, 21 Jul 2021 05:07:34 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=ba9qp9lBjECYL7PPpa19xNy4BkOCMEmmswmzNxCA8v0=; b=X8xT395cc9EPQKatxPC/mXu30BstnKOOttilstWPpvjs/Q1OykfAfvihLOu/KI92zrcd kJF1b8+vmcgmwCMucwp0GqHn3fK3WGoB3mcwaNxqfKoKQBvI28SN/KCSvor5rY4B+Qn5 bIeH1eJSBX4ssmdtC1dEI1NSzIBWpGDPVSM8GyoGKHKN3Uj+kcxBduKWd/feoQVIggo0 CmhpKvYhRG4p1zW4DCJJqzBHVtCJOvviIofC087m4qoGApsQMWpZbVX9zLDLqp8C4INY WBuZ4QF5TUQFlP+TZ+yb+m/EPUSII1Yq+G4ceFcQ+U9AysjfC/u9v7/u0ziJGmekfUir aQ== 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=ba9qp9lBjECYL7PPpa19xNy4BkOCMEmmswmzNxCA8v0=; b=zWcD8XbaLpKjUWeCt0gLqlQmnyDq5zFAaChUX7MVc0JnSkV4Ek1rjYBoFo2OY2TnTrGv 2+bWBaqhd63scqwqY9b5xccyZqtC0U4E6UYBywx3W8JgN765frcP9Q3w10XMt9SPtElK rFw/acGp96NYSg2IzJI/2dHpAQEh6JwS5D8CXPk+vtZVa8IbWMkX7llxJPeZAisGE8VI BILufC295+utbXIOwRfXxmIl6AE54IDCMCepKg+uwtZIHmDARho01ZjW1g6GgDQn1XhY vqsIzuMJrG4IqSt2UJ/ase1mXgaUhT/I0hzmJE3NsI575A7lAc0vZwS1KCuUFO5TtvCc lw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 39xc6br25m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Jul 2021 05:07:34 +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 16L56NMT001662; Wed, 21 Jul 2021 05:07:33 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2170.outbound.protection.outlook.com [104.47.58.170]) by userp3020.oracle.com with ESMTP id 39v8ywk5bd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Jul 2021 05:07:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dQE1X2sryVMl6K7i4Cpj9L9aBpjgK1+AbNfZvfJ7DD2H1SSBMI+/SF+ehCjQc0lNzzbf5WIdxqA4HXTUFKYpqO/2JfXZtp9easWO5HcQTO4mmZNgIb8kmwk+1dOZ0NCl7tuAjXquROcUf7FY8lbcjGhvH6UMtc8iYK6mkqL7RKB0wvJDmVyAJ3AkB4XFN6V4VB4hxcfz6gC5vx8z6hSRbeVZnsKdc+V/EDkGKd4Ys7scIA947+XJFvMP7AaVokKfOG/iwtmPKG7Uewde4iUugzj6L+FFzDGzCwUARq5cmN9luTf1UFx1ZVJl8JVbzx577Nr6DfqsvlRtLy0iiqfiLg== 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=ba9qp9lBjECYL7PPpa19xNy4BkOCMEmmswmzNxCA8v0=; b=dDDlBnY7Bwzllfw4G6Su6ipBTGG10eqk2z1vFquSI/GJdqC66newd9N8S2csb0O7cU3ohekEKXPvWdZjSd37gbMP4tRJCt06R34qfVaQbJWhvAl7oHu0EU0Cgw7GW2XFL3FBW/aAYqnvSh2Smw72cvqxv2TbMrj/Y4WX3a6LGuBJslgSQ8utLYfdoQGAQ5Ijmoyq1RzIniGnGsXj3ysQHueaa2VXbXKrYlOPaD9xHi8bN0GjLxxEzSj/Sk5FKvkhtnmwWm2SXc/xqYoRkIhQwetJLYUx13ianLksDvqWLiB3trp27pPCahugX5cRPMV9398SGqGypwQFtrxcHpEbIw== 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=ba9qp9lBjECYL7PPpa19xNy4BkOCMEmmswmzNxCA8v0=; b=Z0z8yaPH2R3VDEciqCRnmjw1uSE1C3xlfWPY2/7mldfwR6HCgyhhg7F12qNTjVc3daLtOVGZ91o7DF7GWJ9ypLtE2m1p4UkNmGRnrCMjsChoGH0xAS2gnb1+D0pZgCBn182G3Oo9ZX7OO3nOxjiAyQqLqN7USPU7/8aF/Y1tA4M= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3670.namprd10.prod.outlook.com (2603:10b6:a03:124::14) 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 05:07:31 +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 05:07:29 +0000 Thread-Topic: [External] : Re: Context menus and mouse-3 Thread-Index: AQHXfeprNLJy4uX3eUWgRBUrxRlTP6tM2urA In-Reply-To: <861r7si8l9.fsf@misasa.okayama-u.ac.jp> Accept-Language: en-US Content-Language: en-US authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d5ece8c0-bd72-4516-4e37-08d94c0570bd x-ms-traffictypediagnostic: BYAPR10MB3670: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FZhRVEz6GbxiQA0rIG5iOZAR3If4UkP+/r1i5T2J2mQ2zCxR5i4mpuKr9lJZJCzqQKuDU0M0yM4epUUsChkD1gsCQdooaFs2Op47V5iQOmvSXUvaA1pmT7oGeUsBk3f+mWWsn9mUi3jVwfBVoyXOLMTiJQoXK2Dd8reQkLc18/MxCu5kc9nxfw/V+cn5PlM2jZG8VmYKc4/PKpe+8px5gZGKrYC/hEiGOnB2xUqOVGJMtZqcCSWUpKJT5EqnYgVrX3A+2PWeL9gDs5JagjpyAVd5Nrz9B+FXF3Y+VH58FYrUFeHYQk5Y6Lt2gwsaEXSvjg6O/rZfNuARcF5awTY0YTMjAGXa50nAqzdRWXoz3lF+jM9G0ewiSxaETzcbAwd25N8SmH9Uf3S051YkIf90o5kkoKCPfu9sC8XO/UyOE3rpgP0FIWuuN0V1yc4AzUKvflV2HhAoDeF3g0TFVbM+6qRZaBWe//9h9aZC/2XRAGHR/In/uqXBtWdlEiS+9mH7hWMQiByHQqll39AFwXTnhir3Bz5YCg5JQ/ANH1E/r3b0cTd/2TDP9bwFbrEcjuJ3v3zEUf99i0zAJPBSurxZQywLf7OhxzZVtSimgXpvU/HOzea+5NNuV8i3lhvEJpzEzltgP4aQ+/ltpCW6MpDqlxqxh6AhWGafovOUrln6wIMG5VjQsEDUAYz0omugTSBsEDSqCJLajaVl4fI19wverQ== 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:(396003)(366004)(346002)(39860400002)(376002)(136003)(316002)(478600001)(54906003)(110136005)(52536014)(5660300002)(7416002)(66574015)(26005)(2906002)(64756008)(8936002)(66946007)(86362001)(55016002)(7696005)(33656002)(66476007)(76116006)(66446008)(38100700002)(122000001)(6506007)(83380400001)(66556008)(8676002)(9686003)(4326008)(44832011)(71200400001)(186003)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?t0GZboBE+KnE2I/8yzkm8HDOGrlGQaoBr2gP6rPngTEtQVZiFZKIPny61FcE?= =?us-ascii?Q?7pLwjvaamlWxKWqz7wn/Ndf3gr9m/EdGNOpG7DoqHmTDYAEiqcCtwX0QBqqM?= =?us-ascii?Q?fuo9bQ+ZHC+3NtoTjPvCpobzN7C18bEgwcNOMvj2DujdIoblg5LBd4jBTlbs?= =?us-ascii?Q?WVlBpUkFmAVvu7w0ENM24rX6MVtxTSfjFvQCkMOFGODkQD6auVRKYxOWQBPQ?= =?us-ascii?Q?SQGjedXCmMWdyWiGrfqP2f8+qsLrVkOnvKYjjzMqD5ynV70WlljPBZXML0Qi?= =?us-ascii?Q?tP7TTzleXi3ofXchcIgNhQQLmLDb0+sDcXgRbW1cI8pk+DOpskTMLCw4h582?= =?us-ascii?Q?hB7e0fKUZgUVq2LBWgW5RS+SdNXMHj4Pwjw7933ZEL0Z1O7gndM5kyR/OwHv?= =?us-ascii?Q?oQ9Amc5seN2F7oCEZjvRsZwYJhGuk0nhkxTbntvKGRrfam74VLPYjMHVzX84?= =?us-ascii?Q?mov9sn9y1RK1Ky5g4twT5MK+MJOl+kjpJ7c5haXx9kiB8RAkMFAxfowSkjYC?= =?us-ascii?Q?/SYGlh0wEnfkQ3MapHZVTozXg3nReZPvi2D0GoE50s1Trer8wbNOegSUv6qN?= =?us-ascii?Q?JNbBbu9M6GN7zdbgIQzxaP2co5zl2OPh4Weyn/PWpQk7IVmTH8KTjKf2YTLT?= =?us-ascii?Q?Ix 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: d5ece8c0-bd72-4516-4e37-08d94c0570bd X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jul 2021 05:07:29.9040 (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: lgaOsAohOs5iQMZR3pdu/eEloeNMf9U8uBUD76IflQGajjCAt3Y8D/utxdRQgLOSiP288uSnzXWYSJsetrU8eg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3670 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10051 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=834 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107210025 X-Proofpoint-GUID: CWuHTt2cP6TIMUtBGDWqxrmANMBdm8rl X-Proofpoint-ORIG-GUID: CWuHTt2cP6TIMUtBGDWqxrmANMBdm8rl 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:271400 Archived-At: > I think most of the time, a thing under mouse > cursor matters for context-menu instead of mode. Yes, I agree. A mode can certainly do particular things, i.e., have menu items specific to it. But it should generally be possible to act on a thing that's under the pointer. (BTW, it's called the mouse "pointer", as opposed to the text "cursor" - e.g. in the docs.) That's why `mouse3.el' has this available in the `mouse-3' menu by default when the region is not active (when it's active you get a menu for acting on the region). There are several kinds of action, for several kinds of thing, that you can choose from the menu. By default there's a `Thing at Point' submenu with items such as these (a given item is enabled when there's a relevant thing under the pointer): _______________________________ Open URL in Browser Visit File Visit File in Other Window Dired Dired in Other Window _______________________________ Describe File Describe Function Show Code Defining Function Describe Variable Show Code Defining Variable Describe Face Describe Package Describe Text Properties _______________________________ Highlight Symbol Unhighlight Symbol Hi-Lock Symbol Un-Hi-Lock Symbol _______________________________ Look Up Symbol in Manual Search for Symbol Eval & Pretty-Print Lisp Sexp _______________________________ But of course this is just the default behavior. A mode can define its own approach to the menu, as can a user (by customizing). If flyspell is available and turned on then you could have an item for using it on the word under the pointer, i.e., when the pointer is in fact over a word. (I didn't include that by default.)