From: Mohammed Sadiq <sadiq@sadiqpk.org>
To: Theodor Thornhill <theo@thornhill.no>
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 15:31:43 +0530 [thread overview]
Message-ID: <f1d71db8c16f6109874d74ad58a2ccf0@sadiqpk.org> (raw)
In-Reply-To: <87o7qq7vbj.fsf@thornhill.no>
On 2023-01-22 15:19, Theodor Thornhill wrote:
> Seems I missed one replace. Better now? Added a change to emacs-29
> branch.
I still get the following error:
Error: treesit-indent-error ("Couldn't find the preset corresponding to
expression" c-ts-common--looking-at-star)
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode
0xcc3221d4fae87dc>))
debug-early-backtrace()
debug-early(error (treesit-indent-error "Couldn't find the preset
corresponding to expression" c-ts-common--looking-at-star))
signal(treesit-indent-error ("Couldn't find the preset corresponding
to expression" c-ts-common--looking-at-star))
treesit--simple-indent-eval(c-ts-common--looking-at-star)
mapcar(treesit--simple-indent-eval ((parent-is "comment")
c-ts-common--looking-at-star))
treesit--simple-indent-eval((and (parent-is "comment")
c-ts-common--looking-at-star))
treesit--simple-indent-eval(((and (parent-is "comment")
c-ts-common--looking-at-star) #<treesit-node "if" in 15-17>
#<treesit-node ERROR in 1-17> 15))
treesit-simple-indent(#<treesit-node "if" in 15-17> #<treesit-node
ERROR in 1-17> 15)
treesit--indent-1()
treesit-indent()
indent-according-to-mode()
(save-current-buffer (set-buffer buffer) (c-ts-mode) (insert "int
main() {\n if ") (indent-according-to-mode))
(let ((buffer (generate-new-buffer "temp.c"))) (save-current-buffer
(set-buffer buffer) (c-ts-mode) (insert "int main() {\n if ")
(indent-according-to-mode)))
eval-buffer(#<buffer *load*> nil "/home/sadiq/test.el" nil t)
load-with-code-conversion("/home/sadiq/test.el" "/home/sadiq/test.el"
nil t)
load("/home/sadiq/test.el" nil t)
command-line-1(("-l" "test.el"))
command-line()
normal-top-level()
Generic tree-sitter indentation error: "Couldn't find the preset
corresponding to expression", c-ts-common--looking-at-star
next prev parent reply other threads:[~2023-01-22 10:01 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
2023-01-22 10:01 ` Mohammed Sadiq [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1d71db8c16f6109874d74ad58a2ccf0@sadiqpk.org \
--to=sadiq@sadiqpk.org \
--cc=61001@debbugs.gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.