From xemacs-m  Wed May 14 19:46:30 1997
Received: from mailbox2.ucsd.edu (mailbox2.ucsd.edu [132.239.1.54])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id TAA28781
	for <xemacs-beta@xemacs.org>; Wed, 14 May 1997 19:46:29 -0500 (CDT)
Received: from sdnp5.ucsd.edu (sdnp5.ucsd.edu [132.239.79.10]) by mailbox2.ucsd.edu (8.8.5/8.6.9) with SMTP id RAA28523 for <xemacs-beta@xemacs.org>; Wed, 14 May 1997 17:46:31 -0700 (PDT)
Received: by sdnp5.ucsd.edu (SMI-8.6/SMI-SVR4)
	id RAA23452; Wed, 14 May 1997 17:47:23 -0700
To: xemacs-beta@xemacs.org
Subject: Re: Byte-compiler warning
References: <9705142333.AA03165@thymus.synaptics.com>
X-Face: "oX;zS#-JU$-,WKSzG.1gGE]x^cIg!hW.dq>.f6pzS^A+(k!T|M:}5{_%>Io<>L&{hO7W4cicOQ|>/lZ1G(m%7iaCf,6Qgk0%%Bz7b2-W3jd0m_UG\Y;?]}4s0O-U)uox>P3JN)9cm]O\@,vy2e{`3pb!"pqmRy3peB90*2L
Mail-Copies-To: never
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: David Moore <dmoore@ucsd.edu>
Date: 14 May 1997 17:47:23 -0700
In-Reply-To: Dave Gillespie's message of Wed, 14 May 97 16:33:20 -0700
Message-ID: <rvaflxr278.fsf@sdnp5.ucsd.edu>
Lines: 22
X-Mailer: Gnus v5.4.45/XEmacs 20.1

Dave Gillespie <daveg@synaptics.com> writes:

> David Moore writes:
> > I suggest that you use:
> > 
> > (cl-push  (list 'or (list 'boundp (list 'quote karg))
> > 		(list 'set
> > 		      (list 'quote karg))
> > 		      (list 'quote karg))))
> 
> Why add that complication?  XEmacs will still need to accept
> legacy code which tries to set a keyword to itself.  Setting a
> keyword to itself more than once should be harmless.

If we want to have something treated as a constant, and we are currently 
working on a piece of code which is assigning to it like a variable, it
makes sense to me to put in the check now.  Rather than waiting 2 years
and having to find it again when someone finally decides that keywords
really are constant and signals a runtime error.

I don't see it as a complication; I see it as a smart hedge on the
future.

