From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: c-ts-mode style customization Date: Fri, 24 Mar 2023 09:19:53 +0300 Message-ID: <83o7oiekmu.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu , dancol@dancol.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 24 09:43:12 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 1pfd0y-0008tq-Ow for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Mar 2023 09:43:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfaoX-0004dZ-QH; Fri, 24 Mar 2023 02:22:13 -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 1pfaoV-0004dB-J2 for emacs-devel@gnu.org; Fri, 24 Mar 2023 02:22:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfaoS-0003SH-Iv; Fri, 24 Mar 2023 02:22:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gYjcQnCY9rXX7DEJLokMQnhYX+mAvvS2g5xFRZqLmMw=; b=POwI6Twv7gLJ6aUQfR7q ydGzQxpWkQzNI0eC4xdfGe5FKKl/vtxni4dcOOYdTrBy0KJmwLnEpnUwTJflKkS40Jjpscr2JCmQP EwlZS+QLQE4vRR7NsbUIOSeJett9J/9/1jTycH5bNnEwiXxspvnx2UhwiXWCfEF7CuJp893CXqQP9 RkZO99M2W53Qj++uzh5jOq+v0wGQ7/LYUiFA8kybKRlPMtxiKcIcysvan8Dy7PnhGp9R4KQBV0Wv3 MVYatO26litAKZ5EhXaO4IzeiwRuGpByD6/vfQZ34nm6sBAyUvk98EwUptpj2ioSasd/7gpu7pRXQ lvx4cYnNZR5WpA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfamZ-000097-4j; Fri, 24 Mar 2023 02:22:05 -0400 In-Reply-To: (message from Yuan Fu on Thu, 23 Mar 2023 16:44:31 -0700) 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:304745 Archived-At: > From: Yuan Fu > Date: Thu, 23 Mar 2023 16:44:31 -0700 > Cc: emacs-devel@gnu.org > > >> Anyway, I agree with the general idea. I’ll add the option to set a rule alist. > > > > > > 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. > > Still, it’s largely harmless, and could prove useful for some people, also it’s too late to remove it from emacs-29. And since it’s in emacs-29, I don’t want to go through the trouble removing it in emacs-30 in a backward-compatible way. 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. 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.