GNU bug report logs -
#66554
[PATCH] Add the public API of Compat to the core
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Sun, 15 Oct 2023 09:37:01 UTC
Severity: wishlist
Tags: patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Daniel Mendler <mail <at> daniel-mendler.de> writes:
> Philip Kaludercic <philipk <at> posteo.net> writes:
>
>> Daniel Mendler <mail <at> daniel-mendler.de> writes:
>>
>>> Philip Kaludercic <philipk <at> posteo.net> writes:
>>>> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>>>> The addition cab done procedurally, as in
>>>>>
>>>>> ;;;;####autoload (push (list 'compat emacs-major-version
>>>>> emacs-minor-version) package--builtin-versions)
>>>>
>>>> If this work, I like this idea a lot! I'll test it out to see if this
>>>> could simplify things.
>>>
>>> Philip, could we push (list 'compat emacs-major-version
>>> emacs-minor-version most-positive-fixnum)? Wouldn't this solve the two
>>> problems we have - no manual version bump and Compat could keep its
>>> current version scheme?
>>
>> Yes, I just tried it out and it works (and it doesn't work the way we
>> want it to without `most-positive-fixnum'):
>
> Thanks, your patch looks good. Stefan's idea of using an autoload to
> specify the version is nice. As Eli mentioned the Elisp manual should
> probably refer to the Compat manual, and maybe the change also needs a
> NEWS entry? Anything else?
I don't think we need anything else, so here is the updated patch:
[0001-Add-the-public-API-of-Compat-to-the-core.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
> Daniel
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 66554 <at> debbugs.gnu.org,
>> eliz <at> gnu.org, Stefan Kangas <stefankangas <at> gmail.com>
>> Date: Thu, 11 Jan 2024 20:43:11 +0000
>>
>> +;; To ensure that if the user has installed Compat X.Y.Z.A on Emacs
>> +;; X.Y, that the this file is preferred by package.el, we
> ^^^^^^^^
> Typo.
Thanks; I also rewrote the comment to explain what is going on.
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Cc: monnier <at> iro.umontreal.ca, mail <at> daniel-mendler.de,
>> 66554 <at> debbugs.gnu.org, stefankangas <at> gmail.com
>> Date: Fri, 12 Jan 2024 07:38:20 +0000
>>
>> The consequence is that we don't have to update any files, and I would
>> assume we don't have to document anything in make-tarball.txt, because
>> nothing has to be done when bumping the version of Emacs itself.
>
> Thanks.
>
> What happens when we bump Emacs version from NN.x to NN.x.90 or from
> NN.x.90 to NN.x.91? emacs-major-version and emacs-minor-version stay
> the same, but the Emacs version is bumped, and there could be changes
> in compat.el specific to the next release, NN.x+1 or NN+1.1, no?
Generally speaking, Compat only provides support for "proper" releases,
and not for pre-releases.
This bug report was last modified 1 year and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.