Subject: bug#75079: Default parser for treesit-explore

From: Eli Zaretskii <[email-masked]>
Date: Wed, 25 Dec 2024 14:39:05 +0200

> Cc: Yuan Fu <[email-masked]>
> From: Juri Linkov <[email-masked]>
> 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.