[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package Requiring a Commit?
From: |
Jai Flack |
Subject: |
Re: Package Requiring a Commit? |
Date: |
Thu, 05 May 2022 07:46:56 +0000 |
Filipp Gunbin <fgunbin@fastmail.fm> writes:
> On 04/05/2022 11:44 +0000, Jai Flack wrote:
>
>> Greetings Emacs Developers,
>>
>> Is there a preferred way for a package to Package-Requires on an Emacs
>> version more recent than the latest release? The context for this my
>> package isearch-olc [1] which I would like to finish testing and submit
>> for inclusion in GNU ELPA soon, however it requires
>> lazy-count-update-hook which was only introduced in a recent-ish commit.
>>
>> Is the preferred solution to check for special-variable-p and error
>> (possibly message on load and error on mode enable) if it hasn't been
>> defined yet?
>
> This should work, just use next version:
>
> ;; Package-Requires: ((emacs "29"))
>
> Then people running Emacs which was built recently from master will be
> able to install your package, because they're "already on 29".
>
> Filipp
Thanks that solves one of the issues. Is there no good solution to the
other? I can imagine some users building from master for a specific
feature (say, PGTK) and then not updating.
--
Thanks,
Jai