Chris Palmer <chris(a)nodewarrior.org> writes:
Vin Shelton writes:
> a) change the default value of nt-fake-unix-uid
> b) put an explicit note in the docstring of enable-local-eval
> explaining this Windoze Weirdness(TM), or
> c) do nothing
I'm new to Elisp, but I have some experience with CL and Scheme.
Is there a function or variable telling us the platform XEmacs is
running on? If so, you could wrap the offending code in a
platform-dependent bit:
(if (and (not (zerop (user-uid)))
==>
(if (and (not (and (zerop (user-uid)) (eq (platform) 'winders)))))
Or such.
To me this makes the most sense, since the user-uid on a Windows machine
is just there to satisfy code that thinks it's running on a Unix
machine.
Changing the default value of nt-fake-unix-uid might break some stuff
that requires it to be zero or non-zero. But I don't know if any such
code exists. But it doesn't break anything, it might be cleaner than my
idea.
I don't like this solution much because I would potentialy have to
think about adding a clause for any other single-user systems. This
doesn't feel like a very clean solution to me.
Thanks for your suggestion, though.
- Vin