From unknown Tue Jun 17 20:17:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37074 <37074@debbugs.gnu.org> To: bug#37074 <37074@debbugs.gnu.org> Subject: Status: 27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face Reply-To: bug#37074 <37074@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:17:09 +0000 retitle 37074 27.0.50; Emacs Lisp mode: Special form names used as variable= names sometimes have font-lock-keyword-face reassign 37074 emacs submitter 37074 Mauro Aranda severity 37074 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 18 10:35:54 2019 Received: (at submit) by debbugs.gnu.org; 18 Aug 2019 14:35:54 +0000 Received: from localhost ([127.0.0.1]:58333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzMHh-0005fZ-Vi for submit@debbugs.gnu.org; Sun, 18 Aug 2019 10:35:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:47103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hzMHf-0005fR-St for submit@debbugs.gnu.org; Sun, 18 Aug 2019 10:35:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzMHd-0004dC-S6 for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:35:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzMHc-0007uL-2Z for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:35:49 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:38168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzMHb-0007tQ-Pp for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:35:48 -0400 Received: by mail-lj1-x22e.google.com with SMTP id x3so5173165lji.5 for ; Sun, 18 Aug 2019 07:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/o4Fvqj8kmt/dZ3/Wsvy61UgQQYaq+lCqCruJ6mKGjI=; b=FrQOvFb4RGsGVUqqT+09GVzwF8B7/4Y1eIqMwFVP9ORBY4KcoToME4azI9+5RZiAtn 4Ukdr2J12FcHX5A3/e7WTCjsgx9rhyOG2zD/GvfO6y09kPGRu9FeK9R7n9Mu95yofnpW gb5TwGtULrSVdAryybXN3eNV3BEMxOEWmcNal1LWOFjXjlztvofxoxrXZlzfDhVGaiOT jUwg5Zr4keeWmxUfhvTvgAHXgZUGI+nh0E3wFh4G7NoOkS/rU6jdzvX11ZbPmEZNrGPX UMV3MQB2mQ81DKupeMG7PPxABCuXU1ogv8+ZwBzhsg6IW+2rPFi3WUC9EE9xVlWXOjAx s7qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/o4Fvqj8kmt/dZ3/Wsvy61UgQQYaq+lCqCruJ6mKGjI=; b=CcBLv+kbiuLvOxxFZOUM3BGG6SCTgkCK6COCxnd1TTlpMPwlm/G176mQ1wetHewUUV SavpbbZyJqJw6vNbnIfTEveZfe1YOoCsn0BM8uh3J3QKDLadrEE74QNHcj3NRn77Xzlm fdDGGTAjHMydN6aLT1fXcbbfPj49BTwmKSBHgnHMC+7xurjATYOagHCSlxIdy6OliCz/ KB8EC4EZ/fuzf286l8OcDqCnWIGIznR4azlABUOxRGATY8GRRpqrpSeqC2PGC+QXW3D5 3A+z9ClHlVmeZMLp2bx9z28ehDJXSy1vdhlIwORXq4sREMJnnZ0kAjdQXCCqGol5+bYA I/kg== X-Gm-Message-State: APjAAAXXXobwOaDR0JAm8Yp6DD0hHlXA6HQA6YybmrPU+5GjMtG1gzPD UkMpURITYcSYlt/PY/lMOiW3CDKj/ecR2x6HBGRRnKLH4Q8= X-Google-Smtp-Source: APXvYqwR9Z3IhEHCNsOQLPZMxoOj7DAHjs1vbTGe+YstBHF4kzPf7Hw8kJjMysbI/SgG4LuVfBxHzbY2XqyoK0FIkhE= X-Received: by 2002:a05:651c:282:: with SMTP id b2mr10323787ljo.208.1566138944691; Sun, 18 Aug 2019 07:35:44 -0700 (PDT) MIME-Version: 1.0 From: Mauro Aranda Date: Sun, 18 Aug 2019 11:35:32 -0300 Message-ID: Subject: 27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face To: bug-gnu-emacs Content-Type: multipart/alternative; boundary="00000000000077a28a0590652387" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22e X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000077a28a0590652387 Content-Type: text/plain; charset="UTF-8" Hello. 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. Similarly, if you type: (defun foo (function) nil) the same happens. It probably happens with others special forms, but function is quite noticeable, because it is not uncommon to use it as an argument or as a variable inside a let expression. Best regards, Mauro. In GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-08-18 built on the-blackbeard Repository revision: ee1c638cff27f3bcdd8936617d67f79fe07d6df1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.6 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure CFLAGS=-O3' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils init-octave init-rmail init-cc-mode init-c yasnippet company-c-preprocessor rx cl-extra help-mode company edmacro kmacro pcase init-yasnippet init-global deeper-blue-theme finder-inf init-package info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 195584 11573) (symbols 24 14325 1) (strings 16 66994 3503) (string-bytes 1 1758229) (vectors 8 20799) (vector-slots 4 279614 11616) (floats 8 42 25) (intervals 28 210 0) (buffers 564 11) (heap 1024 11870 899)) --00000000000077a28a0590652387 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

Starting from emacs -= Q, in the *scratch* buffer type:
(let ((function 'foo))
=C2=A0 fu= nction)

Note that function gets the font-lock-keyword-face.=C2=A0 I = think it shouldn't,
because it is being used as a variable.

S= imilarly, if you type:
(defun foo (function)
=C2=A0 nil)

the s= ame happens.

It probably happens with others special forms, but func= tion is quite
noticeable, because it is not uncommon to use it as an arg= ument or as a
variable inside a let expression.

Best regards,
= Mauro.

In GNU Emacs 27.0.50 (build 1, i686-pc-linux-gnu, GTK+ Versio= n 3.18.9)
=C2=A0of 2019-08-18 built on the-blackbeard
Repository revi= sion: ee1c638cff27f3bcdd8936617d67f79fe07d6df1
Repository branch: master=
Windowing system distributor 'The X.Org Foundation', version 11= .0.11906000
System Description: Ubuntu 16.04.6 LTS

Recent message= s:
For information about GNU Emacs and the GNU system, type C-h C-a.
=
Configured using:
=C2=A0'configure CFLAGS=3D-O3'

Conf= igured features:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLI= B NOTIFY INOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FL= T LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS PDUMPER = LCMS2 GMP

Important settings:
=C2=A0 value of $LANG: en_US.utf8=C2=A0 value of $XMODIFIERS:
=C2=A0 locale-coding-system: utf-8-unix<= br>
Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0= tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
= =C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool= -bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryp= tion-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 column-number-mod= e: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

= Load-path shadows:
None found.

Features:
(shadow sort mail-ext= r emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml = mml-sec epa derived epg epg-config gnus-util
rmail rmail-loaddefs text-p= roperty-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc223= 1 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm= -util mail-prsvr mail-utils init-octave
init-rmail init-cc-mode init-c y= asnippet company-c-preprocessor rx
cl-extra help-mode company edmacro km= acro pcase init-yasnippet
init-global deeper-blue-theme finder-inf init-= package info package
easymenu browse-url url-handlers url-parse auth-sou= rce cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json s= ubr-x map
url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loadde= fs cl-lib
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float= -type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset= image
regexp-opt fringe tabulated-list replace newcomment text-mode eli= sp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch t= imer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-cor= e
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-langvietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
h= ebrew greek romanian slovak czech european ethiopic indian cyrillic
chin= ese composite charscript charprop case-table epa-hook jka-cmpr-hook
help= simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button f= aces cus-face macroexp files text-properties overlay sha1 md5
base64 for= mat env code-pages mule custom widget hashtable-print-readable
backquote= threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font= -render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-proc= ess emacs)

Memory information:
((conses 8 195584 11573)
=C2=A0= (symbols 24 14325 1)
=C2=A0(strings 16 66994 3503)
=C2=A0(string-byte= s 1 1758229)
=C2=A0(vectors 8 20799)
=C2=A0(vector-slots 4 279614 116= 16)
=C2=A0(floats 8 42 25)
=C2=A0(intervals 28 210 0)
=C2=A0(buffe= rs 564 11)
=C2=A0(heap 1024 11870 899))
--00000000000077a28a0590652387-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 19 21:47:21 2022 Received: (at 37074) by debbugs.gnu.org; 20 May 2022 01:47:21 +0000 Received: from localhost ([127.0.0.1]:37006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrrjc-0008G2-VP for submit@debbugs.gnu.org; Thu, 19 May 2022 21:47:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrrjb-0008Al-V3 for 37074@debbugs.gnu.org; Thu, 19 May 2022 21:47:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0gDhsMQ4To+sKY3Bgmkm34wq5h/JCUs7FO0gVl2SahE=; b=M6BmvtWoYM8AExjw1m4mxITiat Rq3kmUZYeylKUVTJKfBIOAKHaxHJtoumjjhiviqA4Bz733XIPADSlhndZMlqWKnW0mfzhcTm0eS/l LiHQduPG8VGLId0MkZcq4N9fVrH6wH9MeVuwjsGii8hbg9BQfy4RCcFIeFNYFN4fYPiY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrrjT-00014F-Df; Fri, 20 May 2022 03:47:13 +0200 From: Lars Ingebrigtsen To: Mauro Aranda Subject: Re: bug#37074: 27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face References: X-Now-Playing: Tuxedomoon's _Suite En Sous-Sol-Time To Lose-Short Stories_: "The Cage" Date: Fri, 20 May 2022 03:47:10 +0200 In-Reply-To: (Mauro Aranda's message of "Sun, 18 Aug 2019 11:35:32 -0300") Message-ID: <8735h57z6p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mauro Aranda 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37074 Cc: 37074@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mauro Aranda 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 From debbugs-submit-bounces@debbugs.gnu.org Thu May 19 21:47:25 2022 Received: (at control) by debbugs.gnu.org; 20 May 2022 01:47:25 +0000 Received: from localhost ([127.0.0.1]:37009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrrjh-0008K1-5e for submit@debbugs.gnu.org; Thu, 19 May 2022 21:47:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrrjg-0008EK-6L for control@debbugs.gnu.org; Thu, 19 May 2022 21:47:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UJgJeefRPTd8AkDXUpyADnoCDXU7bgHXvWUQdDtY5c0=; b=mZw0IU5EG4Vtfmh+buq3cLKz2n uOU5qZKjukASu+TU25o897HrCnuwu+ez8W0JF9X6QUNzS1UowoGZIQyyc8E8ECw3cpwrKaSl0NQLT XnwNtYI/mnxDG1gYxZOEweUvXaadesM228P0EvzZjR0h2WO0uiN0s2cnGCTXTY5RQmbk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrrjY-00014P-Hi for control@debbugs.gnu.org; Fri, 20 May 2022 03:47:18 +0200 Date: Fri, 20 May 2022 03:47:15 +0200 Message-Id: <871qwp7z6k.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37074 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 37074 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 37074 29.1 quit From unknown Tue Jun 17 20:17:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 17 Jun 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator