Provide byte-compiler warnings when set-default a read-only var.
commit9ae0c31028f246f77a16f4989d5c63bfbbee4832
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Apr 2010 16:26:11 +0000 (23 12:26 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Apr 2010 16:26:11 +0000 (23 12:26 -0400)
tree4eec67ea6b8cbfb6c3a9f7eef29239608b09404c
parentbd486b039f9478afaff25e358b9e2c615e39f5c6
Provide byte-compiler warnings when set-default a read-only var.
* emacs-lisp/bytecomp.el (byte-compile-set-default): New function.
(byte-compile-setq-default): Optimize for the
single-var case and don't call byte-compile-form in this case to avoid
inf-loop with byte-compile-set-default.
lisp/ChangeLog
lisp/emacs-lisp/bytecomp.el
lisp/tool-bar.el