delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/02/07:00:47

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: <slrn6n7l65.3rh.davep.news3@hagbard.demon.co.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980601194146 DOT 16341G-100000 AT is>
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

On Mon, 1 Jun 1998 19:42:14 +0300 (IDT), Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019