all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacsclient: support `/' directory separator on w32
@ 2006-11-24  5:45 Michael Mauger
  2006-11-24 20:59 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 113+ messages in thread
From: Michael Mauger @ 2006-11-24  5:45 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

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.

[-- Attachment #2: ec-wslash.diff --]
[-- Type: text/plain, Size: 1085 bytes --]

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
  

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 113+ messages in thread

end of thread, other threads:[~2006-11-30 19:50 UTC | newest]

Thread overview: 113+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-24  5:45 emacsclient: support `/' directory separator on w32 Michael Mauger
2006-11-24 20:59 ` Eli Zaretskii
2006-11-25  0:15 ` Jason Rumney
2006-11-25  0:21   ` Juanma Barranquero
2006-11-25 10:35   ` Eli Zaretskii
2006-11-25 10:56     ` Andreas Schwab
2006-11-25 11:03       ` Eli Zaretskii
2006-11-25 14:26         ` Andreas Schwab
2006-11-25 14:40           ` Eli Zaretskii
2006-11-25 14:51             ` Andreas Schwab
2006-11-25 15:12               ` Eli Zaretskii
2006-11-25 11:15     ` Jason Rumney
2006-11-25 13:19       ` Eli Zaretskii
2006-11-25 13:33       ` Juanma Barranquero
2006-11-26 12:19         ` Richard Stallman
2006-11-25  1:25 ` Lennart Borgman
2006-11-25  1:54   ` Jason Rumney
2006-11-27 19:16   ` Stuart D. Herring
2006-11-27 20:17     ` Juanma Barranquero
2006-11-28  4:31       ` Eli Zaretskii
2006-11-28  8:26         ` David Kastrup
2006-11-28 11:59           ` Juanma Barranquero
2006-11-28 12:36             ` David Kastrup
2006-11-28 12:59               ` Juanma Barranquero
2006-11-28 13:05                 ` David Kastrup
2006-11-28 13:37                   ` Juanma Barranquero
2006-11-28 13:54                     ` Juanma Barranquero
2006-11-28 14:12                       ` Lennart Borgman
2006-11-28 14:18                         ` Juanma Barranquero
2006-11-28 14:20                           ` Lennart Borgman
2006-11-28 14:31                             ` Juanma Barranquero
2006-11-28 14:41                               ` Lennart Borgman
2006-11-28 14:52                                 ` Juanma Barranquero
2006-11-28 15:39                                 ` David Kastrup
2006-11-28 15:43                                   ` Lennart Borgman
2006-11-28 20:15                                     ` Eli Zaretskii
2006-11-28 23:12                                       ` Lennart Borgman
2006-11-29  4:26                                         ` Eli Zaretskii
2006-11-29  8:32                                           ` Lennart Borgman
2006-11-29 18:20                                             ` Eli Zaretskii
2006-11-29 22:30                                               ` Lennart Borgman
2006-11-29 23:30                                                 ` Lennart Borgman
2006-11-30  4:20                                                 ` Eli Zaretskii
2006-11-28 14:49                               ` David Kastrup
2006-11-28 14:52                                 ` Lennart Borgman
2006-11-28 14:56                                   ` David Kastrup
2006-11-28 14:24                           ` David Kastrup
2006-11-28 14:33                             ` Juanma Barranquero
2006-11-28 14:35                             ` Lennart Borgman
2006-11-28 14:37                               ` Juanma Barranquero
2006-11-28 14:42                                 ` Lennart Borgman
2006-11-28 14:51                                   ` Juanma Barranquero
2006-11-28 14:55                                     ` Lennart Borgman
2006-11-28 19:58                         ` Eli Zaretskii
2006-11-28 14:20                       ` David Kastrup
2006-11-28 14:28                         ` Juanma Barranquero
2006-11-28 14:36                         ` Lennart Borgman
2006-11-28 20:03                         ` Eli Zaretskii
2006-11-28 22:11                           ` David Kastrup
2006-11-28 23:13                             ` Lennart Borgman
2006-11-28 23:25                               ` David Kastrup
2006-11-29  0:53                                 ` Lennart Borgman
2006-11-29  1:38                                   ` David Kastrup
2006-11-28 23:28                               ` Juanma Barranquero
2006-11-29  0:51                                 ` Lennart Borgman
2006-11-29  1:11                                   ` Juanma Barranquero
2006-11-29  4:28                                   ` Eli Zaretskii
2006-11-29  8:29                                     ` Lennart Borgman
2006-11-29  9:57                                       ` David Kastrup
2006-11-29 16:08                                         ` Lennart Borgman
2006-11-29 16:24                                           ` Juanma Barranquero
2006-11-29 16:37                                             ` Lennart Borgman
2006-11-29 18:55                                               ` Eli Zaretskii
2006-11-29 18:54                                             ` Eli Zaretskii
2006-11-29 19:59                                               ` Juanma Barranquero
2006-11-29 18:46                                           ` Eli Zaretskii
2006-11-29 19:02                                             ` Lennart Borgman
2006-11-29 19:31                                               ` David Kastrup
2006-11-29 19:48                                                 ` Lennart Borgman
2006-11-30 19:48                                                 ` Richard Stallman
2006-11-29 18:28                                         ` Eli Zaretskii
2006-11-29 19:01                                           ` David Kastrup
2006-11-29 19:14                                             ` Lennart Borgman
2006-11-29 19:24                                               ` Eli Zaretskii
2006-11-29 19:33                                                 ` Lennart Borgman
2006-11-30  4:11                                                   ` Eli Zaretskii
2006-11-30  7:12                                                     ` David Kastrup
2006-11-30  8:15                                                     ` Lennart Borgman
2006-11-29 19:29                                               ` David Kastrup
2006-11-29 19:43                                                 ` Lennart Borgman
2006-11-29 19:19                                             ` Eli Zaretskii
2006-11-29 19:39                                               ` David Kastrup
2006-11-30  4:12                                                 ` Eli Zaretskii
2006-11-30  7:18                                                   ` David Kastrup
2006-11-30 19:50                                                     ` Eli Zaretskii
2006-11-30  8:14                                                   ` Lennart Borgman
2006-11-30  8:25                                                     ` David Kastrup
2006-11-30 12:56                                                       ` Lennart Borgman
2006-11-29 18:17                                       ` Eli Zaretskii
2006-11-29  4:27                                 ` Eli Zaretskii
2006-11-29  9:17                                   ` Juanma Barranquero
2006-11-29 18:25                                     ` Eli Zaretskii
2006-11-29 19:41                                       ` Juanma Barranquero
2006-11-30  4:14                                         ` Eli Zaretskii
2006-11-30  9:48                                           ` Juanma Barranquero
2006-11-28 19:55                     ` Eli Zaretskii
2006-11-28 13:23                 ` Lennart Borgman
2006-11-28 19:51               ` Eli Zaretskii
2006-11-28 19:49             ` Eli Zaretskii
2006-11-28 20:28               ` Juanma Barranquero
2006-11-28 20:50                 ` Eli Zaretskii
2006-11-28 21:41                   ` Juanma Barranquero
2006-11-28 19:35           ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.