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#60880: 30.0.50; tree-sitter `treesit-explore-mode' is buggy and does not behave properly Date: Tue, 17 Jan 2023 13:44:21 +0000 Message-ID: <87wn5ls2bu.fsf@masteringemacs.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="742"; mail-complaints-to="usenet@ciao.gmane.io" To: 60880@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 17 14:50:44 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 1pHmMN-000ATf-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Jan 2023 14:50:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHmLn-0006uT-Ek; Tue, 17 Jan 2023 08:50:07 -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 1pHmLj-0006mQ-PM for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 08:50:04 -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 1pHmLj-0005Sk-06 for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 08:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHmLi-0008Qr-H2 for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 08:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2023 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60880 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167396338732383 (code B ref -1); Tue, 17 Jan 2023 13:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jan 2023 13:49:47 +0000 Original-Received: from localhost ([127.0.0.1]:36120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHmLS-0008QE-Rl for submit@debbugs.gnu.org; Tue, 17 Jan 2023 08:49:47 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHmLP-0008Q1-92 for submit@debbugs.gnu.org; Tue, 17 Jan 2023 08:49:46 -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 1pHmLL-0006a3-0H for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 08:49:39 -0500 Original-Received: from mail-lo2gbr01on0706.outbound.protection.outlook.com ([2a01:111:f400:fe15::706] 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 1pHmLG-0005KQ-TD for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 08:49:38 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IMY5Z5GwV7YmpttdNrutzESwrOWih4Pt2886TcIq7F0HN+Sqz3KgC0HTmDmC/SMEfOUmwu2M2mlz+vCgI2YkpsgZszT6+tTYOvrFJ5/jpg3Y6sucu4BjRPBqPYRT7MW76/xgFFHlfRDMnw0I4RFI9ij9azn2zzdKXzpJpsYhnoSKPNLUiKQdoaO4uopeeA/WY7CqqhdZg0vwiQWpFJaO8xNzNUNlamOdSRMQysl6fI/8SbXOKMaK1laIG0l4YfSPAKIFKC1+Ud0u6LtTI42h3Pt+d5U7i+SUgm4c2zKHO5q4Wrrfjz9xshRChzGxozAufDpjRbOJS4oCoD+Zh46Kaw== 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=tUgpzQTsmFAhNZmkAjhGEr+9xDGBSAGG77cO72VpGZI=; b=fU7krpfhbGWw0CUzc0wmj2hkRbqbhY+9c4bs8j7GDdn4VmW1EmZKxie4zRvO9GHBeKhpbgolwm2HBMZxtYjBxo/CMWAlY9ZeMIZdhheojwPJcghyp8qQ1RMmE6JlpYIv9ieFrlqNXDus2npJ5EjektAZdfFxG7UpxrhVcS0YNdKQQ8ozt7Z7uQIbv0mGsAAxxNEIvI/63MkpPuP6wFhlN/PqERwo1HTExvjTEAVH6ElWAdv7PTTzmEEbR5uZ79mLvxs5aTuVL66///+XnO7wEdlmld2TGor/8FZeNjjT+UCo9gljcxfdbwKe5slSpueQ03c1Tw6q9Wp2FlEM3J194w== 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=tUgpzQTsmFAhNZmkAjhGEr+9xDGBSAGG77cO72VpGZI=; b=eTipvWb50AS6WqI6JmtjccnqOL5pOBbIMt4E4tjBJa0PB2SlsE8/l4U3YusRADPW0XjInEkr1mgoe/5Gc1qVDFXE3jMUWsNGXVab8htjbXZ7Alc0wtwyBbTf75cC7AlBu6x1/oduIJYLo7YJ2IBKoFjARjvvF+jRb8W4v9F59bQ= Original-Received: from LO6P123CA0059.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::17) by LOYP265MB1791.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Tue, 17 Jan 2023 13:44:29 +0000 Original-Received: from LO2GBR01FT024.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:310:cafe::90) by LO6P123CA0059.outlook.office365.com (2603:10a6:600:310::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Tue, 17 Jan 2023 13:44:28 +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 LO2GBR01FT024.mail.protection.outlook.com (10.152.42.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13 via Frontend Transport; Tue, 17 Jan 2023 13:44:28 +0000 Original-Received: by semantical.co.uk (Postfix, from userid 5001) id 2F1B2114002; Tue, 17 Jan 2023 13:44:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1673963068; bh=tUgpzQTsmFAhNZmkAjhGEr+9xDGBSAGG77cO72VpGZI=; h=From:To:Subject:Date:From; b=e2ntdwQPSrSxH+3RdmByWR/9yFHxQhe/CACId1UVBTMhgnGvBFHw+rP0bT5paST6N VWDPxuLIrc64sykxEUKP+MC/3+Qob/cRd0xgpdUjvWDxLR9eSnQ7yJqqcno/0gqjBu UtsXrv00HCcy6EXTExlY+k33ACLCEUaidotBe3wQ= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT024:EE_|LOYP265MB1791:EE_ X-MS-Office365-Filtering-Correlation-Id: 31d2fef5-da98-48e5-a84a-08daf890f462 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8OfyT8+/xDiyxU0Et0HiHM6FenP8JADeLiq9v55beqZEOF8grbTbeWTrFNs3sijssdwhDXpDm9F3tHmQAtLTvFsWGYfHMwR/T21ryPZrO/D4awXYdjgLeZVZlNjwdhVcuvTV1DW3B/yc7DbYA7/jCvp8up0AjYBulGUlSR6bHTbSwrFR5g4e2T4vBaemncn+SxNkoeSB4NOw2D+vfDb7w8Q5bM1foLvr0kWj4NHfLc5+TYLgfTfdx4BNqNpH8qtaATX0jnr58+hcDsSXwowTqdbCdVmePQD6alA3epX1/ou8vNzzvIJsk8o5nj7WcLfteXyvyDglyamvWKIaydf5xWU+TiCWSeUF0DyVzjpTlsZEcz7kKQL3a1u3aR1LpNkPUGqzuBmgBcME9aBZnktMpzt80BPVcicIIX92cavb0SimZJoxECJigUlJ8HiWYKgfpYWlhHJ1LWcJtqd0PUBlzCSO6vOcEYsQCrimgh/FWl28JcGznBiitJtugT+Z+XUg2YD+Q4yzEl+ij80ruuEA/xFz09CWOUr04ofL1rDxq1ClKUU8rgDNOJwaWgTIPY4n62OfuffDD3w8c6p0jFB9j1M0dOED5frCUXClfHUoWeQx7F5SEyD2oa/FiUsWZphn7J6MbEobLdd94/5Ax3XMaKJQ0wqCamwhqCINyMqlDeQgni/eWRhtRFrhuxm265TqtVjBtPT3fPImV0hf+Tnzm6euNnjwSTxxtnhXfPQ5ALZgXyfFEf2boj3Kv3U6i XApXDkAnIWi5Mp/nVb48WoQDw== 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)(346002)(396003)(136003)(376002)(39830400003)(451199015)(36840700001)(46966006)(82310400005)(36756003)(86362001)(6916009)(186003)(26005)(41300700001)(8676002)(70586007)(70206006)(6266002)(2616005)(47076005)(316002)(7596003)(6666004)(478600001)(2906002)(42186006)(7636003)(356005)(5660300002)(36860700001)(336012)(8936002)(40480700001)(38230200001)(81973001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 13:44:28.4806 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31d2fef5-da98-48e5-a84a-08daf890f462 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: LO2GBR01FT024.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LOYP265MB1791 Received-SPF: pass client-ip=2a01:111:f400:fe15::706; 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-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:253551 Archived-At: A medley of issues here: 1. Executing `treesit-explore-mode' on a buffer with no valid grammar support causes the minor mode (and playground buffer) to stick around and "load" anyway. 2. Bailing out of the grammar prompt does not, in actual fact, stop explore mode from proceeding. Instead it creates an empty buffer and it still engages the minor mode. 3. Killing the playground buffer does not remove the explore mode buffer. 4. treesit-explore-mode is stored against a buffer during `desktop-save' (and subsequently read with) `desktop-read'. Thus broken buffers or files inherit the explore mode. This is especially pernicious due to #1, #2, and #3. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2023-01-17 built on mickey-work Repository revision: bb383a54910c3094e5d228e0af62bf70e36203ca 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'