From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.devel Subject: Re: font-lock-delimiter-face - what for? Date: Tue, 27 Dec 2022 18:20:07 +0000 Message-ID: References: <361ac1e9-c1b3-824a-834b-39832a4fe2b7@yandex.ru> <12869a5f-ed38-eff4-8042-3da121f59ad5@yandex.ru> 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="25232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 27 19:21:02 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 1pAEZR-0006IH-Ca for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Dec 2022 19:21:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAEYp-0008Qp-DI; Tue, 27 Dec 2022 13:20:23 -0500 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 1pAEYm-0008NU-0K for emacs-devel@gnu.org; Tue, 27 Dec 2022 13:20:20 -0500 Original-Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAEYi-0007ib-Gp for emacs-devel@gnu.org; Tue, 27 Dec 2022 13:20:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1672165210; x=1672424410; bh=180Pj/M7SSGC09nHlabRlMKg9SQ+lgAGggRv5CxABNA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=wdAWRA1/SDMVfKCApmgrvbO+DAYbifWyexnu9uK5WGLtTNebj92pNXrH8CnMEB39b fzY7EVy2OwCOuc4ns7OBPh/xfuuCyIG2L8x3ubuAh7lMpaO6wTxi7TirchbeYIexXi vBO1p74YvYtC5N23VqX2PPHDYwPY42b3bXqczEr79BqGhCD1eKlf5NspwGjsMnwwuu fBhDRUi+J8RwypYckRGNqgkfxiP+LQBHrDS4RrNjssxIx79ctap7nhjQ8ioma8tVyI sun1pEDahj1FVeBmX15P1dF/Qw3E2Rmh3ma9Ridh4kTMuEuIQBFyty2pz/nTSZ2KxK Au0bTotMb6W9g== In-Reply-To: <12869a5f-ed38-eff4-8042-3da121f59ad5@yandex.ru> Feedback-ID: 44397038:user:proton Received-SPF: pass client-ip=185.70.43.23; envelope-from=dev@rjt.dev; helo=mail-4323.proton.ch 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:301982 Archived-At: On Tuesday, December 27th, 2022 at 11:54, Dmitry Gutov w= rote: >=20 > On 27/12/2022 18:44, Randy Taylor wrote: >=20 > > It's primarily for punctuation-related ones (e.g., =E2=80=98;=E2=80= =99, =E2=80=98:=E2=80=99, =E2=80=98,=E2=80=99), hence why it inherits from = the punctuation face. > >=20 > > A more specific example (using c-ts-mode): > > int quack =3D 0; > > ^ font-lock-delimiter-face >=20 >=20 > All right, thank you. >=20 > Perhaps we could add some examples to the docstrings. >=20 > That could also help clarify the difference between > font-lock-punctuation-face and font-lock-misc-punctuation-face. font-lock-punctuation-face covers all punctuation. The rest (bracket, delimiter, misc-punctuation) are for the more specific k= inds, with misc-punctuation being anything not a bracket or delimiter. For = example, see bash-ts-mode which specifies $ as misc-punctuation.