From: Richard M. Stallman Date: Sun, 5 Jun 1994 17:43:51 +0000 (+0000) Subject: (Fx_open_connection): Set up Vx_resource_name and xrm_option X-Git-Tag: emacs-19.34~8051 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e1b1bee8727ff3f7a8595f0e2da1560f8aabcded;p=emacs.git (Fx_open_connection): Set up Vx_resource_name and xrm_option before calling x_term_init. Pass new args. --- diff --git a/src/xfns.c b/src/xfns.c index b3c2731c7d1..4a884060436 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4142,13 +4142,6 @@ Optional second arg XRM_STRING is a string of resources in xrdb format.") if (! NILP (xrm_string)) CHECK_STRING (xrm_string, 1); - /* This is what opens the connection and sets x_current_display. - This also initializes many symbols, such as those used for input. */ - x_term_init (XSTRING (display)->data); - -#ifdef HAVE_X11 - XFASTINT (Vwindow_system_version) = 11; - if (! NILP (xrm_string)) xrm_option = (unsigned char *) XSTRING (xrm_string)->data; else @@ -4156,6 +4149,14 @@ Optional second arg XRM_STRING is a string of resources in xrdb format.") validate_x_resource_name (); + /* This is what opens the connection and sets x_current_display. + This also initializes many symbols, such as those used for input. */ + x_term_init (XSTRING (display)->data, xrm_option, + XSTRING (Vx_resource_name)->data); + +#ifdef HAVE_X11 + XFASTINT (Vwindow_system_version) = 11; + BLOCK_INPUT; xrdb = x_load_resources (x_current_display, xrm_option, (char *) XSTRING (Vx_resource_name)->data,