Emacs supports forward slashes as directory separators on W32. This small
patch makes emacsclient recognize absolute filenames that use a forward slash
rather than a backward slash on W32.
------------------------------------------------------------------------
Index: emacs/lib-src/emacsclient.c
===================================================================
RCS file: /cvsroot/emacs/emacs/lib-src/emacsclient.c,v
retrieving revision 1.93
diff -c -r1.93 emacsclient.c
*** emacs/lib-src/emacsclient.c 23 Nov 2006 01:50:59 -0000 1.93
--- emacs/lib-src/emacsclient.c 24 Nov 2006 05:30:32 -0000
***************
*** 452,461 ****
#ifdef WINDOWSNT
/* X:\xxx is always absolute; X:xxx is an error and will fail. */
if (islower (tolower (filename[0]))
! && filename[1] == ':' && filename[2] == '\\')
return TRUE;
/* Both \xxx and \\xxx\yyy are absolute. */
if (filename[0] == '\\') return TRUE;
#endif
--- 452,462 ----
#ifdef WINDOWSNT
/* X:\xxx is always absolute; X:xxx is an error and will fail. */
if (islower (tolower (filename[0]))
! && filename[1] == ':' && (filename[2] == '\\' || filename[2] == '/'))
return TRUE;
/* Both \xxx and \\xxx\yyy are absolute. */
+ /* (The forward slash case is handled previously.) */
if (filename[0] == '\\') return TRUE;
#endif