GNU bug report logs -
#43265
28.0.50; Inconsistent fontifying in elisp-mode
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Mon, 7 Sep 2020 20:06:02 UTC
Severity: minor
Tags: confirmed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #18 received at 43265 <at> debbugs.gnu.org (full text, mbox):
> 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.
> (defun lisp--el-non-funcall-position-p (pos)
> "Heuristically determine whether POS is an evaluated position."
>
> [...]
>
> (and (eq parent 'condition-case)
> (progn
> (forward-sexp 2)
> (< (point) pos))))))))))
>
>
> And this doesn't count any of the error clauses as being in a funcall
> position, so no macros in those get a keyword-face.
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.
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.
Stefan
This bug report was last modified 4 years and 174 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.