Chong Yidong writes: > > You're right; it's probably better to fall back on / instead of ~. I think the test for file-remote-p is covered by the first line of the func so it's not needed in the dir condition bit, per below. I still think "/" might as well be used unconditionally though. The reason I'm still banging on about that is that there's probably 3 or 4 other places in emacs which also don't care about the current directory when spawning a program. They would make use of the same idiom, whatever it might best be. (I arrived at this first when some of my own code bombed in a non-existent default-directory. I've seen it in other people's code too.)