1. I am using GNU Emacs. replace-in-string  was defined in color-theme.el it came in my autocompletion.
cygwin p4 executable dependes on shared workspace. It can't use windows style paths.
2. copy-paste business
I'll clean it up.