From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: casouri@gmail.com, 75079@debbugs.gnu.org
Subject: bug#75079: Default parser for treesit-explore
Date: Wed, 25 Dec 2024 14:39:05 +0200 [thread overview]
Message-ID: <86h66s0weu.fsf@gnu.org> (raw)
In-Reply-To: <87zfkk191f.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 25 Dec 2024 09:56:20 +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.
prev parent reply other threads:[~2024-12-25 12:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-25 7:56 bug#75079: Default parser for treesit-explore Juri Linkov
2024-12-25 8:36 ` Yuan Fu
2024-12-25 17:54 ` Juri Linkov
2024-12-25 20:08 ` Yuan Fu
2024-12-25 12:39 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86h66s0weu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=75079@debbugs.gnu.org \
--cc=casouri@gmail.com \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.