Subject: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4

From: Stefan Kangas <[email-masked]>
Date: Sat, 1 Mar 2025 20:41:04 -0800

Stefan Monnier <[email-masked]> writes:

>>> Thanks.  Unfortunately there are now new changes to python.el which again
>>> break Emacs < 30.  The file still mentions:
>>>
>>>> Package-Requires: ((emacs "24.4")
>
> We should probably bump this up, indeed.

I bumped the requirement to Emacs 26.3, which fixes some of the issues
reported here.  Let's see if we need to bump it even higher.

>> 2. Stefan Monnier added the call to `derived-mode-add-parents', which
>>    needs Emacs 30.1.
>>
>>    Stefan, can we avoid making that call?  Perhaps it should be added to
>>    compat?
>
> We can just wrap the call inside an `fboundp` test.

Thanks, I did that.