From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: treesit indentation "blinking" Date: Wed, 22 Mar 2023 16:49:16 -0400 Message-ID: <87h6ucik61.fsf@dancol.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.21; emacs 30.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 22 21:52:51 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pf5Ry-000A8X-HE for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Mar 2023 21:52:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf5RA-0005nm-8t; Wed, 22 Mar 2023 16:52:00 -0400 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 1pf5R7-0005nY-Ap for emacs-devel@gnu.org; Wed, 22 Mar 2023 16:51:57 -0400 Original-Received: from dancol.org ([2600:3c01:e000:3d8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf5R4-0003eI-NV for emacs-devel@gnu.org; Wed, 22 Mar 2023 16:51:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TrOHlYDr7esDtVW7CcaY6k6Nl4XDngWd0kk5ph7vwhU=; b=ZG+RQ/GoOGlRFHkUBHC5bowtuf BXXGBkffclYeejLFB4JbK3+axBwL4FPQxC77+ENBA/gh+Jre9PrEuOIIlTm+vbsPLS7cnt8XozNh9 KSggGlWsdmGq9SeYeqHsqIPcCksvg4eyHlxqAfPd1gOMT7vwHIwykvJf6m8E7evAA/miNL4ezWlOM vfJr0fKXWI1UWwJMDdkDisvcupHCj+UbIxUKAjgD6cfAny760pptDoO7j6Y47r8hS2yOmgQrRarqa gPN11cnfWKHpw71q7MC4sgwcSdSUZ5IZ7Q0gAxtyamC2BJdtWEYZeP1PbYuKp2IwQJsb3qPSuZpnm lhvaSIqA==; Original-Received: from [2600:1006:b165:93e0:becb:6b30:df9d:388a] (port=50910 helo=localhost) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pf5R1-0008Qq-06 for emacs-devel@gnu.org; Wed, 22 Mar 2023 13:51:52 -0700 Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304719 Archived-At: Is there a general-purpose through which we can avoid line indentation oscillating as the user types when the AST is temporarily invalid, e.g. after '(' or '{'? I'm checking out the C++ tree-sitter mode, and one of the more disconcerting things is the current line's indentation changing rapidly as I type. Is it feasible to create ERROR recovery indentation rules for every conceivable situation?