From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: c-ts-mode style customization Date: Fri, 24 Mar 2023 00:02:04 -0700 Message-ID: <1DB73252-F71B-4618-B562-393B329EC1A6@gmail.com> References: <87355wu4hn.fsf@dancol.org> <45CB19FB-4D80-4C71-8083-D836F51DFB49@gmail.com> <1870bc95688.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <1870cd213f8.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <79B5F13D-6718-4B47-9CDA-485A07AF36BC@gmail.com> <187104b7b78.2829.cc5b3318d7e9908e2c46732289705cb0@dancol.org> <83o7oiekmu.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) 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="21505"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dancol@dancol.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 24 14:15:19 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 1pfhGJ-0004Dn-5A for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Mar 2023 14:15:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfbRn-0008Ej-5t; Fri, 24 Mar 2023 03:02:47 -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 1pfbRk-0008EK-6o for emacs-devel@gnu.org; Fri, 24 Mar 2023 03:02:44 -0400 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pfbRZ-0007zg-2S; Fri, 24 Mar 2023 03:02:43 -0400 Original-Received: by mail-pj1-x102a.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso4245764pjb.0; Fri, 24 Mar 2023 00:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679641336; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0UPd84aMNWKUqTGk0GhNgm81pVVHbSTmGC6OJifX618=; b=YKYoYM/RAq39k6VvJLsf0UOqtO6aE9LYAv0tl97U271s2EHmGk+Yxtu1hQBSxSWodu 1voLXz/O4kN45RSviW5vBWiLx91YgqRHELnekPJaldSRP80UCFfwSBuEbpPAz10VIDua cek7nV336CB4L/QsyjYO6THcEDtkLPDKkoDV47QRw/evOCovESYL7V708xvmyHs7lyet 2zHLHB2oZzjJ5cK1Jy05y9v4aTmG8lN+zGXmBfY5PR5K70CYKjWw2nSrHDKOwR4T26Fy Fj5tn6EtMlM4DG6DX5zdulm1zOJjUPi0YaTa6Qnyo6g+cXJnaiahdryHBmElS+2m52IR E0FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679641336; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0UPd84aMNWKUqTGk0GhNgm81pVVHbSTmGC6OJifX618=; b=EicFiKmjNkT5jbPOhVS+SECypjQrpGKWBSFXk3ClvpoTOEcC00mWvE38nKB5VQMqsR MxgHhpGag2mn8mtQ9eeNwuG8UZ5AjcliytfBUQy9sVnly2a1xBUMwPKZ0oz+69ZffgpI Xy1qEhZlKXg+7f0ZKbIE+Bv6Pi0HpRimJNGdl1YBP7ZWF6xynEdid6dfS4m65LO3gGdT SlLw0wbZ3LVrmx0ip3XEaL/EODoRDE29k1Jc7G9qMoxMxdARo9RIJb9fWGjArnWd7EV9 O5J0f2RufqFAXfY8Jsz6MEIVt4QgPab9/FNgoVR9kGY8dKFDOXzj9hc+y7/neVAKMpCN Cu0A== X-Gm-Message-State: AAQBX9dyPGvPDzE2GGNSDfIghoCDZAM+lRVEotQO8cnuOkWffhJALfR4 tqazq5GNdbpHN3KdxUjUy+oG+71FRmU= X-Google-Smtp-Source: AKy350YePh7UtOdzzyNeIVoOIUgr29YR0OUFVfEAzFv0NDuWoHne1wHZGxk1ijL4OH2q1pj88NPHew== X-Received: by 2002:a17:902:db06:b0:19e:748c:ee29 with SMTP id m6-20020a170902db0600b0019e748cee29mr1872573plx.55.1679641336173; Fri, 24 Mar 2023 00:02:16 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id b17-20020a170902b61100b001a1a82fc6d3sm13135047pls.268.2023.03.24.00.02.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2023 00:02:15 -0700 (PDT) In-Reply-To: <83o7oiekmu.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=casouri@gmail.com; helo=mail-pj1-x102a.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:304746 Archived-At: > On Mar 23, 2023, at 11:19 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 23 Mar 2023 16:44:31 -0700 >> Cc: emacs-devel@gnu.org >>=20 >>>> Anyway, I agree with the general idea. I=E2=80=99ll add the option = to set a rule alist. >>>=20 >>>=20 >>> I gave you a concrete example of a disadvantage of using functions = that return data over just using plain data. The principle of least = power applies here. >>=20 >> Still, it=E2=80=99s largely harmless, and could prove useful for some = people, also it=E2=80=99s too late to remove it from emacs-29. And since = it=E2=80=99s in emacs-29, I don=E2=80=99t want to go through the trouble = removing it in emacs-30 in a backward-compatible way. >=20 > While all this is true, the question is how bad the problem is. > Daniel says the TS modes are unusable for him due to this issue. >=20 > Daniel, could you please post a recipe, starting from "emacs -Q", to > reproduce the "blinking" during editing you described up-thread? > Preferably while editing some code that one can meet reasonably > frequently in practice. I'd like to play with the example and see > whether the problem is serious enough for us to try to solve it ASAP. > TIA. I think you mean the other thread? Yuan=