From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mickey Petersen Newsgroups: gmane.emacs.bugs Subject: bug#61529: 30.0.50; tree-sitter: weird off-by-one error but only in css-ts-mode(?) with `treesit-node-at' Date: Fri, 17 Feb 2023 07:24:42 +0000 Organization: Mastering Emacs Message-ID: <87v8k0iwie.fsf@masteringemacs.org> References: <87mt5fjpwu.fsf@masteringemacs.org> <83v8k3avv8.fsf@gnu.org> <87h6vnjath.fsf@masteringemacs.org> <87cz6a7p5d.fsf@thornhill.no> <4997c960-5a29-1004-6727-df69d22a9d37@yandex.ru> <8335743jge.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7977"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e @VERSION@; emacs 30.0.50 Cc: 61529@debbugs.gnu.org, theo@thornhill.no, Dmitry Gutov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 17 08:26:13 2023 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 1pSv8H-0001ut-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Feb 2023 08:26:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSv87-0002Ix-TI; Fri, 17 Feb 2023 02:26:03 -0500 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 1pSv86-0002IU-Db for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 02:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSv86-0000O9-51 for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 02:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSv85-0002lZ-Qt for bug-gnu-emacs@gnu.org; Fri, 17 Feb 2023 02:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Feb 2023 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61529 X-GNU-PR-Package: emacs Original-Received: via spool by 61529-submit@debbugs.gnu.org id=B61529.167661874610610 (code B ref 61529); Fri, 17 Feb 2023 07:26:01 +0000 Original-Received: (at 61529) by debbugs.gnu.org; 17 Feb 2023 07:25:46 +0000 Original-Received: from localhost ([127.0.0.1]:38337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSv7p-0002l3-Lk for submit@debbugs.gnu.org; Fri, 17 Feb 2023 02:25:46 -0500 Original-Received: from mail-lo2gbr01on2137.outbound.protection.outlook.com ([40.107.10.137]:59755 helo=GBR01-LO2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSv7n-0002kp-9l for 61529@debbugs.gnu.org; Fri, 17 Feb 2023 02:25:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ky04daAX8d1oNEEfjkCG7y5McNmEjP/Ql8qUJlMxF56zdQzEC99fdYC9xMS5syl8s2QsCiklraT2sBAS7mPRPAIgYOuhy8m4JWfgsncKIZP4JtzYenmQfs332tDHtG+n1prWVEXHC1pJ6IPMWa2HYDZEKdXchlbkI8Edx/9FVvxJNoX+du5ufrfnneBfSxDYySvwAgCSGMYINIB3F0966C4OEXr35okXnsmhyqRXC2X/IY25WRtSGauTbIpd0b0AveBUCqun22wDXbHyWZS4lMh/9mxwB9VgTCUEpp2VSwtzOKzKIeuij1xyL7jGMtcW27RXYKUAvpAl1Ut838rdAA== 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=ZS11gx3EUON29X0Gh6vmCXpjvfu8VHSbegVXTjd0wZY=; b=krLBWfYpNhYO5TLU4sIIK4KSqtNwTzqv1FfagsWgLlIorVCcrD13WuGVXfY1ouNw7ACZmikZB25TOXkgvowWsslqj6KnGSIdCvwT4Kg2nVdiNnRJDbO2du4MsyulA0FsKlbSWGsL06cElRUZIDjI4tq+vp7HdxuyKmkgcBBIJDavd33KqoEr+Mmot3HKbAa3kLGAhpj4qN8V0+c9857vuUlmuUqgKvwv3kW+pbgHWwpjZREG1LcXvLYfm5bP+8GQAVnDtO7EtLzvlbwp+5REWraZKxlXpR9McYdReBDPhcckouhwAIQ9snDsrOG0zEd9XChnIPkfx+wLfUlZxGvg7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZS11gx3EUON29X0Gh6vmCXpjvfu8VHSbegVXTjd0wZY=; b=GLAFhSfxYn2+avzCC38lIU0InC3VkWdZMGjLnVi6HJZPP9cXJF7w5x5EkDV+Zh8pz+fb3KRCBKgBag5XhylGGv1FGRyjdYDN8SYbWtsT3lbNVZznZtmqoB6YIddegIOA3Up7lqJauWiqld2pqhKQKx5z7/5U6BELvuN8n8WcRno= Original-Received: from LO2P265CA0040.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::28) by CWLP265MB5907.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1cc::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13; Fri, 17 Feb 2023 07:25:33 +0000 Original-Received: from LO2GBR01FT015.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:61:cafe::66) by LO2P265CA0040.outlook.office365.com (2603:10a6:600:61::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13 via Frontend Transport; Fri, 17 Feb 2023 07:25:33 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Original-Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT015.mail.protection.outlook.com (10.152.42.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.13 via Frontend Transport; Fri, 17 Feb 2023 07:25:33 +0000 Original-Received: by semantical.co.uk (Postfix, from userid 5001) id AD3B6114003; Fri, 17 Feb 2023 07:25:32 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1676618732; bh=VuFg4dKemq+CAM7dP6nBtLrpRZAyZJv7cNWcuz07lQ8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=PwzL3r41IyfRy/5DDd+NAsTWWpynDaTn+sjEthxywjd3HHa0899OlrhBPQ19HbedN yOSWWL4pr+sM0YXNa0E1XYi1etfXFEu5/1mD2gb94UvrSWIz7cCPUS9Z9a2ASFwjO8 F7McCBVWEqnFkTvH5j/Z6MR5j3gfI/4EYvI9r3iQ= In-reply-to: <8335743jge.fsf@gnu.org> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT015:EE_|CWLP265MB5907:EE_ X-MS-Office365-Filtering-Correlation-Id: f4368dec-8a6e-4581-490c-08db10b827d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wwcprm2nQzGqyKArUroQX5TX74SvE6nuwzzBh474m6vNfojyoidZcjHs5+McBD15fLyWy2Ms2ba5fkHxxCr6yLItzSPbmLJbSzs3ZF4/Rl6l/xWa1aymSGpBB9U4I8gEoVyHj4aiSdIowM0o0d6OIgMLrII5fqn4GhUuPyciXzAvfjaL9X/yA7bVvsGYYRQpxeHuWtl5CnbD81tJBc88t9QptlcFdy7CSND+dRugIDSQDY2XrTojqGohQG4E16GJqR6tvGfVBYKyFB4rNpxSqCV89Jef7Yv6YDq78Ugkajr7D9XEUoaCdbxOw1G523Y+HnXc+dbUpJ4ARABhMVFG9g0yfwN/vceOId5u7kn09u38vlNw7Ocde9/i62AAoJFWo4f/CE3dhbLCETo/8hR/mBET4jBcoStylpx0nJthzOCBR6lA0Ygcld7Dphnnk04Yb0wgo/FF0cWoWR7j0/9fNYqVJHM0R5FyE2Ab6VzZoQRuR1bowYO6xkswaTnd9e36w0uKhzXG8YS8P7XARN8bXHCgvvvmR5WxuKuHGrV4YnboxyWBBpgsb6VmZbahg2tiUrli9ybF6I4rgmPbHeX72INX4iCHmN5VjQoODTdRPZv+THRAwlNXsTpRI0kQbq8Mxa12MZpru2GqDGxUq+rGQ0PepkbuIYY7X7QeTRxHOUqUf7wPvSMRBbbCKtM0FgnXkKlZdUKPPEqrwOmer1zil6Rt4pqI9+CKjh4JrTa0QUOW0WB1OAWUTBHESSAJh qkzSIgrJo/W7l6Cymc2d9lp5fuyI0rYU93KTT6zuH9P3/9NForp9xhzq7NUjoocUTFC X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230025)(396003)(136003)(376002)(39830400003)(346002)(451199018)(36840700001)(46966006)(36756003)(40480700001)(2906002)(6862004)(5660300002)(8936002)(70206006)(70586007)(316002)(36916002)(41300700001)(4326008)(478600001)(42186006)(8676002)(4744005)(86362001)(26005)(82310400005)(186003)(6266002)(6666004)(356005)(7636003)(83380400001)(2616005)(336012)(7596003)(47076005)(36860700001)(38230200001)(81973001)(23180200003)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Feb 2023 07:25:33.0839 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4368dec-8a6e-4581-490c-08db10b827d4 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT015.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB5907 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255859 Archived-At: Eli Zaretskii writes: >> Date: Thu, 16 Feb 2023 23:34:58 +0200 >> Cc: Eli Zaretskii , 61529@debbugs.gnu.org >> From: Dmitry Gutov >> >> +If no such node is found, but a leaf node ends at POS, it's >> +returned. > > Passive tense alert! This is better: > > If no such node exists, but there's a leaf node which ends at POS, > return that node. Thanks, everyone. I think it's safe to say I misread the intent of the function. It's safe to close this issue.