bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#75079: Default parser for treesit-explore


From: Eli Zaretskii
Subject: bug#75079: Default parser for treesit-explore
Date: Wed, 25 Dec 2024 14:39:05 +0200

> Cc: Yuan Fu <casouri@gmail.com>
> From: Juri Linkov <juri@linkov.net>
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]