GNU bug report logs - #75526
python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4

Previous Next

Package: emacs;

Reported by: JD Smith <jdtsmith <at> gmail.com>

Date: Sun, 12 Jan 2025 21:47:02 UTC

Severity: normal

Fixed in version 31.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: mail <at> daniel-mendler.de, Philip Kaludercic <philipk <at> posteo.net>, 75526-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, JD Smith <jdtsmith <at> gmail.com>
Subject: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4
Date: Tue, 4 Mar 2025 15:22:38 -0800

> On Mar 2, 2025, at 9:55 AM, Stefan Kangas <stefankangas <at> gmail.com> wrote:
> 
> Version: 31.1
> 
> Stefan Monnier <monnier <at> iro.umontreal.ca> 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.

Thanks! Saves a lot of headache indeed :)

Yuan



This bug report was last modified 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.