emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 8f28a1b: Tweak `condition-case' keyword highlights


From: Stefan Monnier
Subject: Re: master 8f28a1b: Tweak `condition-case' keyword highlights
Date: Sun, 24 Jan 2021 16:32:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> +(ert-deftest test-elisp-font-keywords-5 ()
> +  (should (eq (test--font '(condition-case (when a)
> +                               (foo)
> +                             (error t))
> +                          "(\\(when\\)")
> +              nil)))

FWIW, I'd be just as happy if `when` were highlighted with a keyword
face in this case: it's invalid code anyway, so the only highlighting
that would actually be helpful is one with some kind of error/warning
face, but I think it's best to leave it to `flymake-mode` to do that for us.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]