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, 2 Apr 2023 16:48:55 +0100 Message-ID: References: <87lejgsf0m.fsf@gmail.com> <83pm8s70o3.fsf@gnu.org> <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" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , Eli Zaretskii , theodor thornhill , geza.herman@gmail.com, Daniel Colascione , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 02 17:48:08 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 1pizw7-00012h-SC for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Apr 2023 17:48:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pizvP-0000hp-8l; Sun, 02 Apr 2023 11:47:23 -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 1pizvN-0000hd-ET for emacs-devel@gnu.org; Sun, 02 Apr 2023 11:47:21 -0400 Original-Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pizvK-0006Ci-Ng; Sun, 02 Apr 2023 11:47:21 -0400 Original-Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-17fcc07d6c4so14236230fac.8; Sun, 02 Apr 2023 08:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680450425; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3WrZZZqcwezlPU4lC9Www7KkCqWTDwsrRVKlna1x/ro=; b=Le+bJZRl3+EVrlqruDZ3QOHCDWTer9fvbECs0fSy4qCU7U2buJc+CmSe6E/sOO755Y O7m68wFEoCIkTzR25sy6tSJzHa7pjqQASNqPKuiRIQ6RZlppNk9xtZJl6rsv532KpVbR 3N+eOn0DhzKu62VSjnWQOGeRJVG8kzl55a2tyrOKtyZLDSSWOCPP1AQcVQ9jh27aDP2E Tyz0jyem5ID5kUYMSVlGaZmEYLg9rMfu2GosNUpZMfgU299IvZIrzUdQZoFwNY9o8mFy U7Ly9Q6dAY0gtKpu1Ykr1Wmbx6pK+qu6UD0O0zrZtWJ8JaxZTppMtYAoPGYeKWSHgGJ+ uRSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680450425; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3WrZZZqcwezlPU4lC9Www7KkCqWTDwsrRVKlna1x/ro=; b=DkFQOf3G8GitoKuslNIbl/dF4ZT5hyNVP7mQzDousWcVZ9iPjK9kqhfi4qO6hTET5J kFeQkJyyXkwWVbqGZ3B+VCoFwfuKqzX3+UOIyVdk3fvYqat1B4BkexQ4N/yFaKQ8Eia6 9l+o3QaiU5xQnUFIRD/HteCPtBfNbzBwK1njiMSF3KaeVx4bEeU+4+56aw9i6NFQ9YZz M8vKciaFvrDCh3h7X7xXcQcPGya59+WzbyZKvM/Xcjq5X/f6wsA1Dh9iKUZK2CRyYPHR 2F0bLItCCK4NOYmVV8ZvF9/3parWOz7k2g2xyCAtDMaAADJcZDIESSUIGuKQI2iSXIqK q6Vg== X-Gm-Message-State: AAQBX9cwK20ZZjOY7YPBT0J8Jrgq1MbsBrexz+QxJAq2VkHx9lm53tm5 gGvyMddd6dXyO1kGbj/GUbuzRtP+/q6GFedY+wQ= X-Google-Smtp-Source: AKy350aGmlAU4bXRSSLKMiIT+Sob8ZgAWPv+fO2xOV+3MU0nQZzqiXQZvsyQhc2zQ9j+RSEvm7bvZ6075HKebYgaZ6U= X-Received: by 2002:a05:6870:4f:b0:17e:8d4b:da49 with SMTP id 15-20020a056870004f00b0017e8d4bda49mr8155578oaz.5.1680450424952; Sun, 02 Apr 2023 08:47:04 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x36.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:305038 Archived-At: On Sun, Apr 2, 2023 at 3:26=E2=80=AFPM Alan Mackenzie wrote: > > I think it=E2=80=99s acceptable to say that users of ts-modes should en= able > > electric-pair-mode, since it=E2=80=99s based on a parser, after all. > > electric-pair-mode is a user option. We shouldn't be mandating such > things to users, they should be individual choices. Fair enough. But so is electric-indent-mode and its electric-indent-chars which are problematic in c++-ts-mode and they _are_ enabled by default. electric-pair-mode not only is unproblematic in c++-ts-mode (at least, as far as we know) but is proven to be a good (though not perfect) defense against the real problems posed by the default value of electric-indent-mod= e and the default value of electric-indent-chars in c++-ts-mode specifically. So it makes sense to either have both e-p-m and e-i-m or none (or at least less of the second as has been suggested). At least until the presumed indentation bugs (if in fact they are bugs at all) are fixed (if in fact there is an easy fix for them). The current default state of c++-ts-mode makes little sense to me, it's very uninviting and strange when compared to c++-mode _or_ other editors. ( Admittedly, not only for this reason, the C-M-f/C-M-b/C-M-a behaviour is unlike anything I've ever seen in Emacs. ) > I've had to use a > proprietary editor where e-p-m couldn't be disabled (or at least I didn't > know how to), and I hated it. Emacs should be better than such editors. This comparison doesn't make sense to me because in Emacs it's easy to disable it. Jo=C3=A3o