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: Moving point after character when clicking latter half of it Date: Sun, 9 Jul 2023 16:06:14 +0000 Message-ID: References: <2255158.iZASKD2KPV@silef> <87jzv9mf5s.fsf@turtle-trading.net> <4837402.GXAFRqVoOG@anduin> 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="1031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Moritz Maxeiner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 09 18:09:06 2023 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 1qIWy8-000Ad1-UI for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Jul 2023 18:09:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIWxN-0001hL-6r; Sun, 09 Jul 2023 12:08:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIWxF-0001h3-AB for emacs-devel@gnu.org; Sun, 09 Jul 2023 12:08:09 -0400 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIWxB-0006Kj-VM for emacs-devel@gnu.org; Sun, 09 Jul 2023 12:08:08 -0400 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 369ERxLe012411; Sun, 9 Jul 2023 16:08:03 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-2023-03-30; bh=AxdWRJRP3/BriAxJnOo0TZ36Yx2SLsFLiUkbjoW7jGw=; b=B8AU+txSz6FxhWh/OVsxFTgPK0BCE1FH3TDjmJc650/WcpJ5JLCKOZt84ITtJydCOJqn 7nsVLKL3LScZWU+RHU3Fw0/iepj3+gad93MwxMTPloCpAhbkEkGH5DN1TYjqT5vvpiT6 Dysa++4bbTeO73LWuBPeRQ/gMoWBkHL11LMybjkpf2z1trksW1r9b4xyaFEQ09SN1LP0 mZzVesYe+PmEeMmM4NInPW7Znhyiu366kIkwjCHwz9MXNVpqHQzMo+dveMDnnF7IzeMU QEBkMUeAzX0/RnquZG9Auhz3msTMG+oq4+Fd8hfNpC/4ownSXcYu4t4vvLKcCnuZ7fAW zA== Original-Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rpxkj1a8p-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Jul 2023 16:08:03 +0000 Original-Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 369DbRHG002519; Sun, 9 Jul 2023 16:06:17 GMT Original-Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rqd26tun5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Jul 2023 16:06:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IAfGrfIA6q1s3PNm2mzY0RUSB2DdSoS3R1LikCw3QUxjDwh0B6cQlN31wzdlX+TbTxqSNwdZauVe+I9n3z6pEoCAF2aIqjhkj1DHheLphZwKbXygJbARwfFl48VDOaXZTRxvrEjagrNL4MwuGTKAN5I3KP17lqFg4XU7GBVRgEUUCKwSUF9hT8fs3ZGO9/zyHnmZIfRkjq9CYPy6BbhpO8W6qC02ov0c708ZxjzyWja8MwJjrnZkycqAVQsVGyuCbmiuRi7E+jsMV+2GUqG9DeGOGc2q0WwNpcB6ioBJlJxMWwz0QPFcnS1MQMBlxqF3bEUXCCY4lZ1dd5F8lh52oQ== 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=AxdWRJRP3/BriAxJnOo0TZ36Yx2SLsFLiUkbjoW7jGw=; b=fUq1VW3J6aPAns+1fvkjBMB90ukDbYfKVh0E/F8Fv0I7T8nAW5qrC9aKMKgBOrtTyWAZhKEN0pfV7u1nDCkORWxUb5W9UC6Baf4KX3vDMih8gt9Vv9c7ICxGTtM+/Dj29UR6Bvu/5O9nCVJrB23CMwqCPcChMXiGNbh8uWkszzrt8P4f3lxuMcIp0D/FMGkl7rDmOWzVY74oBD2LUbY4OEktfhxlXI0lgnp7OfGbjhOex56uZ2b9JxANFqBmJ8nCVrotuS6NCAU3O07TkvMMUU9ebG1TBp8L/E4VsqgSOGCkMOW95QylVVZLrWwDMwDGmGuIntXKefzo6i4NxsFroA== 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=AxdWRJRP3/BriAxJnOo0TZ36Yx2SLsFLiUkbjoW7jGw=; b=pTaCeCnEGYPvleiidfjVepnpJoe9haWiJv1H9/a24EQ7fzoNbSbU2LzipG3dM2hkGUGcaxEqz7OlLXXyD44DJzji+91ZpZGHhO1SAWDvCynLgIfeKU68g8lMCjYuu1ttekMGLZFJ2gnV9m6Ff2fEnJPvrSklMSfriOj6qLZAvXc= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH8PR10MB6385.namprd10.prod.outlook.com (2603:10b6:510:1c0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.29; Sun, 9 Jul 2023 16:06:15 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c370:e1e7:a592:657d]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c370:e1e7:a592:657d%4]) with mapi id 15.20.6565.026; Sun, 9 Jul 2023 16:06:14 +0000 Thread-Topic: [External] : Re: Moving point after character when clicking latter half of it Thread-Index: AQHZsnq4KdJzcgaLVkyDOOPv6WGqta+xk5Eg In-Reply-To: <4837402.GXAFRqVoOG@anduin> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB5488:EE_|PH8PR10MB6385:EE_ x-ms-office365-filtering-correlation-id: 4507feb6-f4ee-4f7b-a78a-08db80966bec x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: izrR2ArQmmpvQgNx/H/UAwe/Z1epHO538EyKmOWpOvq1q3Q5BQmomCJ2an9UjZU6JzBU1cDVgc/Ze5yKMyQAyhneAlZb++AZRziIWjkKTRD75FKcsZD8R0apXCInfvUQeC71Msnjpbl1CNVFtqFfY5Ph6FncAi6U/6QtuG0io16L87utDSsAl58glIHUvxaP1LSyGUbDMsa/XCzMjTKRXoKN8PPkVnzU61rRoiIFId7Le85VJaJh1ckBovh+5nYHgie6amFqFHigEfNf8MHDrZtaY9TWpyFzJMwjHfgMpgXzDVcclK01yK/xZue3lcZQ8VTVWN7PvxZ7UqW7Ver8zyY9WFqS/UMifV2DgZwbJJWO1OhOURFUTG53ybTQyE8s9FFE3/A/uwZ4vnMHZoCJhkl2wLGC/iOirinumZl5zzejT8hrWw+zBqn8T71VerCFXEshh7VbV4/pr3PZr1O7h+YPeMt7oUR/T6jbeHRMeowG3SiDfyPt8X9iPiXAzYwHBQatnUEwqWddwL6Eqh1vUFJIdzctCJtP/lX+V1LqPnT5q3BklLvm6LG29mL/rjauXlVVBUlDDzKN/ciBuloIUYLU4+QqnAz/BU/XXI/lYpKOmW9FYg+KQUstlRAy5p0T 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:(13230028)(346002)(376002)(136003)(366004)(39860400002)(396003)(451199021)(186003)(6506007)(26005)(41300700001)(9686003)(83380400001)(66899021)(7696005)(478600001)(122000001)(71200400001)(6916009)(4326008)(44832011)(66446008)(66476007)(66946007)(64756008)(76116006)(66556008)(55016003)(38100700002)(316002)(86362001)(33656002)(38070700005)(5660300002)(8676002)(8936002)(52536014)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ToSvp9jdLyx/t+97PvkYgmNFjTqOEZ1s4CbRqnoauj3Eh+Zpw1iF4hsZF/KL?= =?us-ascii?Q?w1l1zkqEFyj/pgu+RNI1keZXQae/nns3qHO0SpHBZiEwI7Ky6FizJOgwqhOC?= =?us-ascii?Q?eBq4E/DaMZKTt+ULEHwNwGOxtsHHGEW31DVbZ7XXiE+WlTWpp0AyqpVVnvCk?= =?us-ascii?Q?8Q/27Z5nhFF07i+1nDewJUufeu0Adb/A2IqP9i5Xv1PtpBddDMWjA67HmWsR?= =?us-ascii?Q?/1enYH2OscwrN310bLS+efiSPpPqdmjIGQv3yGhouDInsH2q/G52sEL+q8Ya?= =?us-ascii?Q?mV9yzPNL1wcolqAXWJV0AgGhpg1avUbqc4ZBbIl2iLaR9y6h8ZgNO7BFCE5L?= =?us-ascii?Q?pRR6bt3ZKDW/tHdWPH2C3MEGEydSvSXaHR4n3W+vCBIOw83qoPjn/vLIKIy9?= =?us-ascii?Q?KQ8FFdqsitnufIbD47hv8erClI+xnBQj7Pbb4sX7jZSoAJdIozjOGCEKaNNf?= =?us-ascii?Q?ob755X5LZbO6YjBjUo8Rco4iELzDnTv3dpY1UKqqkg+WgBZa36XluzNfadwv?= =?us-ascii?Q?C+S5UNE9X7IimEPiJswzZxprmj12ZujayP4XluE8HPZw2bQiygWpVSxtLsLK?= =?us-ascii?Q?xX6C37aNcLaxlcsPH9A5KI3mV4ys/EGQJbN9MJU+xsIKD2ZUp1Wb2q6m9Muj?= =?us-ascii?Q?BP X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: F+rhn77/+lj0JXW0+rbUbedYF2KenUrX9FerlL4avepcM7JHhwXy4j0v69rRe9TEEJJTY/X2Yphx8Piew0JPhvEeuvUeBhtpcRDYT/xPswJgQPR4VSBp5DAxg1bTBQbKa74nM38Gupyq7XPXNrLV3vFoA2X36QbUhgDjdWyBbX8AC2BigPaSiSJZyUZIKyzWTEiWYP5VUQ5k/ijSJxDqjN5YSlp33s4fkUOeWzSE84ELskDaPts+oyhXoOJo3l2UhsFHU16+a4Dxr6/Os7Q+lrCw51IJUaW2DTOaRHb2XltppIgxRoan3zq/OQCvkmufzl2atCgfHG1RxO1+gMKSHCJP4H/53LTUENhtR5WWd4jjZ66Vj5e9V9ro8oBOWupHGtfdXVdgAMfnq0Ch/JYfUTxazOlt+XExBNJVdWXISLCQ9xDXKPKTeviWXJXGC46M/Qk+JNFuxHHh3nlkyV4H/S1o6C1fx5/trHUz7FH3QE/TY2L4Yln6AtFTq892hYssayF4CWv0IIIcYlaZ8v5fcEY8/FmCpSvEV1yj/XIUatInVu5JVhEmZ3J0RmZQiV7laoigPIh29CBF6AUwfyvyjmVfDYmE/vBsDvTlS03AhrFmEmqkeUrXt5RvcyoSGGo2wwrKbMmDGqLRuwleAMD0TCG5j+iau7k8NFvpEdZ2wM6Gj4M9rrf+3dZQVmdNjeHbe8Hj9hJ2lrdWAggIsas5Vcjiz5f8ABIP9Z02yY5DpL4XNV 4iz3JmJlfWTJU14lK/ 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: 4507feb6-f4ee-4f7b-a78a-08db80966bec X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2023 16:06:14.6890 (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: Df+evx6jH3pVpnTYsb6fVUlFBMaZMnGDAhIRSFm0Naj4wH77b3KO+CEWv/MTV27xXBY7cun0smZEf2kQwUzOfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6385 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-09_10,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=978 adultscore=0 mlxscore=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307090150 X-Proofpoint-ORIG-GUID: g3OWBN8qim3d2MpUfiEIKZia0A39Cuwc X-Proofpoint-GUID: g3OWBN8qim3d2MpUfiEIKZia0A39Cuwc Received-SPF: pass client-ip=205.220.177.32; envelope-from=drew.adams@oracle.com; helo=mx0b-00069f02.pphosted.com X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.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=-1, RCVD_IN_MSPIKE_WL=-0.01, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:307691 Archived-At: > > > I personally find this an anti-feature. > > > > I understand that the feature would be optional. > > Still, I tend to agree with you (Benjamin). > > > > I can imagine editing text with a very large font > > (I use larger fonts as time goes by...), and in > > that case I'd see better which half of a char I > > was clicking. IOW, that would allow me to take > > advantage of such half-char clicking. > > > > Nevertheless, I don't really see what the feature > > adds. You can already precisely click here or > > there to place point or select whichever starting > > (with (mouse-1) or ending (with mouse-3) char you > > like. >=20 > It allows people to not have to shift mental models when interacting with > GUI Emacs vs. other GUI applications deadling with text. Thanks for making that explicit. So that's it? Whether it's a useful feature in its own right or not? So this would be analogous to Emacs's optional support for CUA, etc. If optional, OK by me, but I'd like to see the doc for it point this out explicitly: that other than perhaps giving you behavior you might be used to from outside Emacs, this behavior provides no advantage. And it introduces the disadvantage of making you distinguish the click position even more precisely (smaller click radius, to get the given effect). > > It seems like all this would do is to halve the > > distance between such click positions - in essence > > _requiring_ even better visibility/sensing of the > > positions. >=20 > Clicking the latter half of glyph n, as well as the first half of glyph > n+1 would result in the point being but between glyph n and n+1. The tota= l > length of the selection range remains the same, it is only shifted half a= glyph > to the left. That description sounds like a (less-clear) repeat of what I said. > I ask that you try my poc patch out before > making such strong claims. I didn't make any claim. I tried to imagine the behavior, based on your description. I don't build Emacs, so I won't be trying your C patch. > > And thus requiring even a closer zoom > > of the text. IOW, instead of having to feel/find > > the start or end of a char you'd have to do that > > for the start, the end, and the middle. > > > > Sounds like multiplying things unnecessarily, > > making poor Occam roll over in the grave. What, > > exactly, is the improvement or use case? Could > > someone please describe a scenario where this > > would actually help someone more? >=20 > The use case is described in my very first post, No, I don't think so, if you intend the use to be more than providing the behavior you see outside Emacs: click left or right of the center line of a char, rather than clicking left or right of the start of a char. (It's true that that's the same zoom or resolution requirement. But I'd argue that the start of a char may be generally easier to discern than its midline.) > but I'll go into more detail: > Every other GUI application dealing with text I'm using already works thi= s > way, including e.g. KMail (which I'm typing this email in). When using > emacs, I have to switch my mental model from "normal GUI application" to = "Emacs > GUI" and still often misclick due to Emacs' behaving differently from oth= er GUI > applications. That repeats what you said in your first mail: the aim is to provide the same behavior you see outside Emacs. Nothing wrong with offering that option, IMO. > That being said, if there's wide opposition of this being included in > Emacs, I'll maintain it as a downstream patch as Emacs' current default b= ehavior, > to me, is unacceptable. Please reread what I wrote. I, for one, didn't express any opposition to such an optional feature being added. But if the only benefit is matching non-Emacs behavior then let's please make that clear in the doc. IOW, if this is analogous to, say, CUA support, then - just as we do for CUA support - let's make that clear. I'm guessing there will be others who also appreciate having Emacs match outside click behavior, in which case this is a good thing. To me, on its own, midline as frontier is less desirable than char start (or end), as it's less discernible. But matching outside behavior might be more important for some users (such as you). Thanks for making clear what this is about. It gets my vote. (I take your word that the described behavior is a common one outside Emacs.)