From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Herman=2C_G=C3=A9za?= Newsgroups: gmane.emacs.devel Subject: Re: treesit indentation "blinking" Date: Thu, 30 Mar 2023 09:47:23 +0200 Message-ID: <875yaiad3x.fsf@gmail.com> References: <87h6ucik61.fsf@dancol.org> <0F406D08-56D4-4B21-B94D-A47681606911@gmail.com> <1870bcadd28.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <1870cce6690.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <35A837A9-59B4-4F1F-A5FA-8483C8024D76@gmail.com> <187104f6b48.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <21d018e5-a730-12e3-f97c-fffa4f646ccf@yandex.ru> <83v8ioc2ou.fsf@gnu.org> <87sfdsx0r2.fsf@gmail.com> <87lejgsf0m.fsf@gmail.com> <83pm8s70o3.fsf@gnu.org> <87lejfkv6d.fsf@gmail.com> 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="2929"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.0; emacs 30.0.50 Cc: =?utf-8?Q?Herman=2C_G=C3=A9za?= , Eli Zaretskii , dgutov@yandex.ru, dancol@dancol.org, casouri@gmail.com, theo@thornhill.no, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 09:55:10 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 1phn7l-0000es-Ro for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 09:55:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phn70-0005kg-Cz; Thu, 30 Mar 2023 03:54:22 -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 1phn6y-0005iv-HP for emacs-devel@gnu.org; Thu, 30 Mar 2023 03:54:20 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phn6w-00065x-LZ; Thu, 30 Mar 2023 03:54:19 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso12896588wmb.0; Thu, 30 Mar 2023 00:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680162856; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=BqHoUXbrDb2OIE7T0PpJxKKE0E01Pqnrysycveq+C/g=; b=JSX/xe9UmgiqybMBBL3FVx4lh2lFRhNtE6VczMIlmnqlprwShnvBDxUHClU1WKKs8j g93xqf7CGJC3l12JvF/agDqtKgFtX+QusABn4QU52XgzC+UVnXsivx/+IFI7cLxlmJQn kw2LQKkSmmdN+PXhOCaxa86OjeinUzXcAzEEtedyMbqLyRRRQ8WMP4b3g/WUiCOLTkdv HX8nsJCdFrMJR5oOC4Y7MHmyfGvVMrXGWTb64tiKc48Zz6tJI3tpCzsJGDJ+b3UORA8j rF40PP0wD1R0f2IlmplWqjyzQhh5BJ0Q42GaY2MNjfkSmdu9BJkrpoC3S1tjbxzFCoNY HEDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680162856; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=BqHoUXbrDb2OIE7T0PpJxKKE0E01Pqnrysycveq+C/g=; b=RF8610tSK3uQlUzG5O2XmfT1mPqGbn7WnqDp1AOagdOcIv1dyk3xeAD7abp49veFse 0EJrawCi1/ifYmt3hKJI/PBBkwfL0fRaElXQZuLaDpHsw2ECtTWyGYA5vOiYjxCTN0ln 91619XGWPu9zfTXp3L5t4yEJIhDLqxcI0cUFGaMEX+vuBsKDj4Rv4FKSy8XxpLAswUvB vTzHaIc4W3OzAHMeGJlEUmuhv+iPW04lsqbEb0gcxg9Te7pO+uLRD0mx+B1u9UEU4yZW 8aa7+3TivBAyUAJ3FFgJWIEcAdtzF7XbvB4YIMfKdPIGTxbj90rv3e1sZ/ujDrADwCCn cBJA== X-Gm-Message-State: AO0yUKUKHlzMKvX1fFhBoH0yr+aOcmGh/besLNKZej0SIGpR7eDpDs3m /0tSjLJ+OkOoeQY4yF6RIKA= X-Google-Smtp-Source: AK7set/cf8A12gO0zQXm6Q7VaZ1Vl25u0W3vrM8i2vPtP71ho/e0kYAlKbeUHforC7Vfc0kLi8VOFQ== X-Received: by 2002:a7b:c8d0:0:b0:3eb:39e7:35fe with SMTP id f16-20020a7bc8d0000000b003eb39e735femr16567587wml.30.1680162856497; Thu, 30 Mar 2023 00:54:16 -0700 (PDT) Original-Received: from localhost (netacc-gpn-204-88-167.pool.yettel.hu. [5.204.88.167]) by smtp.gmail.com with ESMTPSA id y21-20020a7bcd95000000b003edc11c2ecbsm4963870wmj.4.2023.03.30.00.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 00:54:16 -0700 (PDT) In-reply-to: Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=geza.herman@gmail.com; helo=mail-wm1-x332.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:304838 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > If we're going to use c++-mode as a reference, then, without > electric-pair-mode you get another class of "bigger" bugs. Just type > > emacs -Q thingy.cpp -f c++-ts-mode > > int main () { RET for (;;) {printf("infloop"); RET } > > it still bounces around. c++-mode doesn't. Sure, you may say > "oh that's because the c++-ts-mode indenting is off". OK, then I say > "when/if it's ever fixed, then we can add these extra > electric-indent-chars". > > Jo=C3=A3o For me, your example doesn't produce any bouncing (with or without adding an additional RET before printf, I'm not sure whether you accidentally missed to put a RET there). Everything is just put unindented. What could be the cause of the difference? I'm using the latest tree-sitter-cpp (03fa93db133d6048a77d4de154a7b17ea8b9d076), and latest emacs-29 branch (several-day-old master also behaves the same). G=C3=A9za