aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-06-26 03:49:46 +0000
committerRichard M. Stallman1995-06-26 03:49:46 +0000
commit806048df248ed426d264911aab82e6690371c985 (patch)
tree4c308ccf6c1e32ac52650faf5316e50f861328c1 /src
parent32fda9ba24e6e1fab2d09c321448115cf0afcd6a (diff)
downloademacs-806048df248ed426d264911aab82e6690371c985.tar.gz
emacs-806048df248ed426d264911aab82e6690371c985.zip
(Fx_open_connection, x_display_info_for_name):
Error if window-system is not x.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index f499355efdd..3e32e3c82f0 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4673,6 +4673,9 @@ x_display_info_for_name (name)
4673 4673
4674 CHECK_STRING (name, 0); 4674 CHECK_STRING (name, 0);
4675 4675
4676 if (! EQ (Vwindow_system, intern ("x")))
4677 error ("Not using X Windows");
4678
4676 for (dpyinfo = x_display_list, names = x_display_name_list; 4679 for (dpyinfo = x_display_list, names = x_display_name_list;
4677 dpyinfo; 4680 dpyinfo;
4678 dpyinfo = dpyinfo->next, names = XCONS (names)->cdr) 4681 dpyinfo = dpyinfo->next, names = XCONS (names)->cdr)
@@ -4717,6 +4720,9 @@ terminate Emacs if we can't open the connection.")
4717 if (! NILP (xrm_string)) 4720 if (! NILP (xrm_string))
4718 CHECK_STRING (xrm_string, 1); 4721 CHECK_STRING (xrm_string, 1);
4719 4722
4723 if (! EQ (Vwindow_system, intern ("x")))
4724 error ("Not using X Windows");
4725
4720 if (! NILP (xrm_string)) 4726 if (! NILP (xrm_string))
4721 xrm_option = (unsigned char *) XSTRING (xrm_string)->data; 4727 xrm_option = (unsigned char *) XSTRING (xrm_string)->data;
4722 else 4728 else