annotate nt/runemacs.c @ 321:19dcec799385 r21-0-58

Import from CVS: tag r21-0-58
author cvs
date Mon, 13 Aug 2007 10:46:44 +0200
parents c9fe270a4101
children a4f53d9b3154
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
1 /*
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
2 Simple program to start Emacs with its console window hidden.
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
3
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
4 This program is provided purely for convenience, since most users will
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
5 use Emacs in windowing (GUI) mode, and will not want to have an extra
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
6 console window lying around. */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
7
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
8 /*
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
9 You may want to define this if you want to be able to install updated
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
10 emacs binaries even when other users are using the current version.
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
11 The problem with some file servers (notably Novell) is that an open
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
12 file cannot be overwritten, deleted, or even renamed. So if someone
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
13 is running emacs.exe already, you cannot install a newer version.
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
14 By defining CHOOSE_NEWEST_EXE, you can name your new emacs.exe
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
15 something else which matches "emacs*.exe", and runemacs will
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
16 automatically select the newest emacs executeable in the bin directory.
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
17 (So you'll probably be able to delete the old version some hours/days
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
18 later).
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
19 */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
20
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
21 /* #define CHOOSE_NEWEST_EXE */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
22
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
23 #define WIN32
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
24
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
25 #include <windows.h>
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
26 #include <string.h>
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
27 #include <malloc.h>
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
28
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
29 #if defined(__CYGWIN32__)
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
30 #include <sys/types.h>
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
31 #include <sys/stat.h>
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
32 #endif
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
33
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
34 int WINAPI
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
35 WinMain (HINSTANCE hSelf, HINSTANCE hPrev, LPSTR cmdline, int nShow)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
36 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
37 STARTUPINFO start;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
38 SECURITY_ATTRIBUTES sec_attrs;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
39 SECURITY_DESCRIPTOR sec_desc;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
40 PROCESS_INFORMATION child;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
41 int wait_for_child = FALSE;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
42 DWORD ret_code = 0;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
43 char *new_cmdline;
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
44 char *basename;
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
45 char *p;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
46 char modname[MAX_PATH];
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
47
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
48 if (!GetModuleFileName (NULL, modname, MAX_PATH))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
49 goto error;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
50 if ((p = strrchr (modname, '\\')) == NULL)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
51 goto error;
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
52
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
53 basename = alloca(strlen(p) + 1);
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
54 strcpy (basename, p + 1);
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
55
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
56 *p = 0;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
57
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
58 new_cmdline = alloca (MAX_PATH + strlen (cmdline) + 1);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
59 strcpy (new_cmdline, modname);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
60
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
61 #ifdef CHOOSE_NEWEST_EXE
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
62 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
63 /* Silly hack to allow new versions to be installed on
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
64 server even when current version is in use. */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
65
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
66 char * best_name = alloca (MAX_PATH + 1);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
67 FILETIME best_time = {0,0};
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
68 WIN32_FIND_DATA wfd;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
69 HANDLE fh;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
70 p = new_cmdline + strlen (new_cmdline);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
71 strcpy (p, "\\xemacs*.exe ");
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
72 fh = FindFirstFile (new_cmdline, &wfd);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
73 if (fh == INVALID_HANDLE_VALUE)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
74 goto error;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
75 do
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
76 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
77 if (wfd.ftLastWriteTime.dwHighDateTime > best_time.dwHighDateTime
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
78 || (wfd.ftLastWriteTime.dwHighDateTime == best_time.dwHighDateTime
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
79 && wfd.ftLastWriteTime.dwLowDateTime > best_time.dwLowDateTime))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
80 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
81 best_time = wfd.ftLastWriteTime;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
82 strcpy (best_name, wfd.cFileName);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
83 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
84 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
85 while (FindNextFile (fh, &wfd));
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
86 FindClose (fh);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
87 *p++ = '\\';
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
88 strcpy (p, best_name);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
89 strcat (p, " ");
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
90 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
91 #else
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
92 #if defined(__CYGWIN32__)
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
93 {
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
94 struct stat stbuf;
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
95 char sym_link_name[MAX_PATH+1], real_name[MAX_PATH+1];
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
96
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
97 strcpy(sym_link_name, new_cmdline);
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
98 if (strcmp(basename, "rungnuclient.exe") == 0)
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
99 strcat(new_cmdline, "\\gnuclient.exe ");
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
100 else if (strcmp(basename, "runemacs.exe") == 0)
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
101 {
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
102 strcat(sym_link_name, "\\xemacs");
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
103
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
104 if (lstat(sym_link_name, &stbuf) == 0)
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
105 {
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
106 if ((stbuf.st_mode & S_IFLNK) == S_IFLNK)
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
107 {
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
108 if (readlink(sym_link_name, real_name, sizeof(real_name)) == -1)
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
109 {
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
110 MessageBox (NULL, "Error reading symbolic link for xemacs",
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
111 "Error", MB_ICONSTOP);
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
112 return 1;
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
113 }
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
114 else
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
115 {
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
116 strcat(new_cmdline, "\\");
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
117 strcat(new_cmdline, real_name);
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
118 strcat(new_cmdline, " ");
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
119 }
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
120 }
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
121 else
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
122 strcat(new_cmdline, "\\xemacs ");
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
123 }
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
124 else
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
125 {
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
126 MessageBox (NULL, "can't locate XEmacs executable",
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
127 "Error", MB_ICONSTOP);
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
128 return 1;
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
129 }
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
130 }
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
131 }
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
132 #else
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
133 if (strcmp(basename, "rungnuclient.exe") == 0)
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
134 strcat (new_cmdline, "\\gnuclient.exe ");
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
135 else
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
136 strcat (new_cmdline, "\\xemacs.exe ");
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
137 #endif
290
c9fe270a4101 Import from CVS: tag r21-0b43
cvs
parents: 183
diff changeset
138 #endif
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
139
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
140 /* Append original arguments if any; first look for -wait as first
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
141 argument, and apply that ourselves. */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
142 if (strncmp (cmdline, "-wait", 5) == 0)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
143 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
144 wait_for_child = TRUE;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
145 cmdline += 5;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
146 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
147 strcat (new_cmdline, cmdline);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
148
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
149 /* Set emacs_dir variable if runemacs was in "%emacs_dir%\bin". */
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
150 if ((p = strrchr (modname, '\\')) && stricmp (p, "\\bin") == 0)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
151 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
152 *p = 0;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
153 for (p = modname; *p; p++)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
154 if (*p == '\\') *p = '/';
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
155 SetEnvironmentVariable ("emacs_dir", modname);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
156 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
157
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
158 memset (&start, 0, sizeof (start));
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
159 start.cb = sizeof (start);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
160 start.dwFlags = STARTF_USESHOWWINDOW;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
161 start.wShowWindow = SW_HIDE;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
162
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
163 sec_attrs.nLength = sizeof (sec_attrs);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
164 sec_attrs.lpSecurityDescriptor = NULL;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
165 sec_attrs.bInheritHandle = FALSE;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
166
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
167 if (CreateProcess (NULL, new_cmdline, &sec_attrs, NULL, TRUE, 0,
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
168 NULL, NULL, &start, &child))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
169 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
170 if (wait_for_child)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
171 {
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
172 WaitForSingleObject (child.hProcess, INFINITE);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
173 GetExitCodeProcess (child.hProcess, &ret_code);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
174 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
175 CloseHandle (child.hThread);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
176 CloseHandle (child.hProcess);
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
177 }
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
178 else
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
179 goto error;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
180 return (int) ret_code;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
181
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
182 error:
321
19dcec799385 Import from CVS: tag r21-0-58
cvs
parents: 290
diff changeset
183 MessageBox (NULL, "Could not start XEmacs or gnuclient.", "Error", MB_ICONSTOP);
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
184 return 1;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 100
diff changeset
185 }