[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Words with spaces highlighted in elisp-mode comments
From: |
uzibalqa |
Subject: |
Re: Words with spaces highlighted in elisp-mode comments |
Date: |
Thu, 20 Jul 2023 11:47:40 +0000 |
------- Original Message -------
On Wednesday, July 19th, 2023 at 1:02 PM, Emanuel Berg <incal@dataswamp.org>
wrote:
> uzibalqa wrote:
>
> > > > comments, words within single quotes get highlighted.
> > > > It would be beneficial if arbitrary text is also
> > > > highlighted within single quotes (e.g. text with spaces).
> > >
> > > I don't understand what 'ooh' and 'ooh aah' means in Elisp,
> > > do you?
> > >
> > > But it is clear the oohs and the aahs are treated
> > > differently by Emacs as 'ooh' gets the
> > > `font-lock-constant-face' and with the whitespace, as you
> > > say, it doesn't.
> > >
> > > You can evaluate 'ooh' (into ooh) but not use it in code,
> > > 'ooh aah' cannot be evaluated.
> >
> > Highlighting some text in comments would be beneficial.
>
>
> But comments are already font locked into
> `font-lock-comment-face' (there is also a` font-lock-comment-delimiter-face',
> IMO it is overkill to
> have that in another color than `font-lock-comment-face').
I do not see the usefulness of colouring the comment delimiter separately
(because that
affects all comments in the same way, no distinguishing feature whatsoever ).
We can keep
highlighting with a back-quote for things that can be evaluated (e.g.
`something') and
use single-quote for more general case that allows spaces (e.g. 'this and
that').
We should not use multiple comment characters (e.g. ;;; Something) because
those are
for outlines - something of a completely different orthogonal purpose.
> I don't see why 'ooh' within a comment should be colorized any
> other way than the comment, since that syntax don't denote
> anything in Elisp. If you intend to use it as labels, and to
> put them aside as a special color, I'd say there are better
> ways to do that, namely stack semi-colons in different numbers
> denoting different things, so that, for example
>
> ;; this is a general comment <-- one face
>
> (setq one 1) ; don't do that <-- comment that refers to one line
>
> ;;; this is a LABEL, as seen in Lisp packages <-- one face for that
> (code (code ...)
> (code (code ...)
>
> This would also be safe to implement because if someone didn't
> like it, it could be default be set so that all those Lisp
> levels of comments initially were set to the same color.
>
> --
> underground experts united
> https://dataswamp.org/~incal
- Words with spaces highlighted in elisp-mode comments, uzibalqa, 2023/07/16
- Re: Words with spaces highlighted in elisp-mode comments, Emanuel Berg, 2023/07/17
- Re: Words with spaces highlighted in elisp-mode comments, uzibalqa, 2023/07/17
- RE: [External] : Re: Words with spaces highlighted in elisp-mode comments, Drew Adams, 2023/07/17
- Re: Words with spaces highlighted in elisp-mode comments, Emanuel Berg, 2023/07/19
- Re: Words with spaces highlighted in elisp-mode comments,
uzibalqa <=
- Re: Words with spaces highlighted in elisp-mode comments, Emanuel Berg, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Eli Zaretskii, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Christopher Dimech, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Eli Zaretskii, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Heime, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Eli Zaretskii, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Emanuel Berg, 2023/07/24
- Re: Words with spaces highlighted in elisp-mode comments, uzibalqa, 2023/07/22
- Re: Words with spaces highlighted in elisp-mode comments, Emanuel Berg, 2023/07/24