changeset 12381:67cb86bbdb55

(Fx_open_connection, x_display_info_for_name): Error if window-system is not x.
author Richard M. Stallman <rms@gnu.org>
date Mon, 26 Jun 1995 03:49:46 +0000
parents 2c09b3adbb90
children 63c03173db06
files src/xfns.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon Jun 26 03:49:20 1995 +0000
+++ b/src/xfns.c	Mon Jun 26 03:49:46 1995 +0000
@@ -4673,6 +4673,9 @@
 
   CHECK_STRING (name, 0);
 
+  if (! EQ (Vwindow_system, intern ("x")))
+    error ("Not using X Windows");
+
   for (dpyinfo = x_display_list, names = x_display_name_list;
        dpyinfo;
        dpyinfo = dpyinfo->next, names = XCONS (names)->cdr)
@@ -4717,6 +4720,9 @@
   if (! NILP (xrm_string))
     CHECK_STRING (xrm_string, 1);
 
+  if (! EQ (Vwindow_system, intern ("x")))
+    error ("Not using X Windows");
+
   if (! NILP (xrm_string))
     xrm_option = (unsigned char *) XSTRING (xrm_string)->data;
   else