#1140604 emacs: tree-sitter query incompatible with tree-siter 0.26.x

#1140604#5
Date:
2026-06-23 10:54:20 UTC
From:
To:
The tree-sitter patch included in 1:30.2+1-4 fixed building, but the
tree-sitter query supported in Emacs 30.2 is incompatible with
tree-sitter 0.26+. More details in [1].

I have backported the suggested patch from upstream[2], and adapted to
the Debian version. Tested in a docker image that the syntax
high-lighting is working now (tried source code in C, C++, Python, and
Java). Please find in the attachment.

(Note: I'm using important severity to avoid blocking Emacs migration,
which may further delay the tree-sitter transition. Please feel free to
adjust.)

[1] https://github.com/doomemacs/core/issues/8746#issuecomment-4233133006
[2] https://gitlab.archlinux.org/archlinux/packaging/packages/emacs/-/blob/30.2-3/02_all_ts-query-pred.patch?ref_type=tags

#1140604#10
Date:
2026-06-25 22:49:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
emacs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1140604@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rob Browning <rlb@defaultvalue.org> (supplier of updated emacs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 25 Jun 2026 12:37:45 -0500
Source: emacs
Architecture: source
Version: 1:30.2+1-7
Distribution: unstable
Urgency: medium
Maintainer: Rob Browning <rlb@defaultvalue.org>
Changed-By: Rob Browning <rlb@defaultvalue.org>
Closes: 1140604
Changes:
 emacs (1:30.2+1-7) unstable; urgency=medium
 .
   * debian/rules: fix the periodic pstree that detects hung tests.  Make
     sure the periodic reporting is killed after an hour so that we don't
     hold up the buildds (which let a build continue if it's still
     generating output), and generate the pstree of the testing command,
     not the pstree loop.
 .
   * Support Tree-sitter 0.26 queries.  The newer version changed the query
     syntax, so add
     0028-Change-tree-sitter-query-predicate-names-bug-79687.patch to
     include the upstream accommodation.  Thanks to Xiyue Deng for
     reporting the problem and finding the upstream fix. (Closes: 1140604)
Checksums-Sha1:
 0fe1495f420f13e4e116ca3044ecc673c95a8975 3764 emacs_30.2+1-7.dsc
 1ff51c16f6521194349ddd6d08560d9ce651278a 77628 emacs_30.2+1-7.debian.tar.xz
Checksums-Sha256:
 9682b90370dea3365897a2fccf4d24b5c11010b9ddb66f0fd753832a534dcba1 3764 emacs_30.2+1-7.dsc
 785ca226a7e8fad47cea923254215606a279f5d3bab2b6c2096824e326b9a2a0 77628 emacs_30.2+1-7.debian.tar.xz
Files:
 0217a49d0317117c884bbb3dd6abcc46 3764 editors optional emacs_30.2+1-7.dsc
 fefc7892cf96b4ad6c9dd85149f4debf 77628 editors optional emacs_30.2+1-7.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEPTFSABe5ruOuhW+97vEWxVpaQvEFAmo9q5cVHHJsYkBkZWZh
dWx0dmFsdWUub3JnAAoJEO7xFsVaWkLxrzsP/1prMONEYR1DNhUdSFNZ+XCZxwJD
AFA/tC55PzX44EV0jUHapUWY+QbVwlg0u/WYGauW3xE7Fv3Y70oweewbEawXDNsb
ZJBXqZGsjd+ASApWQNzR16L+JQmiGRdwTqW5gl4UTTSiAvcRPiVrZ4njp+lq+XIz
S1r+nJ1UUVEaaWHomXVpC3aGnp/80DBw89oKMp301iXBHAvaoaIQ15nTcoRX7+fz
L7nWx1R4cCHCb0sht0kL5lEerU/k/PYeoogQWM6OJi9cD9210HgGNofFNwxqLFIC
IsFHTyersnezRDq1mU1YrmFivMje93dDLj2YEBA3plX0vpkJFnZqpMbiOuDpIqg5
GrU1ldGgfd0pE6SBIAkKPp9UtwPMSleJXPxNr/PaDM5P3+7ZETAfn5ZLvBEW9Sop
X0QMpvxL8XpeZK4Fst7Cn2lMdKNndnkcRxg9vXkicz930FepjfR3nxbdSQStZj+6
9CzB00GJg5o/7u/6V2wgXbH3gHD+RLXt7uifzK5Cue1p2FBijCUKwZe4l9buRuwx
ZoBNt25wO7haG0iTle2fAqb0Of0MzsxP93XQMy12t6tapuWlIUj0O7nkZi8taJVT
cbwOnIZy5bNMIUE9h/mWFgQffG1X8yTOyUEdLOeZh3Pmg6V6bXGWIKsHiesqgT8H
ffUIM1eTU5mtnnV1
=7Z/0
-----END PGP SIGNATURE-----