GNU bug report logs - #37074
27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face

Previous Next

Package: emacs;

Reported by: Mauro Aranda <maurooaranda <at> gmail.com>

Date: Sun, 18 Aug 2019 14:36:01 UTC

Severity: minor

Found in version 27.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 37074 <at> debbugs.gnu.org
Subject: bug#37074: 27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face
Date: Fri, 20 May 2022 03:47:10 +0200
Mauro Aranda <maurooaranda <at> gmail.com> writes:

> Starting from emacs -Q, in the *scratch* buffer type:
> (let ((function 'foo))
>   function)
>
> Note that function gets the font-lock-keyword-face.  I think it shouldn't,
> because it is being used as a variable.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This has been fixed by now.

> Similarly, if you type:
> (defun foo (function)
>   nil)
>
> the same happens.

And I fixed this in Emacs 29 now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.