From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 10:49:36 +0100 Message-ID: <87o7qq7vbj.fsf@thornhill.no> References: Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3265"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61001@debbugs.gnu.org To: Mohammed Sadiq Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 22 10:50:19 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 1pJWzS-0000fd-MR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Jan 2023 10:50:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJWzF-0008E0-68; Sun, 22 Jan 2023 04:50: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 1pJWzD-0008Dn-Az for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 04:50: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 1pJWzD-0003KG-2v for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 04:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJWzC-0006AW-HE for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 04:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jan 2023 09:50: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.167438098323682 (code B ref 61001); Sun, 22 Jan 2023 09:50:02 +0000 Original-Received: (at 61001) by debbugs.gnu.org; 22 Jan 2023 09:49:43 +0000 Original-Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJWyt-00069u-GC for submit@debbugs.gnu.org; Sun, 22 Jan 2023 04:49:43 -0500 Original-Received: from out0.migadu.com ([94.23.1.103]:39463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJWyq-00069l-Nc for 61001@debbugs.gnu.org; Sun, 22 Jan 2023 04:49:41 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1674380979; 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: in-reply-to:in-reply-to:references:references; bh=Cjn2OTPDNWwiT2UFJrVnLPqR5X1WRo68HjE/aIOMnyQ=; b=RydOSwi1lFe0rRq5wnYrtHSNIKZX7Cf2weeUXSE88AbpX3ZgNQrFk8KoiGzO5tJnE8mH26 ZrXGPVrLBMGaRJFkEhi+gOi6VLKVqZOluECvj+qUbtMvXeAm9Mxt08bVAFuL3NpnxQ5Jrg goUsfq+9nbejhxhymmbLxeGRCdcbChZfuv7lOTLhRY72db33124cfME3secHUletxRKLUv 8CtIwqVBbE3Cswp+j7ISd3n8Yvm44E7eUDJ3qdXDiEN1FY+wshKD4oG8ojFNGQ/Ak7+cEC XivQfp6EP2D2fMOU1vgnNJeg2mXoeuT27dY4GVq4VTtvYEMFvP0PVCKxJARhKQ== In-Reply-To: (Mohammed Sadiq's message of "Sun, 22 Jan 2023 12:59:14 +0530") X-Migadu-Flow: FLOW_OUT 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:253914 Archived-At: Mohammed Sadiq 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