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


Message #67 received at 75526-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>,
 Philip Kaludercic <philipk <at> posteo.net>
Cc: mail <at> daniel-mendler.de, casouri <at> gmail.com, 75526-done <at> debbugs.gnu.org,
 JD Smith <jdtsmith <at> gmail.com>
Subject: Re: bug#75526: python.el uses treesit-declare-unavailable-functions
 despite requiring emacs >v24.4
Date: Sun, 2 Mar 2025 09:55:23 -0800
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.




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.