unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9109: 24.0.50; Warning: assignment to free variable (unwind-protect)
@ 2011-07-17 15:37 Roland Winkler
  0 siblings, 0 replies; only message in thread
From: Roland Winkler @ 2011-07-17 15:37 UTC (permalink / raw)
  To: 9109

cat > foo.el <<EOF
(unwind-protect
    (let ((foo "foo"))
      (insert foo))
  (setq foo "bar"))
EOF

Compiling foo.el results in the warning:

  bar.el:2:12:Warning: assignment to free variable `foo'

The line number is wrong. The assignment to free variable `foo' happens
in the unwindform.

In GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2011-07-11 on regnitz





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-17 15:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-17 15:37 bug#9109: 24.0.50; Warning: assignment to free variable (unwind-protect) Roland Winkler

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).