Mercurial > hg > xemacs-beta
comparison nt/runemacs.c @ 183:e121b013d1f0 r20-3b18
Import from CVS: tag r20-3b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:54:23 +0200 |
parents | 4be1180a9e89 |
children | c9fe270a4101 |
comparison
equal
deleted
inserted
replaced
182:f07455f06202 | 183:e121b013d1f0 |
---|---|
56 char * best_name = alloca (MAX_PATH + 1); | 56 char * best_name = alloca (MAX_PATH + 1); |
57 FILETIME best_time = {0,0}; | 57 FILETIME best_time = {0,0}; |
58 WIN32_FIND_DATA wfd; | 58 WIN32_FIND_DATA wfd; |
59 HANDLE fh; | 59 HANDLE fh; |
60 p = new_cmdline + strlen (new_cmdline); | 60 p = new_cmdline + strlen (new_cmdline); |
61 strcpy (p, "\\emacs*.exe "); | 61 strcpy (p, "\\xemacs*.exe "); |
62 fh = FindFirstFile (new_cmdline, &wfd); | 62 fh = FindFirstFile (new_cmdline, &wfd); |
63 if (fh == INVALID_HANDLE_VALUE) | 63 if (fh == INVALID_HANDLE_VALUE) |
64 goto error; | 64 goto error; |
65 do | 65 do |
66 { | 66 { |
77 *p++ = '\\'; | 77 *p++ = '\\'; |
78 strcpy (p, best_name); | 78 strcpy (p, best_name); |
79 strcat (p, " "); | 79 strcat (p, " "); |
80 } | 80 } |
81 #else | 81 #else |
82 strcat (new_cmdline, "\\emacs.exe "); | 82 strcat (new_cmdline, "\\xemacs.exe "); |
83 #endif | 83 #endif |
84 | 84 |
85 /* Append original arguments if any; first look for -wait as first | 85 /* Append original arguments if any; first look for -wait as first |
86 argument, and apply that ourselves. */ | 86 argument, and apply that ourselves. */ |
87 if (strncmp (cmdline, "-wait", 5) == 0) | 87 if (strncmp (cmdline, "-wait", 5) == 0) |
123 else | 123 else |
124 goto error; | 124 goto error; |
125 return (int) ret_code; | 125 return (int) ret_code; |
126 | 126 |
127 error: | 127 error: |
128 MessageBox (NULL, "Could not start Emacs.", "Error", MB_ICONSTOP); | 128 MessageBox (NULL, "Could not start XEmacs.", "Error", MB_ICONSTOP); |
129 return 1; | 129 return 1; |
130 } | 130 } |