From: davep DOT news3 AT hagbard DOT demon DOT co DOT uk (Dave Pearson) Newsgroups: comp.os.msdos.djgpp Subject: Re: emacs getting confused about location of ~/.emacs Date: Tue, 2 Jun 1998 10:32:39 GMT Organization: Hagbard's World (A Private Internet Host) Sender: usenet AT hagbard DOT demon DOT co DOT uk Message-ID: References: Reply-To: davep DOT news3 AT hagbard DOT demon DOT co DOT uk Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Mon, 1 Jun 1998 19:42:14 +0300 (IDT), Eli Zaretskii wrote: > > On Sat, 30 May 1998, Dave Pearson wrote: > > > Set DJGPP=C:\DJGPP\DJGPP.ENV > > Set LOGNAME=davep > > This is the source of your grief. You set LOGNAME, but DJGPP.ENV (or some > other piece of software) sets USER, and I guess the value of these two is > different. Yes, this does appear to be the cause of the problem, well, "sort of". > Try evaluating (user-login-name) and (user-real-login-name), and see what > they print. Ok, to re-cap, the "problem" machine has "Set LOGNAME=davep" in AUTOEXEC.BAT and "+USER=davep" in DJGPP.ENV (USER isn't set in the environment). (user-login-name) --> "DAVEP" (user-real-login-name) --> "davep" > Any difference between these two causes Emacs to decide that your real > login name is different from your login name (as if you did an "su" on > Unix), and therefore Emacs tries to get the home directory of a user davep > instead of using HOME. But DJGPP only supports a single user at a time, > whose name is taken from USER, so looking for ~davep fails, and you are > left with ~davep verbatim. Yup, this is the difference, and, the only difference is the case. However, and this is the interesting bit, LOGNAME, in AUTOEXEC.BAT, is set to "davep", not "DAVEP". For some reason that I can't yet fathom it is getting turned into an upper case value. Hmm, in fact, now that I've checked again it would appear that, for some reason, *everything* in my environment is being converted to uppercase. Eli, thanks for your input. Now I've got to find out what is buggering up my environment. :-( -- Take a look in Hagbard's World: | w3ng - The WWW Norton Guide reader. http://www.acemake.com/hagbard/ | ng2html - The NG to HTML converter. http://www.hagbard.demon.co.uk/ | eg - Norton Guide reader for Linux. Free software, including........| dgscan - DGROUP scanner for Clipper.