Mercurial > hg > xemacs-beta
diff lib-src/gnuclient.c @ 286:57709be46d1b r21-0b41
Import from CVS: tag r21-0b41
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:35:03 +0200 |
parents | 90d73dddcdc4 |
children | 6cb5e14cd98e |
line wrap: on
line diff
--- a/lib-src/gnuclient.c Mon Aug 13 10:34:15 2007 +0200 +++ b/lib-src/gnuclient.c Mon Aug 13 10:35:03 2007 +0200 @@ -323,10 +323,12 @@ tmpdir = "/tmp"; display = getenv ("DISPLAY"); - if (!display) + if (display) + display = my_strdup (display); +#ifndef HAVE_MS_WINDOWS + else suppress_windows_system = 1; - else - display = my_strdup (display); +#endif for (i = 1; argv[i] && !errflg; i++) { @@ -594,8 +596,13 @@ } else /* !suppress_windows_system */ { - sprintf (command, "(gnuserv-edit-files '(x %s) '(", - clean_string (display)); + if (display) + sprintf (command, "(gnuserv-edit-files '(x %s) '(", + clean_string (display)); +#ifdef HAVE_MS_WINDOWS + else + sprintf (command, "(gnuserv-edit-files '(mswindows nil) '("); +#endif } /* !suppress_windows_system */ send_string (s, command);