So for example a path like:
Needs to be converted to:
The following interactive elisp function does that with the currently selected text:
"Converts a win32 path into a cygwin happy one"
(narrow-to-region (point) (mark))
(while (search-forward ":" nil t)
(replace-match "" nil t))
(while (search-forward "\\" nil t)
(replace-match "/" nil t)))))
Nothing much clever going on here, just two search and replaces for the slashes and to removed the colon, and I insert the cygdrive prefix.