From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: treesit indentation "blinking" Date: Thu, 30 Mar 2023 10:28:51 +0100 Message-ID: <87tty2wpt8.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> <83mt3u65vw.fsf@gnu.org> <87y1newqus.fsf@gmail.com> <6987b4f9-bb90-07cf-b64c-612574dff29e@yandex.ru> 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="34325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , dancol@dancol.org, casouri@gmail.com, emacs-devel@gnu.org, theo@thornhill.no To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 11:27:34 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 1phoZA-0008lR-O5 for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 11:27:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phoYp-0006VQ-CQ; Thu, 30 Mar 2023 05:27:11 -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 1phoYk-0006VD-55 for emacs-devel@gnu.org; Thu, 30 Mar 2023 05:27:06 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phoYX-0000QE-5o; Thu, 30 Mar 2023 05:26:54 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id e18so18354310wra.9; Thu, 30 Mar 2023 02:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680168411; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CiPOLayt2PeIL9tg+ciyZvjBpOQZ2J4lQuROJUeanws=; b=PzaCr0e2OgLpJXtH4IGQ/g4ottnYF9/huAEnotA/47C8r0aX5xcPCnK1pnh7e2Id+A jdBE+BkFwpQmHSmbp5sXHtGHITTpuKnxkeO9dHlttALCa2Z/c8eLwy57x81SYJ+AZize FCX4WVVrx6Pk/MxM0Fd1NtuX3NSxiFnpZXxD/FqCnTqAxLDch6JWWBwoy/N//Id3Qo18 RMJxCLh1N92PHnQIYN2HfXoSE/IwYKOkUWW3diwGMKnyz9Oz/chmBrbJX/kt1elTg4a2 gsUykjy57wEwBWRA6bwpI3UoQ0nUzJzG+oKZk19ZuPh9VN+Y70YzYgIRjujKL9wrsSQ9 HXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680168411; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CiPOLayt2PeIL9tg+ciyZvjBpOQZ2J4lQuROJUeanws=; b=7g8Ge5TSzOmLojDCZ7T5zG2rB4Gj7OjNBCZj/9hD0sH+R9M5MU7lgA3lv8EFcbNiq4 KXWNePpqZZ6py5z/JB6JFvYBtzxiGSoRlJImJ3gqiHqfsOBsf/VnV3bMSbjxfwpJHn+/ FtI1El8f1jf3deiTMOL22/2DfmuJLQpk1TOtSJEFEwWYLxSUT+XKwzxFs+qVU6/9oIe5 Q3T4JbRPqMCq29KctrC5Dd/a7Ojj+FNeZQptJ2hbHW2lOF2tJt2rs4ANq8Qx3zEfxfvf Avs5B0BZ+abtiDFP7ZRK+0EiG2Os/uDCM6OZM6OR0IAKKccW4+3hA+8WHmLzsH2mFvcb wDLQ== X-Gm-Message-State: AAQBX9eC0U3N8nzIlocUPPRBL/HPgHyb1uy0esMxXWbgGRPVh47mdOyQ pYwg0ndc89U50EIC7nzoyBg= X-Google-Smtp-Source: AKy350aGVTFteq0Wtja/A7Wqk2eVTPVHXgfLq7Idy9ytLOxrZDyeaW5dFJdjWKdtmU09Zhp1Vy5UQA== X-Received: by 2002:adf:e68d:0:b0:2c7:d575:e8a4 with SMTP id r13-20020adfe68d000000b002c7d575e8a4mr17441686wrm.65.1680168410788; Thu, 30 Mar 2023 02:26:50 -0700 (PDT) Original-Received: from krug ([87.196.72.128]) by smtp.gmail.com with ESMTPSA id e8-20020adffd08000000b002c592535839sm32267949wrr.17.2023.03.30.02.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 02:26:50 -0700 (PDT) In-Reply-To: <6987b4f9-bb90-07cf-b64c-612574dff29e@yandex.ru> (Dmitry Gutov's message of "Thu, 30 Mar 2023 12:20:15 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x42d.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:304845 Archived-At: Dmitry Gutov writes: > On 30/03/2023 12:06, Jo=C3=A3o T=C3=A1vora wrote: >> I already gave this alternative MRE of bouncing behaviour. >> emacs -Q `mktemp`.cpp -f c++-ts-mode >> i n t SPC m a i n ( ) { RET for ( ; ; ) SPC b l a ( ) ; >> Can you reproduce this bouncing? Now try the same with c++-mode. Do >> you >> confirm that it doesn't bounce? > > FWIW, I'm unable to repro bouncing here. If anything, what's > problematic here, is I get 0 spaces of indentation after the first RET > (when electric-pair-mode is disabled, of course). But no bouncing when > typing the first two semicolons, and the last one puts indentation > where it should be. This problematic already counts as "bouncing" to me, for some meaning of "bouncing". c++-mode doesn't behave like that because indentation is already where it is supposed to be if you type that sequence of keystrokes. And did you try the final example that I showed in the animated gif? That's even more "bouncy", at least in my book. Jo=C3=A3o