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: Wed, 28 Dec 2022 17:06:23 +0000 Message-ID: References: <361ac1e9-c1b3-824a-834b-39832a4fe2b7@yandex.ru> <12869a5f-ed38-eff4-8042-3da121f59ad5@yandex.ru> <8de4913a-f508-9acc-76ba-a2590e16f33f@yandex.ru> <010a042a-cfd5-517b-cd2a-cb797c3390e5@yandex.ru> <328c8aa9-4a5d-218e-92d0-94ca27a709ca@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="34323"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 28 18:07:34 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 1pAZtt-0008mC-QT for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Dec 2022 18:07:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAZtF-0006gz-Db; Wed, 28 Dec 2022 12:06:53 -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 1pAZt5-0006en-0u for emacs-devel@gnu.org; Wed, 28 Dec 2022 12:06:44 -0500 Original-Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAZt1-0007TL-Gu for emacs-devel@gnu.org; Wed, 28 Dec 2022 12:06:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1672247188; x=1672506388; bh=rJPlb7KLaqXn6po0y0rsQN22LDn3GqxhFRjK2Y//cb0=; 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=WI1e+AHR/PKjDwbCvAz/wsDChDnQrauPx46Fb220zau6W02CvL8ci2D2lvgtO0+Ii o/NTReLHOCqmPMRpfhe6bkeGXOXb5FnK4z62kd876Kg0biYvD+mL4dbPN35I9V6rYG HqsyocLLBSs6DuKsuaI5XinEyacG+aWdtOh63qhvQxst89HkCATPIFMyA85RLXvGQE PfjNxcITgOFIit7auUPWmMoI/UNyVzAaoSBslf3LAnWaKZj53693O7qp7jJolhFBaR N6G4aXKTs0c0mm0Ijf8L3fDiA1GoYEtCbQNe1Tiwh5vk2NM1psmBLfTQb6S21cWsvI 6OVJ7W5wxU3BQ== In-Reply-To: <328c8aa9-4a5d-218e-92d0-94ca27a709ca@yandex.ru> Feedback-ID: 44397038:user:proton Received-SPF: pass client-ip=185.70.40.136; envelope-from=dev@rjt.dev; helo=mail-40136.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, 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:302008 Archived-At: On Wednesday, December 28th, 2022 at 10:13, Dmitry Gutov = wrote: >=20 > Maybe it would be better to remove font-lock-misc-punctuation-face, thoug= h? >=20 > People can still use font-lock-punctuation-face for everything > punctuation-like that doesn't match the category of "brackets" or > "delimiters". >=20 > Just like font-lock-doc-face inherits from font-lock-string-face, or > font-lock-comment-delimiter-face inherits from font-lock-comment-face. >=20 > We don't seem to have a practice of "parent faces" which are otherwise > unused. font-lock-punctuation-face's docstring doesn't suggest this kind > of purpose either. Then we should get rid of font-lock-punctuation-face instead. If we keep it= and use it in place of misc-punctuation, then changing punctuation-face wo= uld also change the bracket and delimiter faces, since they inherit from it= . font-lock-punctuation-face wouldn't be a great name either since it's no = longer referring to all punctuation (which is its current goal, and the doc= string can always be updated). I'm indifferent either way.