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: Sun, 02 Apr 2023 22:40:17 +0100 Message-ID: <87zg7qj73y.fsf@gmail.com> References: <83mt3u65vw.fsf@gnu.org> <87y1newqus.fsf@gmail.com> <83bkka5z7w.fsf@gnu.org> <871ql6a4d4.fsf@gmail.com> <83jzyy4776.fsf@gnu.org> <9F152CAA-6326-459F-84FF-87988B3A92B6@gmail.com> <6bf0322b-1151-129a-e26f-61cf4f232d17@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="25332"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , Yuan Fu , Eli Zaretskii , theodor thornhill , geza.herman@gmail.com, Daniel Colascione , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 02 23:38:43 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 1pj5PP-0006To-0S for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Apr 2023 23:38:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj5P6-0003Sv-L8; Sun, 02 Apr 2023 17:38: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 1pj5P3-0003Sl-Se for emacs-devel@gnu.org; Sun, 02 Apr 2023 17:38:21 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj5P0-00087k-5D; Sun, 02 Apr 2023 17:38:20 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id j24so27447335wrd.0; Sun, 02 Apr 2023 14:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680471496; 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=/OTIyKz9I17R8FYZukQ0UimF+kzgkDsydljVLdJtdPI=; b=Lw42++OvhIQBAAONEVGRxdvcVinMUrJJ25a/jVsjPXPe1eOKWEQlbshL80n3m3MyXz 7MiolWVUDclYoJGR91uZHjaSFBOcqSjJzT3ew7KLH7fERK/AgTWnimTH2WH8z3OV3cG7 Jq+aFfEF1iVGriQR4vOPpNoFLxkjFZCy2Tia4vo6TBvoQQznPEeictK1wD0drGdNWLbU R0yelUUgYcBHNqY9CnonTVdOJhid5QGV/owcFpLJwHq2FoT8ddjrjlGZaLfPaDrTIdjf cS6dL9LjzQ+7PNK4mjHjKGp5RfGOfoUgGYtk+s8ZaWlnXy8sp+GOkktc/YGJ7TqgCcyg 2OrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680471496; 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=/OTIyKz9I17R8FYZukQ0UimF+kzgkDsydljVLdJtdPI=; b=UzKPrn6v6ioGlASllgv4F8N3gS7WijLD6bZ859mt2gEzxzzarOIkoVNzU3Kdvo4Ayl lLtRW7lPnJrC/rkJBrlA9rt/zZrLYQYzHUzsWl8qqh8Cw38vEjG+CsNDNdKnRKw+kD8L jKLM9tyyDz9jWmndjPO+xVLA8zevxJEeXQDuS/KJCYF2EvnRXwD9jPcANjoV/LdVzfyj 9bjlCPb0aW3LXcupPhJv0/wLl6+OhXwEvRno5Oyj67PeyktvR3yqfLCaXdvYcm2EwmFb o2gqtS8Zb24RLm95+zmi4Pe5dWgrFWlBSpeDMHMOqi2pbZ8a/HsDDcW+Y4A62PIO/hZZ Je6g== X-Gm-Message-State: AAQBX9fc2JBXbvUC/fp73flHXXMU4YsT9tXOZcKTHbPbbqx79gXRNLvr e1Yls75Ms9YZ8DE98lMcUF9Wu/1sTd8= X-Google-Smtp-Source: AKy350atBzT6WP60tyAW8Fuzqt5eFRZqUtDL3XGgStljnyKzxan0HRLMMNzX2MGpFin5Ky7OUQwQ7w== X-Received: by 2002:adf:e6c8:0:b0:2cf:ec6c:f253 with SMTP id y8-20020adfe6c8000000b002cfec6cf253mr26026372wrm.20.1680471496008; Sun, 02 Apr 2023 14:38:16 -0700 (PDT) Original-Received: from krug ([87.196.72.128]) by smtp.gmail.com with ESMTPSA id b6-20020a5d5506000000b002e463bd49e3sm8046878wrv.66.2023.04.02.14.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 14:38:15 -0700 (PDT) In-Reply-To: <6bf0322b-1151-129a-e26f-61cf4f232d17@yandex.ru> (Dmitry Gutov's message of "Mon, 3 Apr 2023 00:21:18 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=joaotavora@gmail.com; helo=mail-wr1-x42a.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:305052 Archived-At: Dmitry Gutov writes: > On 02/04/2023 20:23, Jo=C3=A3o T=C3=A1vora wrote: >> So my initial idea was to tone down electric-indent-chars, at least >> for the moment. And Dmitry's idea was to make electric-indent-chars >> be ambitious _only_ if electric-pair-mode is enabled (by the user). >> Maybe we should bring back that idea, and it seems the least bad of >> the bunch right now. > > Alternatively, we only perform "electric indent" (aside from after > RET) when the parse tree does not contain errors. Using the hook > electric-indent-functions instead of altering electric-indent-chars. If easy to do, that's even better. Then electric-pair-mode doesn't need to enter the picture at all. Jo=C3=A3o