From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75079: Default parser for treesit-explore Date: Wed, 25 Dec 2024 14:39:05 +0200 Message-ID: <86h66s0weu.fsf@gnu.org> References: <87zfkk191f.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 75079@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 13:40:24 2024 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 1tQQga-0008KM-FV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 13:40:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQQgH-0003jd-4Z; Wed, 25 Dec 2024 07:40:05 -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 1tQQgE-0003ht-Tt for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 07:40:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQQgE-0002XL-KD for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 07:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=wn0zzccpinU3aHPe1i0Az4a1/G3LS5JUUffPS9ovf+0=; b=biUhBmSZS4F/Ao1VHG/QxLJn1aabkFINpF1cktWYKEBcDiA7lFv4D2kwRRZM+GXoJToV5yXln4CxiqxdOOI5HaxDhRbBedlnVacPkShdhh18rOuef5w7VaWWP2joZBIt6+Kob8yMoVJW7Ej5sc95A6eZ+1R+gQ3OueBP6ZmepsYQwyqPaVHI/ixhvk7Z+IEAc8kN2GmGwdiwiWftp1yWRxMdvaBTigWet3Cuq/bDgCfPpmMeo3iiIb26XIbGb6WzIxCa4oJ/Ua3zIkMOQE/SJ3KYDNHN2j7QUAzIThqliBgeAGSpsofWbAarImCVVIxYhI4RQvMlOv69z4qmd/5Ygg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQQgD-000212-SG for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 07:40:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Dec 2024 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75079 X-GNU-PR-Package: emacs Original-Received: via spool by 75079-submit@debbugs.gnu.org id=B75079.17351303607674 (code B ref 75079); Wed, 25 Dec 2024 12:40:01 +0000 Original-Received: (at 75079) by debbugs.gnu.org; 25 Dec 2024 12:39:20 +0000 Original-Received: from localhost ([127.0.0.1]:36463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQQfX-0001zh-Oi for submit@debbugs.gnu.org; Wed, 25 Dec 2024 07:39:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQQfU-0001zO-KZ for 75079@debbugs.gnu.org; Wed, 25 Dec 2024 07:39:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQQfO-0002OV-8f; Wed, 25 Dec 2024 07:39:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wn0zzccpinU3aHPe1i0Az4a1/G3LS5JUUffPS9ovf+0=; b=g2/JGmmOKo+u 4Dy3MRHJDitzETKd/m2B4f6remkhNql7K5HHU4Rk08oAT55v/R48/yTet9y6xkqouPceLRcimiqdw AlCdGDDUyvGnTYdCGd6vapjrsD2cMEwqkjKVBJ97mwEAKwI5ZjMrJkSpJNhy31H8fX5GpwsmZGeMz xj2hb2GV90F6+tOTKvlWXR2it4vT/hxwqKp55JPXas4D4roOw9Ob2yB2yZeTPwhF7rPnNE3GB5Vxm R9RlhKOC981NeDI7Q0X5M+LsY+x+RqBTdzJvcm1yHUrjro2UH+lvKlGvNNjldzb/jGVHrzyjVV7CO 335fgHyx6/nwfmWGMLq8Lw==; In-Reply-To: <87zfkk191f.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 25 Dec 2024 09:56:20 +0200) 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:297731 Archived-At: > Cc: Yuan Fu > From: Juri Linkov > Date: Wed, 25 Dec 2024 09:56:20 +0200 > > @@ -3952,7 +3954,13 @@ treesit-explore-mode > (unless (memq 'treesit--explorer-tree-mode > desktop-modes-not-to-save) > (push 'treesit--explorer-tree-mode > - desktop-modes-not-to-save)))) > + desktop-modes-not-to-save))) > + ;; Tell `desktop-save' to not save minor mode. > + (when (boundp 'desktop-minor-mode-table) > + (unless (member '(treesit-explore-mode nil) > + desktop-minor-mode-table) > + (push '(treesit-explore-mode nil) > + desktop-minor-mode-table)))) That comment should explain _why_ we don't want desktop-save to save this minor mode. Otherwise it just says what the code does, which is not hard to understand by looking at the code. Thanks.