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: Mon, 3 Apr 2023 00:21:18 +0300 Message-ID: <6bf0322b-1151-129a-e26f-61cf4f232d17@yandex.ru> 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> 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="27997"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: Yuan Fu , Eli Zaretskii , theodor thornhill , geza.herman@gmail.com, Daniel Colascione , emacs-devel@gnu.org To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 02 23:22:22 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 1pj59Z-00074T-Is for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Apr 2023 23:22:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj58j-0007mM-MF; Sun, 02 Apr 2023 17:21:29 -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 1pj58g-0007lG-6V for emacs-devel@gnu.org; Sun, 02 Apr 2023 17:21:26 -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 1pj58d-0004aU-Vk; Sun, 02 Apr 2023 17:21:25 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso16957394wmo.0; Sun, 02 Apr 2023 14:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680470481; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Odzf62o4z9SXp2S4vSHazAG23F70+mHmja3vIvbd7vE=; b=bJAMOeDT9TMSd9r6QQ4vQY+9RGoICh//50X1xwlGa7smd3Xc8tDVEVf9aYUehwH2rF b1UTtEOBs/RqC0jD9cS90tTwWgGsRgxJMWo9xw8fYSMHZ29gqljmx/C7FcSXQnsQco9a or3WXt+9FUIFRNmhySWZQjJgr+U7Qw6wpMW2DYQBErFXrXH0tvkeG7z7oCw5pe5cLjKu MUDHczlB6RDXE4tRlCu/L8neRtN7SVfptDapt6Y0/d3mHJE/R8laDDmSi45h2LhkxWz8 7B0ZJTB29fGzLkGYob4EtWMCf2ZGy73ORhwswkp8UIEg7NXzxrpUKNqQZyc5Mk1tI+Ci 56sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680470481; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Odzf62o4z9SXp2S4vSHazAG23F70+mHmja3vIvbd7vE=; b=ELKY5c//BkrKXqSav+mftOyWq/3iO5ehsh8FVIhmUbdFIKo7/xRgjEFeoG9+vwJKl/ oFZ0JQH94kqDaWxbtIq+PdMj6k0RsqjiR6OMAJ9fexrfc5mcY6bSgG18qqDfkQMRQX6h MBH4O5oRXbR/cDOlmFw+caTdGsPfDy6qs7srn0eQ4l6QF1SkA+pN3EgxBM1h3HqX/5QC sxlvOhE9RBWcEF3zqtySAntRJCiWpPs8w7KoP23N7tERQxa3IwodtTKfWjD66kDB6Btz 8BJSGKeF11UEikFL0CSiwKl930se6AoGLNwznC6m30LqZCx63ZAuXXWDr7AWUvmVLBHk gTyA== X-Gm-Message-State: AO0yUKVBYXJCCZdTqp0OvKXJlDTf755wboYgBUDHyzCguVn3kuFXxT8G HxOOOKHCZWxVEuH3R2sRfXg= X-Google-Smtp-Source: AK7set+g5xm7L6ImGuJSW7ryp16hl7aYXSbhbknydr8p9Xp1bjf02UNC2L80qFSCLzizG8n2pKDXWQ== X-Received: by 2002:a1c:4c13:0:b0:3ee:a492:e95e with SMTP id z19-20020a1c4c13000000b003eea492e95emr23867113wmf.6.1680470481167; Sun, 02 Apr 2023 14:21:21 -0700 (PDT) Original-Received: from [192.168.1.2] ([31.216.80.60]) by smtp.googlemail.com with ESMTPSA id s15-20020a05600c45cf00b003eb2e33f327sm27327985wmo.2.2023.04.02.14.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Apr 2023 14:21:20 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=raaahh@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 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=-2.37, 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:305050 Archived-At: On 02/04/2023 20:23, João Távora 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.