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

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 02 Mar 2025 17:56:02 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75526: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75526
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4
From: Stefan Kangas <[email-masked]>
To: Stefan Monnier <[email-masked]>, Philip Kaludercic <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked], JD Smith <[email-masked]>
Date: Sun, 2 Mar 2025 09:55:23 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 31.1

Stefan Monnier <[email-masked]> writes:

> We definitely don't want to translate those into fontlock.
> AFAIK, there are just two ways to solve this:
>
> - Bump package-requires to Emacs-29.
> - Use (require 'treesit nil t) and than sprinkle enough `fboundp` tests
>   around treesitter code to allow loading `python.el` into Emacs<29.
>   It's perfectly OK if `python-ts-mode` doesn't work in Emacs<29.
>
> Bumping package-requires to 29 might not be a bad idea since noone
> complained (until now) in the 2½ years since we added (require 'treesit)
> to the code.

True, so let's just save us a ton of headache:

I have bumped the requirement to Emacs 29.1, which fixes all the
outstanding issues reported here.  With that, I'm closing this bug.

Subject: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4
From: JD Smith <[email-masked]>
To: [email-masked]
Date: Sun, 12 Jan 2025 16:45:58 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

The TS support in python.el breaks versions of emacs prior to v30, since it calls the recently introduced macro `treesit-declare-unavailable-functions`.  The header still notes:

;; Version: 0.28
;; Package-Requires: ((emacs "24.4") (compat "29.1.1.0") (seq "2.23"))
;; Maintainer: [email-masked]