bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61001: 29.0.60; c-ts-mode: A recent update broke indent-according-to


From: Theodor Thornhill
Subject: bug#61001: 29.0.60; c-ts-mode: A recent update broke indent-according-to-mode
Date: Sun, 22 Jan 2023 10:49:36 +0100

Mohammed Sadiq <sadiq@sadiqpk.org> writes:

> A recent update in c-ts-mode broke indent-according-to-mode. Some test
> cases in my elisp scripts fails to succeed after a recent update.
> The indentation seems to work fine when editing C source files though.
>
> Minimal reproducible example (save to test.el):
>
> (let ((buffer (generate-new-buffer "temp.c")))
>   (with-current-buffer buffer
>     (c-ts-mode)
>     (insert "int main() {\n if ")
>     (indent-according-to-mode)))
>
> Execute the file with:
> emacs -Q -batch -l test.el
>
> Error log:
> Error: treesit-indent-error ("Couldn't find the preset corresponding to
> expression" c-ts-mode--looking-at-star)

Seems I missed one replace.  Better now?  Added a change to emacs-29
branch.

Theo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]