Subject: Re: bug#60880: 30.0.50; tree-sitter `treesit-explore-mode' is buggy and does not behave properly

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Jan 2023 15:13:56 +0200

> From: Juri Linkov <[email-masked]>
> Cc: Yuan Fu <[email-masked]>,  [email-masked],
>   [email-masked]
> Date: Fri, 20 Jan 2023 09:59:09 +0200
> 
> > I don't think the desktop-save part is correct: the test should be at
> > desktop-read time, not at desktop-save time.  Because the fact we had
> > the language available when we saved the desktop doesn't guarantee we
> > will have it available when restoring that desktop: it could be in a
> > different build of Emacs or even on a different machine.
> 
> When the buffer is not saved, then it will cause no problems when restoring.

But users can expect the buffer to be saved and restored, when that
presents no problems.  We cannot unilaterally decide they cannot
expect such buffers with their modes being restored.