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: More font-lock faces for tree-sitter Date: Fri, 28 Oct 2022 18:29:34 +0300 Message-ID: <83bkpwj7a9.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15352"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dev@rjt.dev, emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 28 17:30:32 2022 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 1ooRJY-0003q1-Bh for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Oct 2022 17:30:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooRIo-0001u9-0h; Fri, 28 Oct 2022 11:29:46 -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 1ooRIh-0001nx-SG for emacs-devel@gnu.org; Fri, 28 Oct 2022 11:29:41 -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 1ooRIh-0007JG-H6; Fri, 28 Oct 2022 11:29:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Z+8JGiJmbbTXi6FcJJxUYv+mJhiQ8PHx+nXCLlmcYeQ=; b=p15fLjY0mjV4 3s+pdolgKc54xiwZj8cYc3igeDmneBDHPMfw88UojhoVIcS0DMq/CLw/18C5xF9QCSlMKlhZ9XwH/ 8QXvt/3UBRGd2e87hkvXhlC/VNj53CHrgqBaFl4/me6WO76MAYKI+sZ/Lqa84IX4mw7Ej5hgHjgfR MDn70sRtjJuPrP85slsuLG8bXa5Xui+UCe8NqHTJewVJKa7mq/je2d2SSGGc2Nqg1T7cfv20+8FD4 XA47JhlO+Ph6EFXtIzRyF9sy7w54/K5063AQCOGE5QpM1cGFqWTGMdFLgUht571Jf5eyTlUcubgWA efWSXRj2iaK+1y4h+8qUfQ==; 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 1ooRIg-0008IY-NQ; Fri, 28 Oct 2022 11:29:39 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 28 Oct 2022 08:10: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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298680 Archived-At: > From: Stefan Kangas > Date: Fri, 28 Oct 2022 08:10:31 -0700 > > For example, is there any benefit to adding `font-lock-number-face'? > I don't think I've seen many language modes doing that so far. Is there > a high demand for it? Is there a big benefit? Personally, I don't feel > confident answering that. Other IDEs do provide this, AFAIR. > Adding a face, especially a default one, is an implicit invitation to > theme developers to use it. If we add too many faces, we risk, in the > worst case, seeing a proliferation of angry fruit salad. That's where fontification levels should come in to give users control on how angry their salad is.