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.bugs Subject: bug#52293: [External] : bug#52293: 29.0.50; [PATCH v3] Prevent further cases of duplicated separators in context menus Date: Wed, 15 Dec 2021 21:36:54 +0000 Message-ID: References: <86pmq6taeb.fsf@mail.linkov.net> <83czm6unfs.fsf@gnu.org> <414be477-34d4-c777-f623-3e0e59c0dd08@gmail.com> <83o85mpaqb.fsf@gnu.org> <8e9b29cd-8700-1a60-1d91-b6995d8f433a@gmail.com> <86czm0eue5.fsf@mail.linkov.net> <8c440269-262a-ba78-6630-d3f90c2fcc19@gmail.com> <86fsqwmig7.fsf@mail.linkov.net> <1c1995a2-c033-51c8-4aa6-7458ad07c75c@gmail.com> <86mtl3629t.fsf@mail.linkov.net> <83ilvrl4m2.fsf@gnu.org> <86y24mucz2.fsf@mail.linkov.net> <864k7agrur.fsf@mail.linkov.net> <86h7b9ybej.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="3724"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "jporterbugs@gmail.com" , "52293@debbugs.gnu.org" <52293@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 15 22:37:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mxbxY-0000mh-T8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Dec 2021 22:37:13 +0100 Original-Received: from localhost ([::1]:36738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxbxX-0005F9-Gj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Dec 2021 16:37:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxbxP-0005Ex-5x for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2021 16:37:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxbxO-0006yO-IH for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2021 16:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxbxO-0006QL-Aa for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2021 16:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Dec 2021 21:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52293 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52293-submit@debbugs.gnu.org id=B52293.163960422124686 (code B ref 52293); Wed, 15 Dec 2021 21:37:02 +0000 Original-Received: (at 52293) by debbugs.gnu.org; 15 Dec 2021 21:37:01 +0000 Original-Received: from localhost ([127.0.0.1]:33859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxbxN-0006Q5-4n for submit@debbugs.gnu.org; Wed, 15 Dec 2021 16:37:01 -0500 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:42982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxbxL-0006Px-6z for 52293@debbugs.gnu.org; Wed, 15 Dec 2021 16:37:00 -0500 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BFLKHbi018870; Wed, 15 Dec 2021 21:36:58 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=toQdv+8j8SBqSok+qK0NoSYaj7B4ZJXmX1tnssiOBuU=; b=UeIwLERrre8WNxnS/1EKC00c32HlCARn3LulvSCRdPm5V1OU3EEwvn9blyZxWGsc+NuH Yx5dHt4pMHdFIjfldZJ57UPWJ+Qo5gNdJa0bob1AR0F04nmc+7cG1vOQ/VbuhBb/LJAq RjZha8PDfZcRukYOWAQ7TOfzsw1GwHXbBkqKYp9oZbdJLJBX9BlgY7zKg8YAvLue8VkV nyclbyMNTS/ozT/xUe1XN63k4HjcDvWvymN7v3E1p5o91w0iWCv/RNLgLN5SPWWcbxVn CSMyzqLoS4r9rD79LbpUtvq/uGQBStecSxi+Ro6C7JRa8Zn5v9cNpU6jUesv0bPxKGG6 Hg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3cyknrgw96-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Dec 2021 21:36:57 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1BFLZma3004223; Wed, 15 Dec 2021 21:36:56 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2175.outbound.protection.outlook.com [104.47.56.175]) by userp3020.oracle.com with ESMTP id 3cvnesm8s1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Dec 2021 21:36:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HvxJWvEn0uBkmof3s4cJhUbAKE2dg7d6PkmPVWcdgZgbAWLgRuPtB4YMwHVC5T2zIXv5dciPzh/DuriSMBvn+aRpH0EoRkhw5HdCFi81mRsUgK8Yh5Gnz9F5Cj0hU+WND8N/gjuCOpfIPtOTjLUJwzghsFf6ApkM43S7ao/u31ZyXCjbhazipKIf7F+sHX3dsW4/S7djUYf42y8xlZ9C+XbEtr02oIHcb8c3rlcOZQzafX8rCP3MveFmEl6s9+6Q1gnDYxFhsCE/VoE/uPvJexDNRMPY4ejGbuFwfkPvHR3vFdl+KHeB0kUyJkxszZ0Bts+kiQ7B9QZZmiuYo0HEgQ== 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=toQdv+8j8SBqSok+qK0NoSYaj7B4ZJXmX1tnssiOBuU=; b=GCoWCJvsJek2/tayY/SZIOJf2zoe+yIezIDb5ZGJPJtstu6zuSQeFvRuGR35L5Pa52iu472E3fc29Np4Pv0YOprnH+RPMmyjUhbolIErk5gfYHgKj9S7n8l6Gjasz989Lz9JW6YE2Qpf2k4/+jEYMyuEdau9ZXAPxZM57CRw70XtT0/fkN2SOGU9SU39CtOHorJfRVFgYMkRSZL7fhJw/YERW3zXteh26ZiDAGw+BqASYgugXgH4OCLJfm536uM0mBml2zeZGS/glaJO1+YsKqUmULTUzWv7tscVkS+WZkG8fCb+C3QNWAj0uZTwMMw8BqsOnbytY0fSBrBMcPTffg== 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=toQdv+8j8SBqSok+qK0NoSYaj7B4ZJXmX1tnssiOBuU=; b=nKs4q6G6TeHZOWFeOVn/HLP6vD4BFbYYjk1Zrven1qQVIaTsRQ9WRQrWK72s2Nw0A6b2ltZQGRdbmtzDhIvIABOQL1iry8JBgIo3L4zafaWrZ+USCgrotzWuiZDL5Ku6AE7F7NNeweDwLZoKLmP8o2wJA09+I0uvLbLu2mRURPs= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB3141.namprd10.prod.outlook.com (2603:10b6:a03:154::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.11; Wed, 15 Dec 2021 21:36:54 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::99a4:696f:5f30:36b3%8]) with mapi id 15.20.4778.018; Wed, 15 Dec 2021 21:36:54 +0000 Thread-Topic: bug#52293: [External] : bug#52293: 29.0.50; [PATCH v3] Prevent further cases of duplicated separators in context menus Thread-Index: AQHX8eEodHgNDEEi002RZT6u7iHHwKw0CyzA In-Reply-To: <86h7b9ybej.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3ccdcd58-275e-4e23-95ea-08d9c0130343 x-ms-traffictypediagnostic: BYAPR10MB3141:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lbztZTk+kcujfl+2c9lzGxVFdWVTwPM1LeqNYgM3Pss6iIhfstBsTLddDbrIlzMwuRR2xXBuID9OsEMN+B/X75daAi/JxddOkqMitL85DzIvwtZtMG0ci+RZGF1RlMKjlEYPceEExDhmczCpTb7MWTMVojinJwTsCE+SFriFK1YV236tpuednjfmVbYgQDohRdhv4vu4cJ5VLtVgflUgcCOyI6qNe192lP/c3FtWRUkMz7OV4Gkzjd7JfMUoK9DpJD8/pkQMO3n6UmEcDnhNxtpE3YCho0xhw6EYAkjJpy8bhFrOZGGJ0Sf4wGMyzye3SK31LpIBO8juqiD6HJWQfYfJ4E/9GMl8V4zNqUVa7Ag6VuKEiTYaPlgwREH9Oa6x8WUsbVjOx8mvadgyvx8QhzXuoUPayJkUePbj0LwgUpf8meCak3ImfpoVAv33N509v3rE5WCgHlCpsrc3L9au48mXbXoVNlzi+jOOh57flTWJq2cvE9xIuIeUw5Q7To0H1K/tdLhLX3WJDeHqyCfwg0WTcxBq2uio8frPv9fBaiyvizC4WdUpgGPshXB8MYF4McL5AmFjNruKg+YAe4Fj5gDEgnLg1bwRgQ0cjjyyttBzmLuUwFzCoAqqxnC+aHGLc3m91jCu5s0goR3ieGcxKCKOwIKbgvT/7RZBb0ZVikI2s26pkUsW1yBwKVtNMRctgUFWoeZMTVP0wbWwJabVpQ== 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)(316002)(71200400001)(186003)(66946007)(76116006)(26005)(86362001)(7696005)(44832011)(508600001)(6506007)(66476007)(66556008)(66446008)(8676002)(55016003)(52536014)(2906002)(33656002)(83380400001)(8936002)(9686003)(5660300002)(38070700005)(64756008)(6916009)(38100700002)(4326008)(122000001)(54906003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: MIua3xCDI0IyPcs98/2xzkMNheoxXHNko6DEDe2syVIh/f5GDAhbQczV0TFcD+0Oz5Zt1DkwNgM1xHD2KLMq8EuhiLhCzvWR0Krdf0RV18HbD8I4k5eSMCQfzzfk2XQdyvy7TiSfMKO1z7xQYo4zW9R8BKW9Pbkrv9PQLOSVcP0pMuXmv950FGqwiWebSL3oJ9JkPmp1cchBHoifccpiSt5hv6dRtoubEbXGKGdHQvfECkkTXcaW/PkgdIQo+8nABZG7QsvuhoQJxyvl66daebJCZ76ku8vS6H2/oCPrz8w1SET5d4fBDbB3fGm3H2w4dkRsvfXdhwcygpmUDrFCMPtUPRKux6lVu55p5fUtkxro8V9clSXq9Iv3pAENgn/pQ1w3/nLxQqdI00aUDFr+YA7lrdoiNGP6Xp5YhCtkI3QZZg7dyd+9rFWFxKEZ5JlWfUWw7WWvna7lCStdCTrJCLf1ZPrOySdb3ZW3IcbL1jBR5fdYQhbwj4Mw9DM+/IY9NuskC5q9+YXliXERK1k0jVwGt3JyoNthBlZudBfbbHiwaCyya+Nxn+WQptL5859GOZp09Q29xu0KprFWUHzXjnYt9DXu1kVXYFUCcK3LACvfwAFielF9IzXq6orSuiVkrxmRXGMfXKLv7LMm9JdrDb/r8sF6vrYF5sLbseU34oJNY3gDu5mWGc3Sc6vIsincRtilvnoEqlvo6Rib+65dfIjlP/f5Gl2JxWHekz7mUFqA3YhFUnRgVAAYD3 Mx8UXnaszxLB8kndDTZWXrTdh5+TudcnDhjmQ7aguZ232tF+6Va71rKOhB8m/kh3Ti8JNN1+VxDQw3+gVdatuusDj1oWMZyKqL 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: 3ccdcd58-275e-4e23-95ea-08d9c0130343 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Dec 2021 21:36:54.0683 (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: 1u2hX3sysLe5LsbIxkX3BNtLX1O1mGvFq0fiE8AUt/I6coaMFhhNfNaQ2vs0Z64kPxmQjHExmul7oxW8dYIWGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3141 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10199 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 malwarescore=0 bulkscore=0 spamscore=0 mlxlogscore=960 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112150118 X-Proofpoint-ORIG-GUID: tUar-nBKxFAY-HDCHemHNxyZ9ef1lgDv X-Proofpoint-GUID: tUar-nBKxFAY-HDCHemHNxyZ9ef1lgDv X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222453 Archived-At: > > Instead of a second single click always deleting, you > > can use it to access a context menu, to delete or > > perform any other actions. > > > > Doesn't that remove the standard second-click-deletes > > behavior? No, because it distinguishes a `mouse-3' > > double-click (which performs the usual delete action) > > from a second single click (which shows a context > > menu - or in fact to do anything else you like). >=20 > So double-click mouse-3 pops up the context menu? No - reread that, or read what I repeated, below. > But no other app uses such a gesture. No other app lets you do what Emacs lets you do with mouse-3. No other app lets you do lots of things that Emacs lets you do. > So no user would expect that the context menu should > be invoked by double-clicking the right mouse button. Not without learning about it or stumbling upon it, perhaps. The same is true for a great deal of Emacs - wonderful features. The first thing to learn is how to find out about things. And yes, even that takes some learning. > Moreover, double-clicking mouse-3 is not convenient to use. I disagree. I'll bet it's what you're already doing when (if) you right-click `mouse-3' to kill selected text. I'll bet you do NOT use a second single-click. And anyway, it's not a double-click that brings up a menu - that continues to do what it's always done in Emacs: delete the active region. It's a _second single-click_ (at the same spot) that brings up the menu. (That's a design choice, so as to fit best with traditional Emacs behavior. Those two could be reversed: double-click to bring up menu, two single-clicks to delete region.) ___ And again, there are simple user actions to get ONLY what you apparently prefer or ONLY what Emacs users are used to: . It's trivial to choose to always get a context menu instead (and yes, with a single click): just turn on option `mouse3-menu-always-flag'. . It's trivial to get only the longstanding Emacs mouse-3 behavior (never a context menu): just set option `mouse3-second-click-default-command' to `mouse3-kill/delete-region'. (In Customize, choose "Kill/delete, per `mouse-drag-copy-region'" from the Value Menu.) Better such a choice than no choice. Better such a choice AND a 3rd choice - for the behavior of offering both: context menu and region-kill. ___ And the doc I pointed you to isn't a "wall of text". It's short and to the point. The library offers lots of possibilities. And that "wall" also presents examples of how to create specialized context-sensitive menus. ___ And this isn't the first time I've described the behavior in emails to the mailing lists. Either you haven't paid attention, even in your own thread introducing what you wanted to do for context menus. In this current thread I'm repeating myself. I don't mind, if you actually listen or are interested.