unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Mohammed Sadiq <sadiq@sadiqpk.org>
Cc: 61001@debbugs.gnu.org
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	[thread overview]
Message-ID: <87o7qq7vbj.fsf@thornhill.no> (raw)
In-Reply-To: <cc5c1d923be5649bbcfa96503c8ae77c@sadiqpk.org> (Mohammed Sadiq's message of "Sun, 22 Jan 2023 12:59:14 +0530")

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





  parent reply	other threads:[~2023-01-22  9:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-22  7:29 bug#61001: 29.0.60; c-ts-mode: A recent update broke indent-according-to-mode Mohammed Sadiq
     [not found] ` <handler.61001.B.16743725669585.ack@debbugs.gnu.org>
2023-01-22  8:42   ` Mohammed Sadiq
2023-01-22  9:49 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-01-22 10:01   ` Mohammed Sadiq
2023-01-22 10:03     ` Mohammed Sadiq
2023-01-22 10:12       ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-22 10:29         ` Mohammed Sadiq
2023-01-22 10:34           ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7qq7vbj.fsf@thornhill.no \
    --to=bug-gnu-emacs@gnu.org \
    --cc=61001@debbugs.gnu.org \
    --cc=sadiq@sadiqpk.org \
    --cc=theo@thornhill.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).