Commit 806048df authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fx_open_connection, x_display_info_for_name):

Error if window-system is not x.
parent 32fda9ba
......@@ -4673,6 +4673,9 @@ x_display_info_for_name (name)
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 @@ terminate Emacs if we can't open the connection.")
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment