[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: |
Stefan Monnier |
Subject: |
Re: byte-optimize-set causes spurious byte compiler warnings |
Date: |
Thu, 03 Apr 2003 10:25:04 -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:
I wouldn't call them "spurious" but "additional".
> 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)
The code needs a (defvar tool-bar-map) to declare that
tool-bar-map is an externally defined variable.
Stefan
Re: byte-optimize-set causes spurious byte compiler warnings, Richard Stallman, 2003/04/06