From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Face for literal numbers.
Date: Mon, 09 Sep 2019 10:50:41 -0700 [thread overview]
Message-ID: <865zm18iku.fsf@stephe-leake.org> (raw)
In-Reply-To: <83h85m4ptm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 08 Sep 2019 21:15:33 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Date: Sun, 08 Sep 2019 13:57:26 -0400
>> Cc: Ergus <spacibba@aol.com>, Paul Eggert <eggert@cs.ucla.edu>,
>> 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
prev parent reply other threads:[~2019-09-09 17:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-08 2:41 Face for literal numbers Ergus
2019-09-08 3:37 ` Stefan Monnier
2019-09-08 13:25 ` Alan Mackenzie
2019-09-08 14:49 ` Ergus
2019-09-08 17:57 ` Stefan Monnier
2019-09-08 18:15 ` Eli Zaretskii
2019-09-09 12:04 ` Ergus via Emacs development discussions.
2019-09-13 8:18 ` Richard Stallman
2019-09-09 17:50 ` Stephen Leake [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=865zm18iku.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.