From xemacs-m  Sun Jul 27 16:26:48 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA12764
	for <xemacs-beta@xemacs.org>; Sun, 27 Jul 1997 16:26:47 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id OAA25942;
	Sun, 27 Jul 1997 14:30:36 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Namespace pollution problems, efs, and cl-macs ???
References: <87k9ickz2v.fsf@bittersweet.inetarena.com>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: karlheg+xemacs@inetarena.com's message of "27 Jul 1997 13:41:12 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 27 Jul 1997 14:30:35 -0700
Message-ID: <m2u3hgtc78.fsf@altair.xemacs.org>
Lines: 44
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta16) - "Budapest"

Karl M Hegbloom <karlheg+xemacs@inetarena.com> writes:

>  I'm having trouble with a program I'm writing, which is tickling a
> bug in XEmacs, (?) cl-macs, (?) efs, and maybe (?) gnus.

None of the above.  But `namespace pollution' is dead on.

> (defstruct user
>   (uid nil)
>   (gid nil)
>   (gecos nil)
>   (home "")
>   (shell "")
>   (groups nil))

Note that the function `user-uid' is an XEmacs built-in function and
is used by efs-netrc.el.  Note also that the defstruct macro creates
functions of the form <structname>-<fieldname> as field accessor
functions.

Here is a simple illustration of what has happened.

xemacs -q -no-site-file
C-h f user-uid
=> user-uid: ()
=>   -- a built-in function.
=> Return the effective uid of Emacs, as an integer.
(defstruct user
  (uid nil)
  (gid nil)
  (gecos nil)
  (home "")
  (shell "")
  (groups nil))
=> Loading cl-macs...
=> Loading cl-macs...done
=> user
C-h f user-uid
user-uid: (cl-x)
  -- a Lisp function.
not documented

I suggest renaming your structure to not collide with the XEmacs
built-in.  Call it `*user*' or somesuch.

