[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with desktop.el after reecent local-mior-modes changes
From: |
Andy Moreton |
Subject: |
Re: Problems with desktop.el after reecent local-mior-modes changes |
Date: |
Fri, 12 Mar 2021 19:10:40 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
On Fri 12 Mar 2021, Lars Ingebrigtsen wrote:
> Andy Moreton <andrewjmoreton@gmail.com> writes:
>
>>> Presumably the `override-global-mode` was compiled with Emacs-28, so
>>> when you use it with Emacs-27 you get into trouble.
>>
>> Thanks Stefan, that is indeed the problem: the reference was in
>> bind-key.elc. I must have updated the package recently while running
>> emacs built from master.
>>
>> Is there a general way to avoid this kind of problem ?
>> Perhaps I need to use separate elpa dirs for each emacs version.
>
> I think `define-minor-mode' could be more helpful here -- that is, it
> could check run-time whether the variables in question are bound. This
> should fix this problem when moving between Emacs versions.
>
> I think I'll make that change to Emacs 28 now.
Thanks Lars, this seems to fix things without the need for any
workarounds.
I tested by reinstalling the bind-key package in emacs-28, and checking
that bind-key.elc has a reference to local-minor-modes. After that the
desktop restore works without complaint on emacs-27.
AndyM
- Problems with desktop.el after reecent local-mior-modes changes, Andy Moreton, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Lars Ingebrigtsen, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Lars Ingebrigtsen, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Andy Moreton, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Stefan Monnier, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Andy Moreton, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes, Lars Ingebrigtsen, 2021/03/11
- Re: Problems with desktop.el after reecent local-mior-modes changes,
Andy Moreton <=
- Re: Problems with desktop.el after reecent local-mior-modes changes, Lars Ingebrigtsen, 2021/03/12