Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mcnc!duke!khera From: khera@thneed.cs.duke.edu (Vick Khera) Newsgroups: comp.windows.x Subject: Re: HELP**EMACS ON X*** Message-ID: Date: 15 Feb 91 16:01:22 GMT References: <59846@eerie.acsu.Buffalo.EDU> Sender: news@duke.cs.duke.edu Distribution: usa Organization: Duke University CS Dept., Durham, NC Lines: 33 Nntp-Posting-Host: thneed.cs.duke.edu In-reply-to: manoj@acsu.buffalo.edu's message of 14 Feb 91 19:44:27 GMT In article <59846@eerie.acsu.Buffalo.EDU> manoj@acsu.buffalo.edu (Manoj Mehta) writes: This is my second posting asking for help on the same subject. Will sombody know what could be the problem with my x windows , as when i run emacs on x windows it does ont pick files which are present in that dir. It will pick files only from the home dir. I'LL REALLY APPRECIATE THE HELP ON THIS MATTER.... THANX manoj i tried to reply to your first message via e-mail, but it bonced back from your machine, acsu.buffalo.edu, claiming that it had no idea who you, manoj@acsu.buffalo.edu, were. if you want help, at least let people have a way of getting in touch with you. here's my original response: first off, this has *nothing* to do with X. assuming you are running GNU emacs, which it looks like, it has everything to do with the shell you are running in. some shells will keep and update an environment variable PWD. if you switch shells, and the other shell doesn't update PWD, then you will have problems. emacs believes the value of PWD to be your working directory. the thing to do is to unset the variable PWD: in csh, unsetenv PWD will do the trick. i'm not sure about other shells. then emacs will work as you expect. send questions related to GNU emacs to gnu.emacs.help or comp.emacs, not here. v. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera, Gradual Student/Systems Guy Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528