From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: treesit indentation "blinking" Date: Thu, 30 Mar 2023 12:20:15 +0300 Message-ID: <6987b4f9-bb90-07cf-b64c-612574dff29e@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Cc: dancol@dancol.org, casouri@gmail.com, emacs-devel@gnu.org, theo@thornhill.no To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 30 11:21:17 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 1phoT7-000A86-0C for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Mar 2023 11:21:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phoSG-0004BR-3b; Thu, 30 Mar 2023 05:20:24 -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 1phoSE-0004BJ-W6 for emacs-devel@gnu.org; Thu, 30 Mar 2023 05:20:23 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phoSC-0007qB-S9; Thu, 30 Mar 2023 05:20:22 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id q19so15267786wrc.5; Thu, 30 Mar 2023 02:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680168018; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=NH0yW20D9XDab2H9K6/qWnyRcV44eSEm3rGUkFySApc=; b=isr/wDdIjtPrrqTjbcmmwd+hj4Zx2iPpu1mjIKwhAuum9n0PtLQMHtA5VDtsSPImVC iDsv6COnSTuxu3xeUQ3c2kGp+yUecK3cegdR0nEEVTcvaia5TCmC1I0x95HFReuZGIX8 JNqsUSsd2zYkVGWtbBMqnrBVLxVEPXnym9NcrvwLwtChrceFrncLZzJKLWXFfz6ubg/O 4Pzuj6mGYzXr+iRzPBu8ib2TadLyqnegs+A9OladERWaEvm9QIY0asP+x+44DH3M3I5s xPJx2VCXykWUIEG0YVuFSRCruYLIQ5gSU1KRjrleFD3sStDl/DTlKGZmDAuyU7gH3CjR FMUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680168018; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NH0yW20D9XDab2H9K6/qWnyRcV44eSEm3rGUkFySApc=; b=guuS0hKW+EjW8yynxpQi6eJbj4UvFMZfc5FNw8orTRt9C0XHw5hCL4g9lyJaBaMZwB v6kyoDs6NxCoJP/POKP5hjwdSe5E8/qqyBAPENmWcq/6tgB6gd857kjFPAy39/RgpvcK e8iILJWQTdq/0GThUoTH1AhW/QLkDJgxyUxcuZ3xPNkgjlcw+JpQ0//qwLS+dLRUIXp9 gmhfloYtuIOfEQF/D8ZIwwMJ6c0U6Hy+Mmesnj5LzPkRIZMmxGf1m2lofI2pJOYYuHxr qHorEixAZaSbowcKg5GbhVvt8bOTW10YWopwYC+hogHKd5ssN/GuzgzfzJYEornCn8Rp V1oQ== X-Gm-Message-State: AAQBX9fl+HxN+88o224KezdC2C9vIpu9Uz/9CsZ2JttfEVc7EpvHgovZ 252NXEf0bnUaIMc1/ZOZLLo= X-Google-Smtp-Source: AKy350arugQNpJ7CMJhlVd9/okZ30Pe4uSTcG5iluVTUEe9LNSmhOhY3K4l59nLDDnUgi7W45NOeeA== X-Received: by 2002:adf:e40d:0:b0:2cf:e6de:c6ab with SMTP id g13-20020adfe40d000000b002cfe6dec6abmr17395492wrm.11.1680168017885; Thu, 30 Mar 2023 02:20:17 -0700 (PDT) Original-Received: from [192.168.1.2] ([31.216.80.60]) by smtp.googlemail.com with ESMTPSA id k2-20020a5d6e82000000b002c55b0e6ef1sm32677594wrz.4.2023.03.30.02.20.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Mar 2023 02:20:17 -0700 (PDT) Content-Language: en-US In-Reply-To: <87y1newqus.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:304843 Archived-At: On 30/03/2023 12:06, João Távora 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. > Also in c++-ts-mode, add a closing `}`. > See the "mismatched parenthesis"? I do see that, no idea why that happens (show-paren-mode highlights the matching parens correctly).