"Kelvie Wong" [off-list ref] writes:
On 9/27/07, Theodore Tso [off-list ref] wrote:
quoted
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