From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mohammed Sadiq Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87o7qq7vbj.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61001@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 22 11:02:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJXBC-0004re-AM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Jan 2023 11:02:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJXAr-0001i6-BC; Sun, 22 Jan 2023 05:02:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pJXAp-0001ht-An for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 05:02:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJXAo-0006DD-8H for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 05:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJXAo-0006Tm-2K for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 05:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mohammed Sadiq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jan 2023 10:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61001 X-GNU-PR-Package: emacs Original-Received: via spool by 61001-submit@debbugs.gnu.org id=B61001.167438171424892 (code B ref 61001); Sun, 22 Jan 2023 10:02:02 +0000 Original-Received: (at 61001) by debbugs.gnu.org; 22 Jan 2023 10:01:54 +0000 Original-Received: from localhost ([127.0.0.1]:50734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJXAg-0006TQ-5i for submit@debbugs.gnu.org; Sun, 22 Jan 2023 05:01:54 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:36095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJXAd-0006TB-2H for 61001@debbugs.gnu.org; Sun, 22 Jan 2023 05:01:52 -0500 Original-Received: (Authenticated sender: sadiq@sadiqpk.org) by mail.gandi.net (Postfix) with ESMTPA id D36901C0002; Sun, 22 Jan 2023 10:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sadiqpk.org; s=gm1; t=1674381704; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G3kWCPAG9NumVttohldMxo51JkJoH5uUXOKVtS88tpI=; b=YEe2a1memO+UmuqfnI1AbIL5HhT69RW+Hmzh0WCk15FVR7AHzjPHNrXgA/q/cVlr7Grgfy vDP6508Ijq/gOkzUK3jVutsF5F8zrIsL9Mgq/TAIXTUBV/lxO8fw3SRuQQblL5qsz8Ec4q 5QpZpMOsuMCvcdqZK7VdTKpqwrB7Tqzo+0fus9FVb2aLmGi3hXnXvC75XqacOaHvs9jZ25 Zo8ggS67YYtCsx/Hz/uswgufeZnb2mhCERrrKp+V6MUOa0AI2orHqM2x1IPwbHPrO6sGr7 mpPB0YeL6k0RetxLLjwP1UVGmG+7WjURIqg3hIWd+Gur0l6Gqd4TDsNPjCNTcw== In-Reply-To: <87o7qq7vbj.fsf@thornhill.no> X-Sender: sadiq@sadiqpk.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253918 Archived-At: 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) #)) 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) # # 15)) treesit-simple-indent(# # 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(# 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