/* If the user didn't explicitly specify a display to use when
they called make-x-device, then we first check to see if a
/* If the user didn't explicitly specify a display to use when
they called make-x-device, then we first check to see if a
/* Check for a couple of standard special cases */
if (string_byte (XSTRING (connection), 0) == ':')
connection = concat2 (build_string ("localhost"), connection);
/* Check for a couple of standard special cases */
if (string_byte (XSTRING (connection), 0) == ':')
connection = concat2 (build_string ("localhost"), connection);
"unix:", 5))
connection = concat2 (build_string ("localhost:"),
Fsubstring (connection, make_int (5), Qnil));
"unix:", 5))
connection = concat2 (build_string ("localhost:"),
Fsubstring (connection, make_int (5), Qnil));
split_up_display_spec (connection, &hostname_length, &display_length,
&screen_length);
split_up_display_spec (connection, &hostname_length, &display_length,
&screen_length);
+ hostname_length + display_length);
connection = x_canonicalize_console_connection (connection, errb);
+ hostname_length + display_length);
connection = x_canonicalize_console_connection (connection, errb);