From: davep DOT news2 AT hagbard DOT demon DOT co DOT uk (Dave Pearson) Newsgroups: comp.os.msdos.djgpp Subject: emacs getting confused about location of ~/.emacs Date: Thu, 28 May 1998 08:18:15 GMT Organization: Hagbard's World (A Private Internet Host) Sender: usenet AT hagbard DOT demon DOT co DOT uk Message-ID: Reply-To: davep DOT news2 AT hagbard DOT demon DOT co DOT uk Summary: emacs is getting confused about the location of ~/.emacs Keywords: EMACS DJGPP WIN95 OSR2 _EMACS .EMACS LOCATION Lines: 46 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I wonder if anyone can offer a suggestion as to what is going wrong here? I'm currently setting up my DJGPP environment on a brand new machine and everything has gone fine except for emacs. For some reason it is refusing to find it's init-file. On this new machine it would appear that emacs is confused about where my home directory is. For example, evaluating: (expand-file-name user-init-file) results in: "C:/~DAVEP/_emacs" if I'm in the root of drive C. It would also appear that emacs thinks it should find the init-file in: "/~DAVEP/_emacs" On my existing machine this is never a problem, emacs always thinks that my init-file is: "$HOME/_emacs" The only (obvious) difference between these two machines is that my existing machine is Win95 OSR1 and the new one is Win95 OSR2. On both machines I set HOME in AUTOEXEC.BAT ("C:\dave" on my old machine, "C:\Home\davep" on my new machine), LOGUSER is set to "DAVEP" and in both cases USER in DJGPP.ENV is set to "DAVEP". [emacs] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info TERM= SHELL=c:/djgpp/bin/bash SUSPEND=c:/4dos/4dos.com The emacs version is 20.2, built from source. Thanks in advance for any ideas or pointers you can provide. -- 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.