From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Face for literal numbers. Date: Mon, 09 Sep 2019 10:50:41 -0700 Message-ID: <865zm18iku.fsf@stephe-leake.org> References: <20190908024146.mcswvhkh7yzmvjyl@Ergus> <20190908132539.GC4443@ACM> <83h85m4ptm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="240008"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 09 19:51:21 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i7Nou-0010I9-At for ged-emacs-devel@m.gmane.org; Mon, 09 Sep 2019 19:51:20 +0200 Original-Received: from localhost ([::1]:59682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7Not-0002ZW-7h for ged-emacs-devel@m.gmane.org; Mon, 09 Sep 2019 13:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52979) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7Noa-0002N0-NK for emacs-devel@gnu.org; Mon, 09 Sep 2019 13:51:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7NoZ-0001ag-94 for emacs-devel@gnu.org; Mon, 09 Sep 2019 13:51:00 -0400 Original-Received: from gateway33.websitewelcome.com ([192.185.145.24]:21708) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7NoZ-0001PR-13 for emacs-devel@gnu.org; Mon, 09 Sep 2019 13:50:59 -0400 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 13AC743ED23 for ; Mon, 9 Sep 2019 12:50:44 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id 7NoJiTlT62qH77NoJiO9oO; Mon, 09 Sep 2019 12:50:44 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VNbVXX3clHViqPZ+cDW02ujPLA1bG79FtM4jZ5sTxXY=; b=KOdQTPtLbTzVurbZTI27od98+ PJVAMAWqCKI9cv3+pvrQzktBWSVPmwm9WMFjXLOdl1S2Znhadr8+s9bZJWl1rQSHx/N6AeQj1QOwQ 3vL+oxnHB0mnRX6Tw2Kqcd3bP9pldhJqUnKZY2b6WyNW9guZT7gKtKZ3TJyTbj4a8DZzeVqH54IEp zmLFEG0fAqeKOdFB8mskRw7oaRw6vrxfZWxrb8BVovRkUCF+3IKMDD7Stq8v/oFrYEgHg2Yq20YUl WhZO0mIxmh3kJuSKcCpfL6wN0aw824hcfDSkra23oDgLGmEkkKWlknVqKDr8xjzV4NWxF5PRY96fs 3z+wnCTsA==; Original-Received: from [76.77.182.20] (port=51651 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i7NoJ-003Gq0-Ft for emacs-devel@gnu.org; Mon, 09 Sep 2019 11:50:43 -0600 In-Reply-To: <83h85m4ptm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Sep 2019 21:15:33 +0300") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1i7NoJ-003Gq0-Ft X-Source-Sender: (Takver4) [76.77.182.20]:51651 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.145.24 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239959 Archived-At: Eli Zaretskii writes: >> From: Stefan Monnier >> Date: Sun, 08 Sep 2019 13:57:26 -0400 >> Cc: Ergus , Paul Eggert , >> emacs-devel@gnu.org >> >> Hi Alan, >> >> > I'm against such a feature. "Because vim has it" doesn't seem like a >> > sufficient justification. >> >> I don't personally like this feature either, but I don't see that as >> a reason not to accept a package into GNU ELPA which provides it. > > And I actually don't understand why not define a font-lock face for > numbers, and leave it to major modes whether to support it always, as > an option, or not at all. There is one: font-lock-constant-face. At least, that's what Ada mode uses for numeric literals. I agree the major mode should apply the face to the literals, rather than having some minor mode do it. If there is some language that does not yet have a major mode, it is very easy to tell font-lock to highlight the keywords and literals. -- -- Stephe