From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ar0x2ff@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#62889: 29.0.60; (setopt ...) does not give "assignment to free variable" warning Date: Sun, 16 Apr 2023 17:59:37 +0200 Message-ID: <2678912.mvXUDI8C0e@192.168.1.69> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40719"; mail-complaints-to="usenet@ciao.gmane.io" To: 62889@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 16 22:12:48 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po8jt-000AQU-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Apr 2023 22:12:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po8jE-0000z7-55; Sun, 16 Apr 2023 16:12:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po8jD-0000yl-1A for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 16:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po8jC-0000s5-NU for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 16:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1po8jC-0002Wa-J6 for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ar0x2ff@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Apr 2023 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62889 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16816759079645 (code B ref -1); Sun, 16 Apr 2023 20:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Apr 2023 20:11:47 +0000 Original-Received: from localhost ([127.0.0.1]:52578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po8iw-0002VV-LB for submit@debbugs.gnu.org; Sun, 16 Apr 2023 16:11:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1po4n2-0001Gr-71 for submit@debbugs.gnu.org; Sun, 16 Apr 2023 11:59:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1po4n1-0002es-Qx for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 11:59:43 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po4mz-0001fJ-TI for bug-gnu-emacs@gnu.org; Sun, 16 Apr 2023 11:59:43 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4ec9ccab8bbso875704e87.2 for ; Sun, 16 Apr 2023 08:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681660779; x=1684252779; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=tyMjzxvMRCQlEf5Ah4q/w+PpOs9nxvWI3umt/o5tc6s=; b=Hgv8OxbVUsiBla83oe5zSPkBNz9vgUd5hG1IOaTJC6t79H+7YUsIXVntER1h4l7TT8 8CKHb3sK15IIUSBlZneh8fwUz1JiPQ35Cmy/k7tFUbOfE4/UT9BvP+jYysmOKCFLJ8YN OqPB3vENdRzvit18N2k4mhgzXhFkISdDsfoY7iZCcfE4EVz1kF/B/0a7hB2FrDI5jfc1 YhqaUcvkm8haUrtFGrMWef+hfd5SkwJz1aAF7TVT+1VL/dNOARr5z/p07kGJnRs6c3z9 +UD2t7G8yOAUMvAm0lxKIREE3L1C++zXzdKkglTW1K4vyBU3KZNOAxyYAj41Xb2PjRXI Vu6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681660779; x=1684252779; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tyMjzxvMRCQlEf5Ah4q/w+PpOs9nxvWI3umt/o5tc6s=; b=Ij8b+NPUCfpWZELtPQwApN35MDBYdFCFTvi1SBS2Opdvgac00ENuYD3cEITJdwx8/J 6oNlBoYr5gLp9O2Kwz2UOpUfxEVLld4XdbPdpRUPgXMplLdwD9Yn7lAYMi7eun37zBpj MTgfAgnIjz18OMor3R/VkM1FSuc7swcPxtzNG3JqEigEPAGCIRRZN9YWIoO/ygIgp1nN YlUOfgG1Z6oZs5mkzwoaMU9yZzF5vtBn8acy202tMKOdynLTWk687Ti2eOxoUMcndWHM gCPTjq4H6m8kylaMIlQehcNwNk2BqeDtj+6av/quMz2HIyF1qqUwQlJgIuRaM3o2q31+ XCug== X-Gm-Message-State: AAQBX9fCusjY4YIywoWDu/qwAMdc0gXOIT4w2MKTw2yajlblI/pvXT+r NK3JEyAy0KX/RCCyzdPJPlxhh7lumCoXWg== X-Google-Smtp-Source: AKy350a9Nxt18rIP69iFkNoy54elaI1tNzg2VL9GwGYsWYUAUOU7ahuBK1PIE476GJEqQDSFB972AA== X-Received: by 2002:ac2:5dd5:0:b0:4ec:e32f:3d28 with SMTP id x21-20020ac25dd5000000b004ece32f3d28mr1019782lfq.32.1681660778950; Sun, 16 Apr 2023 08:59:38 -0700 (PDT) Original-Received: from 192.168.1.69 ([2001:b07:5d37:533e:346f:15eb:66d2:c3d7]) by smtp.gmail.com with ESMTPSA id o26-20020ac2495a000000b004eafabb4dc1sm1749144lfi.250.2023.04.16.08.59.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Apr 2023 08:59:38 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=ar0x2ff@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 16 Apr 2023 16:11:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260157 Archived-At: If I open emacs -q and write the following code in a Emacs Lisp buffer: ;;; init.el --- summary ;;; Commentary: ;;; Code: (setq var1 2) (customize-set-variable var2 2) (setopt var3 2) (provide 'init) ;;; init.el ends here I'll get the following errors, if i enable FlyMake: 7 6 warning e-f-b-c assignment to free variable =E2=80=98var1=E2=80=99 8 24 warning e-f-b-c reference to free variable =E2=80=98var2=E2=80=99 Why setopt is not underlined here? I know it's a new macro introduced in Em= acs=20 29 but I wonder if it is intended to be like this or the linter is just=20 misbehaving here. In GNU Emacs 29.0.60 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.6) of 2023-03-14 built on 2cafab91c998469c95c4917f66b01a98 System Description: Fedora Linux 37 (Thirty Seven) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-pgtk --with-native-compilation --enable-link-time-optimization build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu CC=3Dgcc 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=3Dg++ 'CXXFLAGS=3D-O2 -flto=3Dauto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: it_IT.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: flymake-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /usr/share/emacs/site-lisp/lilypond-init hides /usr/share/emacs/site-lisp/ site-start.d/lilypond-init =46eatures: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils noutline outline checkdoc lisp-mnt flymake-proc flymake project byte-opt compile text-property-search comint ansi-osc ansi-color ring thingatpt time-date cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 101023 9352) (symbols 48 8599 0) (strings 32 25108 1552) (string-bytes 1 788606) (vectors 16 18679) (vector-slots 8 373173 11952) (floats 8 37 38) (intervals 56 517 0) (buffers 976 16))