From unknown Fri Aug 15 03:57:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60696 <60696@debbugs.gnu.org> To: bug#60696 <60696@debbugs.gnu.org> Subject: Status: 30.0.50; tree-sitter: node representation breaks `pp-buffer' Reply-To: bug#60696 <60696@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:57:13 +0000 retitle 60696 30.0.50; tree-sitter: node representation breaks `pp-buffer' reassign 60696 emacs submitter 60696 Mickey Petersen severity 60696 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 17:06:58 2023 Received: (at submit) by debbugs.gnu.org; 9 Jan 2023 22:06:58 +0000 Received: from localhost ([127.0.0.1]:38342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF0IE-0003Ae-3w for submit@debbugs.gnu.org; Mon, 09 Jan 2023 17:06:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:57450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF0IC-0003AU-99 for submit@debbugs.gnu.org; Mon, 09 Jan 2023 17:06:56 -0500 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 1pF0IA-0001WC-W7 for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 17:06:56 -0500 Received: from mail-lo2gbr01on071b.outbound.protection.outlook.com ([2a01:111:f400:fe15::71b] helo=GBR01-LO2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pF0I8-000159-4X for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 17:06:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWZ8q14wa1q9RZzcx+qzr3APovKtEE9LpZAQ1314NiZjDiv7tmNErGFuz7I0LBh3fyNsOV3KKtktdWaWwODgsp8uhmDCG+zN+mqzb9aiP400QUcWESrxyR5Q3cFbuSRVbNNE4yDHXPi/knQVcYnUu5cBaQbFO3avloj531lc0GK2vsjZROqysTJdDAvFL+qcWe8lQIE1XxBKH/xv7sGOhcUqXSt6qxbPfqAJNWSd7dehK6AAjl/T0Alr6bWF1LpE6Nb7woiVDXVJ7xkIzIol2akhBJ3/Ajrjrb95cQgiGJ3g6qcA0MwrK1hpb8kxaXEryUADi66MxNcWG3ARYyxUCQ== 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=vnAritKfvvMNeZeJXk+Lm//Bt22leyAZQznIYiz81wY=; b=hYNfDZZzLu+xbHk1GY9kbZ/uePmUP56cPzGZiWgQ6rCBUaoULWLXk1x6UshmupdF4eBFhK6rgTLSr/IeFe1uf4hTqUuZuxxeLwRsKPw1X8V1q7AtQZjFSxSVRJSJ082dTQllhlCmdUblbBB70kLwV5DUhzu+CFNDeX5ZP7WCJwDSLuWog2cFJhG50pbXaCy3fB9yEk+0toFTs+J8WTZ7/b7Im6RivHfech1Dn1sGMGmJOoUILsFiRbyFtNhvSTCnAHqL9tvQzYnjb5lHqIRicoOR2Wi4KVeyvmuCif5Kdwb8WKIwNxqZ3tTxXkCHTGIcoTJwmGxgLe3KIQd+QhHEWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=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=vnAritKfvvMNeZeJXk+Lm//Bt22leyAZQznIYiz81wY=; b=wP0e4gkDDoepXSe0F3VBQW6Xjl4lWFfHrfGrYgeY67sVd8qhW39TKMy3JIkUxAaaovIjokOVVf6NgBGnLFvJmzDGyLEifkNip13z1P6hcwsmDiIxJ1H2hG/tk1UMqLAgUJ1L22sKSQsOpiTzDgkaZ5O+DDUlDoo75BrDrbYK/3A= Received: from CWLP265CA0478.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18a::22) by LO2P265MB5602.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:25d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Mon, 9 Jan 2023 22:01:47 +0000 Received: from CWLGBR01FT041.eop-gbr01.prod.protection.outlook.com (2603:10a6:400:18a:cafe::73) by CWLP265CA0478.outlook.office365.com (2603:10a6:400:18a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Mon, 9 Jan 2023 22:01:47 +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 Received: from semantical.co.uk (178.79.136.144) by CWLGBR01FT041.mail.protection.outlook.com (10.152.40.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Mon, 9 Jan 2023 22:01:47 +0000 Received: by semantical.co.uk (Postfix, from userid 5001) id 02500114002; Mon, 9 Jan 2023 22:01:47 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1673301707; bh=2m7DWmM4Pxcqc8DhbR9t5FxmxGG3L1+6YmVHrw0bHPA=; h=From:To:Subject:Date:From; b=s6vyKSNnxsPJex6iNDAGWVg+ufm2vjXg3Kf5cwEjyKTP/REyTgxTPfnLKgm3Ozx1D rkobAU/9cyJNV+0sE+RTRNOdDI1a+ddNEKqGiBWVAE6MZJXSrav3Xwf5RJAb9zxhFj 5QOAyc3wOoYOnfuF6Z8JU/xHEoxBvbdSPAJILEUU= X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on semantical.co.uk X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 From: Mickey Petersen To: bug-gnu-emacs@gnu.org Subject: 30.0.50; tree-sitter: node representation breaks `pp-buffer' Date: Mon, 09 Jan 2023 22:01:40 +0000 Message-ID: <874jsztliz.fsf@masteringemacs.org> Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLGBR01FT041:EE_|LO2P265MB5602:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 03124d86-d551-4f9b-adba-08daf28d1a64 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g+EoMgf/13BCPtAnUN5KS7DKLz+OR6s4J17rXsHvapGTv8byGmOCHgeUTlfWVdA+eyS/f9Be/+RdBWiwmcutrwHb7I5DluQ/KZbsAVHxy2vSUDCX294hP7gQF6WcomQr/MQ4/Ag60m4UajxJhfu3ENuh6Sr/84WHhcL7QV4psTFyMt7NINL1uScfA5Nj2pFQzvLkaNMWJqkR6eee4vbDPYqg2LGsYV7vnS/iLvgdAnDppo0J+wKYd8uA0cYnOqPJ4kBV79MJYsfckbJOKo9047Q7FQr1PslKvgDnjjZYVa39efDkS9bc50Os1imxuFyZ7HKmUpYCIfWlpU8xdHyPWOgMF2vzuYP4ABjC3LYGVQ0OFmmnuDY4ePCjbPb8hJWBed5fVDv+Vu09dOCxFzfdBevRqJ9eUnR4tQErywscE4QlOYiH+py+23P911FNmfgI7VXvHUv+yaBGJUy6TpOKoSwaUctPWWRJv6RIqUEtNcQjYpC3+fTOV49vLW1aPSsk/UyQ53dv2nKW2QbW5y0jTNK+wYksCjh4wNsD+aDxMLUkQmFBODpb2XGXeubVfKtf0ZlFg30Hr6HW1BOKYlIXSsDbiye2eDVB+t7JenkMrSEhkwDqWZxpa3o473+Lw3Nhy/lbzlbKIBWRfk8O7pgw/qFjJknlM2PgA3+5HR15j37sGwikhGeYlcq7Jsy8SWCBuPbG91d9cUxWB1OzvkIRTC57AAjFJwZa2ytknIiWbicy0aaFhOht7Gg/dLJOGHLxfnGTb1L0eOPu+IRQw3rDyA== 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:(13230022)(396003)(39830400003)(136003)(346002)(376002)(451199015)(46966006)(36840700001)(4744005)(316002)(5660300002)(40480700001)(26005)(186003)(478600001)(6266002)(2616005)(41300700001)(47076005)(336012)(6916009)(70586007)(70206006)(8676002)(82310400005)(8936002)(83380400001)(42186006)(86362001)(36756003)(6666004)(36860700001)(356005)(2906002)(7596003)(7636003)(38230200001)(81973001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2023 22:01:47.3150 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 03124d86-d551-4f9b-adba-08daf28d1a64 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: CWLGBR01FT041.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO2P265MB5602 Received-SPF: pass client-ip=2a01:111:f400:fe15::71b; envelope-from=mickey@masteringemacs.org; helo=GBR01-LO2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Nodes appear pretty-printed like this: # Because `pp-buffer' uses `downward-list' and `upward-list' to determine list boundaries and where to line break. The solution is to perhaps consider using a different notation than `(block)' in the printed representation of the object. (Or make `pp-buffer' much smarter, but that is perhaps far more work.) In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-01-02 built on mickey-work Repository revision: c209802f7b3721a1b95113290934a23fee88f678 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.3 LTS Configured using: 'configure --with-native-compilation --with-json --with-mailutils --without-compress-install --with-imagemagick CC=gcc-10' From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 09 23:19:05 2023 Received: (at 60696-done) by debbugs.gnu.org; 10 Jan 2023 04:19:05 +0000 Received: from localhost ([127.0.0.1]:38477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF66L-0006aA-1U for submit@debbugs.gnu.org; Mon, 09 Jan 2023 23:19:05 -0500 Received: from mail-pg1-f174.google.com ([209.85.215.174]:37760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pF66J-0006Zd-5V for 60696-done@debbugs.gnu.org; Mon, 09 Jan 2023 23:19:03 -0500 Received: by mail-pg1-f174.google.com with SMTP id v3so7381425pgh.4 for <60696-done@debbugs.gnu.org>; Mon, 09 Jan 2023 20:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=IfM9U75dpjfkwVepaDpnDpfXFgmA4WE4WxhzPCwN8ak=; b=PZ6J8+v+N/3dbtlRFr5xz5SaB6wilPeyPIqswd7n94cUATvmHiJKohKB/pSCDgRQn4 IDVRDfmavdl9nu4b/+HiRKqm0vH9b7Wy2Jxm+FfFBzQUgdwu/usNttyrHYyAG8vpKWDa oBqrtD9hqK0vGMwIlXIuiNEIanMZ6C9x/7GAAL2VzsDqxs1MzyitsZyEYkalwv3ArubG dcD7xvakUc5atfbQDtc5VTZtVTYLmGtazNkWuIRNv7Iv0SgypORK8gdqqiyJnbDrQUu9 AgBsAPKVX1aAg1nfuln9M6bksKl5gIs9zT7ydpwN7WiRUs/zwRKtfNDEwQNGrSJZfZce eAMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IfM9U75dpjfkwVepaDpnDpfXFgmA4WE4WxhzPCwN8ak=; b=QGn/vsc1SeiLQKFPdesDvZTtx9ioCipvKXvT7OSXFp0VxBfzgvIkFF2jtiqFKzo8ID MCFjc2RYHuw4E8H0BWykIU0s6nYSsIw2pbYY8pPyWMM9+Cvcj60Czt7r0l0KySI/u5Gx hVEx5orYGpvuNEx7HDbfQ8Sk05iS4zDCfX2Al8oluZ/Eo7XGGAmkT6swD8k7mYTgS8s9 IbL+K2EaabsCgbMS+X8dLU/MVxFtf5YWVnAGo/dgWQs1nOoUOLePa3uQOscEFcsoJW00 N1vlxpJ6KXfo12oj3dUzOAT5CDK6tbC9xpcikrNzvnzVc22vaRyFMGcB3PkpCzNzuST3 ti2Q== X-Gm-Message-State: AFqh2kpThsc01gqslmjAJ2/lmOVhTPW2MGAErVUZs3JYOnAnvZ8xBLDd 9tCVdXKnU9hSIaXTP7ppyKM= X-Google-Smtp-Source: AMrXdXvjwtWBcJGjSZ0HAawtgLffkGY+oH25OwTMTcxPCVSYz66svpOZ9WgxMWjjrfoXcE0gJfkMsQ== X-Received: by 2002:a05:6a00:4398:b0:582:7675:8b5a with SMTP id bt24-20020a056a00439800b0058276758b5amr28578641pfb.33.1673324337302; Mon, 09 Jan 2023 20:18:57 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id n14-20020aa7984e000000b0056be1581126sm7078532pfq.143.2023.01.09.20.18.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2023 20:18:57 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: bug#60696: 30.0.50; tree-sitter: node representation breaks `pp-buffer' Message-Id: Date: Mon, 9 Jan 2023 20:18:55 -0800 To: Mickey Petersen X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60696-done Cc: 60696-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mickey Petersen writes: > Nodes appear pretty-printed like this: > > # (block) > in 159-173> > > Because `pp-buffer' uses `downward-list' and `upward-list' to > determine list boundaries and where to line break. > > The solution is to perhaps consider using a different notation than > `(block)' in the printed representation of the object. (Or make > `pp-buffer' much smarter, but that is perhaps far more work.) I see, and I guess using parenthesizes inside an object could break = other things. Although I like the correspondence between query syntax and printed node type [1], it=E2=80=99s probably better not print parenthesizes inside an = object. Now that node is printed as # [1] (block) -> # ";" -> # Yuan From unknown Fri Aug 15 03:57:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Feb 2023 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator