[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: byte-optimize-set causes spurious byte compiler warnings
From: |
Richard Stallman |
Subject: |
Re: byte-optimize-set causes spurious byte compiler warnings |
Date: |
Thu, 03 Apr 2003 17:52:12 -0500 |
This recent change:
,----
| 2003-03-25 Stefan Monnier <address@hidden>
|
| * emacs-lisp/byte-opt.el (byte-optimize-set): New.
| Turn `set' into `setq' when applicable.
`----
causes spurious byte compiler warnings:
gnus-art.el:3549:4:Warning: assignment to free variable tool-bar-map
for code like this:
(set (make-local-variable 'tool-bar-map) gnus-summary-tool-bar-map)
It is right for set to issue warnings about undeclared variables
in this case. However, tool-bar-map is declared, so it should not
get a warning.
Re: byte-optimize-set causes spurious byte compiler warnings,
Richard Stallman <=