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

From: Stefan Monnier <[email-masked]>
Date: Sat, 01 Mar 2025 23:21:58 -0500

>> 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.

> 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.

        Stefan