From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#37074: 27.0.50; Emacs Lisp mode: Special form names used as variable names sometimes have font-lock-keyword-face Date: Sun, 18 Aug 2019 11:35:32 -0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000077a28a0590652387" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197008"; mail-complaints-to="usenet@blaine.gmane.org" To: 37074@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 18 16:36:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hzMI1-000p8S-Bv for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Aug 2019 16:36:13 +0200 Original-Received: from localhost ([::1]:41432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzMHz-0004l5-VA for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Aug 2019 10:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55670) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzMHr-0004jf-Q3 for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzMHq-0007zt-6U for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hzMHq-0007zp-3J for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hzMHp-0005fw-Ve for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2019 10:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2019 14:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37074 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.156613895421801 (code B ref -1); Sun, 18 Aug 2019 14:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2019 14:35:54 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165323 Archived-At: --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--