From: Kelvie Wong Date: Fri, 28 Sep 2007 04:17:26 GMT Subject: Re: Mergetool generating blank files (1.5.3) Message-ID: <94ccbe710709272117s6dee1a8jad6edf71dfb13c81@mail.gmail.com> In-Reply-To: <20070927225218.GD8688@thunk.org> 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 :( -- Kelvie