This is very odd, and I think my system didn’t use to have this problem. I’m on a Windows XP system using cygwin. I have the environment variable $P4EDITOR set to “emacs”, but when I do a p4 submit, I get the error:
CreateProcess: "emacs" ".\t10640t25.tmp": The system cannot find the file specified.
Client side operation(s) failed. Command aborted.
Same thing happens when I set it to vi (except the error is with vi instead of emacs). When I unset $P4EDITOR entirely, the submit info somehow winds up opening up in notepad++ for me. Really strange, but I can’t actually save and submit the description I put in there.
It seems like the problem is with P4 itself where for some reason it can’t create, or open, or save the tmp file it uses to store submission information, but what that problem is is beyond me. Any ideas how to get p4 to open stuff in Emacs again, or at least to let me submit stuff somehow in command line? I’m pretty stuck.
Figured this out. Apparently Perforce has a special client for cygwin. I downloaded it from http://www.perforce.com/perforce/downloads/otherlist.html and replaced the p4.exe in my program files with it, and everything now works wonderfully. If anyone else has cygwin/p4 issues, I strongly recommend getting the cygwin client.