unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Kevin Ryde <user42@zip.com.au>
Cc: 6376@debbugs.gnu.org
Subject: bug#6376: 23.2; byte compile add-to-list report free variable
Date: Mon, 31 Jan 2022 17:58:16 +0100	[thread overview]
Message-ID: <87o83rzvtj.fsf@gnus.org> (raw)
In-Reply-To: <87y6eqia4d.fsf@blah.blah> (Kevin Ryde's message of "Tue, 08 Jun 2010 11:30:42 +1000")

Kevin Ryde <user42@zip.com.au> writes:

> I made a mistake with a variable name to add-to-list and wondered if the
> byte compiler might report
>
>     (add-to-list 'nosuchvariable ...)
>
> as a free variable, similar to the report for
>
>     (set 'nosuchvariable ...)

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

I tried this byte-compiling such a file in Emacs 29, and I got:

Compiling file /tmp/foo.el at Mon Jan 31 17:56:17 2022
foo.el:2:15: Warning: reference to free variable ‘nosuchvariable’
foo.el:2:15: Warning: assignment to free variable ‘nosuchvariable’

So I guess it's been fixed at some point in the decade since this was
reported, and I'm therefore closing this bug report.  (If there's more
to be done, please respond to the debbugs address and we'll reopen.)

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





  parent reply	other threads:[~2022-01-31 16:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08  1:30 bug#6376: 23.2; byte compile add-to-list report free variable Kevin Ryde
2010-06-09  1:29 ` Stefan Monnier
2010-06-12 23:11   ` Kevin Ryde
2010-08-06 23:45   ` Kevin Ryde
2010-08-10  9:12     ` Stefan Monnier
2010-09-21  1:34       ` Kevin Ryde
2020-11-19  4:05     ` Stefan Kangas
2020-11-20  5:06       ` Stefan Kangas
2022-01-31 16:58 ` Lars Ingebrigtsen [this message]
2022-02-01 23:31   ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o83rzvtj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=6376@debbugs.gnu.org \
    --cc=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).