# HG changeset patch # User Juanma Barranquero # Date 1119851963 0 # Node ID b5df2fc9aa4e07d522c599ac217064cb43cd04e2 # Parent ac833c86f212f682fb6359d55e89a9f0eec0382d (Fdefvar): Don't try to set constant symbols. diff -r ac833c86f212 -r b5df2fc9aa4e src/eval.c --- a/src/eval.c Mon Jun 27 00:17:06 2005 +0000 +++ b/src/eval.c Mon Jun 27 05:59:23 2005 +0000 @@ -806,6 +806,10 @@ register Lisp_Object sym, tem, tail; sym = Fcar (args); + if (SYMBOL_CONSTANT_P (sym)) + error ("Cannot defvar a constant symbol: %s", + SDATA (SYMBOL_NAME (sym))); + tail = Fcdr (args); if (!NILP (Fcdr (Fcdr (tail)))) error ("Too many arguments");