From: David Kastrup Date: Fri, 28 Sep 2007 06:19:42 GMT Subject: Re: Mergetool generating blank files (1.5.3) Message-ID: <85tzpfb9c1.fsf@lola.goethe.zz> In-Reply-To: <94ccbe710709272117s6dee1a8jad6edf71dfb13c81@mail.gmail.com> "Kelvie Wong" writes: > On 9/27/07, Theodore Tso wrote: > >> It's not that emacs sets $PWD via its first argument, but the output >> file is passed from emerge-files*-command to stashed in the per-buffer >> variable emerge-file-out, which in turn gets passed to the emacs lisp >> file write-file, which is what gets run when you run C-x C-w --- and >> write-file interprets a relative pathname based on the containing >> directory of the existing buffer. >> - Ted >> > > Ah yes, I just started reading up on elisp a little while ago :) > > I'd always assumed that emacs kept an internal "pwd" variable (i.e. > what's displayed with M-x pwd), but I guess my way of thinking is > archaic and deprecated :( It does. For every buffer. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum