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#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING Date: Thu, 28 Apr 2022 15:49:31 +0000 Message-ID: References: <56CBAF58.2000708@yandex.ru> <877d79movt.fsf@gnus.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="4157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "9300@debbugs.gnu.org" <9300@debbugs.gnu.org> To: Lars Ingebrigtsen , Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 17:50:23 2022 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 1nk6PP-0000vZ-9l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 17:50:23 +0200 Original-Received: from localhost ([::1]:33828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk6PO-0001Xw-Am for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 11:50:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk6P5-0001T6-3E for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk6P4-0001lT-QX for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk6P4-0005V4-IM for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2022 15:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9300 X-GNU-PR-Package: emacs Original-Received: via spool by 9300-submit@debbugs.gnu.org id=B9300.165116098721116 (code B ref 9300); Thu, 28 Apr 2022 15:50:02 +0000 Original-Received: (at 9300) by debbugs.gnu.org; 28 Apr 2022 15:49:47 +0000 Original-Received: from localhost ([127.0.0.1]:49674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6Oo-0005UW-JR for submit@debbugs.gnu.org; Thu, 28 Apr 2022 11:49:46 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:47584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6Ol-0005TV-Sd for 9300@debbugs.gnu.org; Thu, 28 Apr 2022 11:49:45 -0400 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23SDh6jp025790; Thu, 28 Apr 2022 15:49:42 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=F+m1kLr4wCPxwsPuaOUGp6SgyWJWWihXNBeqcIWGP/k=; b=qZi7N/TN/350wE6B7rrqV6rTLLhgyb0SmCIbizg1NGc6jTQu8Mw4Y1j3PjcbZgyxir9m j7YOyAy1kaVKHCVej1LMpvNxCV1l97901l3CJizuZ6KxMIu2yfrBA9p4MHEpjZId4tQQ mMGoxkvEHOL9G7c4JjNt67IQp9CIIWtlSXGQWsVkj8NImCu46WOlrrlc0vF22pk+zgfL P9zzie8/Q2ukrcT4DTwEbY1JkHlwrNG+zd/mAUqnGp0R64mE6SHcL9ixtTypiDNfrEgN 4Dc4jgcteWMBi44YMnngpb5alU51o1ctPN+IKYrEuFeLTtzvD0jI5RiOQ9PuF/hHOhiC 6A== Original-Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fmb1mvj4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Apr 2022 15:49:42 +0000 Original-Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 23SFkBfT029708; Thu, 28 Apr 2022 15:49:33 GMT Original-Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2041.outbound.protection.outlook.com [104.47.66.41]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3fm7w6uku6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Apr 2022 15:49:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ir9wa1gW8Vx5sr95FnZ1WubCy950a9qgV7rw0vxy1ZCvaKEeH3I7jkhrTifrokv4MnhW/zH+KBhfxGdDcLkVY9IhOh+rfnyuT5ZZA8CQfkTTF89gga0GKpJZWH0AFWWRuPuAIvKdJ33MffJ0pY+ou/tnef+NJQmDyiWG8hoWLIRZ73c8w8qUVL40Scgydw7m4rvRf8vJN66SLErZ0n53rp7mLsSqkTsYbMoUozps8ibDSVwdKZamU895nWAwH6qCLXSwblHoKg7ssTBbfjg4bVFp0CwUOudk7/od3l0T6dUVN6QL742NSP2058CWieO4jc0n4qWty3YME2y+1eVpiA== 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=F+m1kLr4wCPxwsPuaOUGp6SgyWJWWihXNBeqcIWGP/k=; b=fy+KECouoRmHeLDzcfu6g1YSyx36pOdZS0TZPCV5rFDoAeHw/ANorN2UVJ5xNCcnzFNHtlxBLAblAoozZFkAB5M2I2H2ZzhjBJRKzl4X5DaOQaFzMUrFIC5aMTq36zrB3/mg6NWcnJO+POCz1WN8SK5OZsB2n8yzekQT4O53qQmEho9PrI6X8jmC5mp4TVy7duwGO6TVlHvrbX4N9GH1tdkkurV55Wo+PPCzryj46FvC+A+qRDAzjFyjYZ+yFvvZbx+fqisPyCltpOQhpdUIm1SLDFiwwalIqr5/gC4cQgruHYC0xhb1F+LoSZNk/JxAWgHW99hJ1XOT1TQc7wfxXw== 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=F+m1kLr4wCPxwsPuaOUGp6SgyWJWWihXNBeqcIWGP/k=; b=AB9fpHEsqVP/wUs14DNYzvxXQzFY2lgp2BWfX/RwK48zyaqEvNvMNzm1LYzxyr/Bgs0mY/nx1u/P1TFIuPPMN6e+Bau3/axAunl7UCWqvj+NNgvOv4dSiXeLhQzHnpbzVMwMpDq9gT1Rdtc3Aj8HBYH/+BZerjEcPiSp/qfEheM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by SJ1PR10MB5906.namprd10.prod.outlook.com (2603:10b6:a03:48b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Thu, 28 Apr 2022 15:49:31 +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%9]) with mapi id 15.20.5206.013; Thu, 28 Apr 2022 15:49:31 +0000 Thread-Topic: [External] : Re: bug#9300: 24.0.50; `bounds-of-thing-at-point' does not return nil when just after THING Thread-Index: AQHYWvKcRQLciraHeEyZInAH1hlGZK0FcCfg In-Reply-To: <877d79movt.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 746de9d2-b862-44af-ee7e-08da292eaf85 x-ms-traffictypediagnostic: SJ1PR10MB5906: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: dPwMu39kewCNxvee1Eg3rfmjePO6OgMagMLzrxvrvcgpkeXph1MWc5oVQhbNcKvgLYvytgvB3VldeDYyuGaZjhqNkekOzcILbR+astwMMoVRXg+AJa0vEciiAWbxl0KtcIbnGnFplVHfq017WaRxbDSu1HEniauYQOikQW1gowZZ6cYD2buVjIS5f+isHt+LgJamJtG4/Pkii2sJKXC1yqhlaqMkMtU7Si+1YRbq2qqNO3Psam3Jv36qG6oDMzRsOJF1/8WDRIGz9bYmENIu7bc2/ky6ksR/sPY+MjXF5+MCn98Vj/h0c7kgbIC1/kHMl/4b9mAg/iAPdfWs0fY0YQlS12a5ecCWw41HAk2ROPIaM6faKr5l17HjgsUq7jf9rLpKa3Z9Ezr1NSv3Fxp2LWpJqZo2U80Cn23hX4uy4XanTACSBLLeY9wKCMi3e8X8/c8SovsM/5LMgdxgZR7pjuO3Xt7/mU60YZSZsG7Oh4LbXfKsH+Lt14PTJjhvREshbFqPaKTcOeNOSP07EeKBCJI2U9cFOoxsIZuBiPniIilOpxTzrYQRoxPVRCK8NN3fw3Q30SRRS0ToxLQK1iUnZCjaI/+lEBi4NRHDkgvenN1Jd+iZf7CVVjZaJ8SacPRpdBvJUP7TjrKe0WHxRZpoRteeJ00k0QOpb+kEi5bOnRjB0jYzLBoqARIunwUi88zV/l3uR1lxs+zLDK49jYllcKyW+zIFAm8E+/4alLLbYUs= 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)(33656002)(2906002)(7696005)(8936002)(26005)(6506007)(86362001)(508600001)(186003)(44832011)(9686003)(316002)(5660300002)(122000001)(38070700005)(38100700002)(52536014)(4326008)(110136005)(66446008)(66476007)(66556008)(66946007)(8676002)(55016003)(64756008)(71200400001)(76116006)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +n0Ht6+p2pOvPsSg/53KMxoK345/IntR4SujyLPJ9aN26CnH0HiyzdJbNYta0Yy+Ts/DWOKSla+NFcfRotgtpBcIMjefuUN0fC65mtdBTN0Dp7FcC6LkXHeL7sLanKlRTg7GuR0cj4cfIL91wiWNdoQwkdJ2/cAcKD1qVPq6xRYqy8Kv7934kpYTA+hMsOQgI0NCPb5q9OIfWpNuPxAYprmO/hZLyeglvE6G47X0MgcefYa6v7QHXvvyl6T5goHZCUP5pbJ0GfGKdPncvsOhRLXZewxHWhmMIPjHkYusba+0nepU6TWHfQIvOlJEDHC5lTn4YGbmueaqPa2nsd0whpJhfXy4XIzJMmjTiEdutSnWRQDvWuO/jbztKpHu6nL17/XxuGpQm30uFsqW3ITYL9ANWj+xE5glhChl0F5tPT0HrhvGJRXr11W+VaVONGmiBqTZ7H9ZofBBeo7Epaj/yRi3CjjQRe0xTz00ZeeINyoCEyJwnoUfN6FauaRK0qRYrlSn7EIegrlXp/RQlAypco89aPNfvKnOlt6v/2Sw/t7qcBP0rOLiL2bEVdoCNvAhvMsEi1bom9NFUK3ZTsvBFrlBtt+5TrCQoZBp89CTPvpZR/Ksyu6FROhVguzgdnHYqEnFTIZmW6GRygw3aFfAQBk2wixxQ2Zz/GbXrUKRwVOzz2gzQgEiwR1/by6pyA6lj+qrPWTRCYhZk0EX7idt3qmaYn+9GIrUz4y4iSuVGBjPCSz+fvzIo5sAnW THLNDS0Ej+owiPmdc7xNfCChMjRfbS+F9NDIbOPXn63WTGFh5BGlNIXheXlAqgt7RQwL5gC+B1iyeCVPmSqk/T0scfEGhCrFfq 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: 746de9d2-b862-44af-ee7e-08da292eaf85 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2022 15:49:31.6214 (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: JvYhExLJbCm99Rz1kqneKVG8xkB6SQFBajk78G+10wBG7aMu5aCV2JPaoqCpQ0F/P3L/lesAo2F96S+MB0UdxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR10MB5906 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-04-28_02:2022-04-28, 2022-04-28 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=855 malwarescore=0 mlxscore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204280094 X-Proofpoint-GUID: ja5z-iagE06wCSuP4U5q9IJ_bEys8Zdt X-Proofpoint-ORIG-GUID: ja5z-iagE06wCSuP4U5q9IJ_bEys8Zdt 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:230889 Archived-At: > So I think the conclusion here is that we don't want to change the > behaviour, and I'm therefore closing this bug report. This is extremely unfortunate. Quite misguided. This completely misunderstands and misses the point of `thingatpt.el' - in particular of `bounds-of-thing-at-point'. The point is NOT simply to try to obtain a thing (and its bounds) _near_ point. The aims and use cases (there are two) are: 1. To find out _whether there is_, in fact, a THING at point. AT POINT - not point OR (point - 1). 2. IF there really is a THING at point, to return it (or its bounds). This bug is about the misguided behavior that returns the THING at (point - 1) instead of returning nil, when there's NO THING at point. This bug renders thingatpt.el useless for any functionality that needs to know _whether_ there's a THING at point. And that means a loss of lots of use cases - down the drain. The miscoding is motivated by an expectation that the only thing anyone ever wants to use thingatpt.el for is to get a THING near point for use as a default value for reading input. That's the least useful application of thing at point. (It's a common one, admittedly.) ___ It's possible to define other functions that do have as their only aim to return a THING that's NEAR point. As mentioned in the bug thread, it's not hard to do that , and even to let callers specify a tolerance that defines NEAR. Such a function is really what should be used to get some default text for reading minibuffer input. (I've offered this - code.) But a get-some-THING-near-point functionality doesn't in any way _replace_ the need for aims 1 and 2 of the thingatpt.el design. The code is corrupted, resulting in loss of the raison d'etre for thingatpt.el. A new low for Emacs.