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#61502: 29.0.60; c-ts-mode auto-indent not working Date: Wed, 15 Feb 2023 16:48:33 +0100 Message-ID: <6AAA6F2C-605C-4C90-9B3B-9223A9707A43@thornhill.no> References: <87v8k4g8xu.fsf@codeisgreat.org> <83a61ge69s.fsf@gnu.org> <87edqs11db.fsf@thornhill.no> <83a61gc8xx.fsf@gnu.org> <875yc40zhu.fsf@thornhill.no> <838rgzce0c.fsf@gnu.org> <873577qewk.fsf@thornhill.no> <83lekzauvz.fsf@gnu.org> <87ttzn2enc.fsf@thornhill.no> <83bklvatrj.fsf@gnu.org> <87r0ur6kv1.fsf@thornhill.no> <83a61fas5w.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1873"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61502@debbugs.gnu.org, casouri@gmail.com, pankaj@codeisgreat.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 16:49:16 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 1pSK1x-0000Dw-Dq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 16:49:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSK1n-000508-M0; Wed, 15 Feb 2023 10:49:03 -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 1pSK1m-0004zb-H1 for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 10:49:02 -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 1pSK1m-0007vI-8P for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 10:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSK1l-0008Ip-PQ for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 10:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2023 15:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61502 X-GNU-PR-Package: emacs Original-Received: via spool by 61502-submit@debbugs.gnu.org id=B61502.167647612131886 (code B ref 61502); Wed, 15 Feb 2023 15:49:01 +0000 Original-Received: (at 61502) by debbugs.gnu.org; 15 Feb 2023 15:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:33672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSK1Q-0008ID-Sk for submit@debbugs.gnu.org; Wed, 15 Feb 2023 10:48:41 -0500 Original-Received: from out-191.mta1.migadu.com ([95.215.58.191]:55584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSK1O-0008I5-B0 for 61502@debbugs.gnu.org; Wed, 15 Feb 2023 10:48:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1676476117; 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=XngkWCmTuUfde2K05en0dT6lO+fTDA/ZtVf/eflE7IE=; b=e699u1U1muAoCG8r4eblmTRvULtU1YbN/2VnBWHO5JxqxIh9cumexM2ojuBHIB5Cohm5OX g1ou/Ubak1A0edc0KgNsV70uBDmXCwC+ygbCNLg359hsIiaD9bvclWMmiv1tqJCU80kU8s p2drd0fsI70u3ES4kwGqvZlzwlvAYSAgLwjX74wDIsHVYJQjs0CK8tOxeXQU4pz7HPxKSA LiUZUkdeGJdo/tOzIxdJ6uymOHoxaMcFFhtQAlR8i28Sn+N8OXjMf7uRQl9YpVIOSdnPFV WEpN5Yvc0IHPHjZpHf10Po2CAxy/avqwQYGiMgXkYfPJ/bppNY9OdbiEGCZ5bw== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83a61fas5w.fsf@gnu.org> 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:255736 Archived-At: On 15 February 2023 16:02:03 CET, Eli Zaretskii wrote: >> From: Theodor Thornhill >> Cc: pankaj@codeisgreat=2Eorg, casouri@gmail=2Ecom, 61502@debbugs=2Egnu= =2Eorg >> Date: Wed, 15 Feb 2023 15:53:22 +0100 >>=20 >> >> int >> >> main >> >> { >> >> for (;;) >> >> | >> >>=20 >> >> eval: (treesit-node-at (point)) ;; # >> > >> > I'm afraid I cannot interpret that=2E What does it mean? >>=20 >> It returns the closing paren in "for (;;)", right before point=2E Whic= h >> may not be as useful, as it is a child of for_statement, IIRC=2E Makin= g a >> rule for that isn't too hard, but it complicates things=2E > >Hmm=2E=2E=2E this might make no sense, but: why are we asking about the n= ode >at point? For indentation purposes, when RET is pressed, shouldn't we >ask about the node of the first non-whitespace character of the line >where we get RET? Yeah, but what then to do when there is only whitespace?