GNU bug report logs -
#56407
29.0.50; desktop.el shouldn't be saving/restoring eglot--managed-mode, which is not for interactive use
Previous Next
Full log
Message #71 received at 56407 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Wed, Jul 6, 2022 at 2:53 PM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> João Távora <joaotavora <at> gmail.com> writes:
>
> > Why is it the easiest one? Because I've just remembered an obvious
> > drawback of the symbol-property approach: it will only work on Emacs
> trunk,
> > _unless_ we make the little dance (that I've done a few times) of making
> > desktop.el a GNU ELPA :core package and making eglot.el depend on
> > that package (which is different from _requiring_ the load of that
> package).
> >
> > Lars, what do you think?
>
> Hm, I'd forgotten that eglot was also an ELPA package.
>
> Making desktop a :core package is fine by me, but you're right that it'd
> be easier to use with-eval-after-load here. (I'm still in favour of
> adding the symbol-plist thing for desktop as a more long term solution,
> but we can do both.)
>
Yeah, the problem is if desktop.el uses recently added features of
some _other_ library. Then I'd have to add that one to :core as well,
or somehow clarify the supported uses of desktop.el in that context.
I don't have time for that, so I think I'll go with `with-eval-after-load`
in
eglot.el and call it a day.
João
[Message part 2 (text/html, inline)]
This bug report was last modified 2 years and 347 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.