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: Philip Kaludercic <philipk <at> posteo.net>
To: JD Smith <jdtsmith <at> gmail.com>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, Yuan Fu <casouri <at> gmail.com>, Stefan Kangas <stefankangas <at> gmail.com>, 75526 <at> debbugs.gnu.org
Subject: bug#75526: python.el uses treesit-declare-unavailable-functions despite requiring emacs >v24.4
Date: Fri, 28 Feb 2025 08:34:04 +0000
JD Smith <jdtsmith <at> gmail.com> writes:

>> On Jan 28, 2025, at 10:00 PM, Yuan Fu <casouri <at> gmail.com> wrote:
>> 
>> 
>> 
>>> On Jan 27, 2025, at 10:55 PM, Daniel Mendler <mail <at> daniel-mendler.de> wrote:
>>> 
>>> Yuan Fu <casouri <at> gmail.com> writes:
>>> 
>>>>> On Jan 12, 2025, at 10:19 PM, Yuan Fu <casouri <at> gmail.com> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Jan 12, 2025, at 3:58 PM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors <bug-gnu-emacs <at> gnu.org> wrote:
>>>>>> 
>>>>>> Stefan Kangas <stefankangas <at> gmail.com> writes:
>>>>>> 
>>>>>>> JD Smith <jdtsmith <at> gmail.com> writes:
>>>>>>> 
>>>>>>>> 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: emacs-devel <at> gnu.org
>>>>>>> 
>>>>>>> Maybe this could be fixed in compat?
>>>>>> 
>>>>>> Yes, we can add the macro `treesit-declare-unavailable-functions` to
>>>>>> Compat. But python.el needs to `(require 'treesit nil 'noerror)` instead
>>>>>> of `(require 'treesit)`.
>>>>> 
>>>>> Oops, sorry about that. I didn’t know python.el is on ELPA. Let me know if there’s anything needed from me.
>>>>> 
>>>>> Yuan
>>>> 
>>>> Any progress on this? I can add it to compat.el if no one is available right now. Compat.el is on savannah, right?
>>> 
>>> No, this is too early. Compat-31 is still far away.
>> 
>> Thanks. I reverted the change in python.el
>> 
>
> Thanks.  Unfortunately there are now new changes to python.el which again break Emacs < 30.  The file still mentions: 
>
>> Package-Requires: ((emacs "24.4") 
>
>
> It now uses the Emacs 30 only `derived-mode-add-parents'.  If
> python.el is going to be developed primarily on master, it should
> probably be removed from MELPA or at least use compat.  I'll take this
> up with them.

python.el is on MELPA? (and it /does/ use Compat!)  But note that Compat
doesn't implement everything, IIRC this includes
derived-mode-add-parents.

> JD




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.