emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient: support `/' directory separator on w32


From: Lennart Borgman
Subject: Re: emacsclient: support `/' directory separator on w32
Date: Sat, 25 Nov 2006 02:25:24 +0100
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Michael Mauger wrote:
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


I do not understand "(The forward slash case is handled previously.)" -- is that correct?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]