[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode
From: |
Lars Ingebrigtsen |
Subject: |
bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode |
Date: |
Sat, 23 Jan 2021 19:42:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> All special forms get it (`if' is a special form), but macros (like
>> `when') only gets it if we're in a funcall position:
>
> Not sure why that is. Seems like an accident.
The special form bit, or the macro bit? :-)
Since special forms are always font-locked as keywords when appearing as
the first element in a list, you get stuff like:

So if would perhaps make sense to also do the `funcall-position-p' for
special forms?
> Sounds like a bug. Note that in
>
> (condition-case nil
> (foo)
> (error (when a (when b c))))
>
> the second `when` gets the keyword face, as it should.
Because then `condition-case' isn't the parent, presumably.
> BTW I suspect that part of the reason for this bug is because of the
> need to avoid using the keyword face on the `when` of:
>
> (condition-case nil
> (foo)
> ((when error) ...))
>
> Adding corresponding tests for these things would be great.
Indeed.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Lars Ingebrigtsen, 2021/01/22
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Mauro Aranda, 2021/01/22
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Stefan Monnier, 2021/01/22
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode,
Lars Ingebrigtsen <=
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Stefan Monnier, 2021/01/23
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Lars Ingebrigtsen, 2021/01/24
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Lars Ingebrigtsen, 2021/01/24
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Eli Zaretskii, 2021/01/24
- bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Lars Ingebrigtsen, 2021/01/24
- bug#43265: [External] : bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Drew Adams, 2021/01/24
- bug#43265: [External] : bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Tassilo Horn, 2021/01/25
- bug#43265: [External] : bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Lars Ingebrigtsen, 2021/01/25
- bug#43265: [External] : bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Tassilo Horn, 2021/01/25
- bug#43265: [External] : bug#43265: 28.0.50; Inconsistent fontifying in elisp-mode, Stefan Monnier, 2021/01/25