diff options
| author | Richard M. Stallman | 1994-06-05 17:43:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-06-05 17:43:51 +0000 |
| commit | e1b1bee8727ff3f7a8595f0e2da1560f8aabcded (patch) | |
| tree | f3cbbfc9f33736866674dc6f739cbfae1c40722e /src/xfns.c | |
| parent | 1f8255f228c8f0e0f82cdb68bbe61a9fdaaef9b8 (diff) | |
| download | emacs-e1b1bee8727ff3f7a8595f0e2da1560f8aabcded.tar.gz emacs-e1b1bee8727ff3f7a8595f0e2da1560f8aabcded.zip | |
(Fx_open_connection): Set up Vx_resource_name and xrm_option
before calling x_term_init. Pass new args.
Diffstat (limited to 'src/xfns.c')
| -rw-r--r-- | src/xfns.c | 15 |
1 files changed, 8 insertions, 7 deletions
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.") | |||
| 4142 | if (! NILP (xrm_string)) | 4142 | if (! NILP (xrm_string)) |
| 4143 | CHECK_STRING (xrm_string, 1); | 4143 | CHECK_STRING (xrm_string, 1); |
| 4144 | 4144 | ||
| 4145 | /* This is what opens the connection and sets x_current_display. | ||
| 4146 | This also initializes many symbols, such as those used for input. */ | ||
| 4147 | x_term_init (XSTRING (display)->data); | ||
| 4148 | |||
| 4149 | #ifdef HAVE_X11 | ||
| 4150 | XFASTINT (Vwindow_system_version) = 11; | ||
| 4151 | |||
| 4152 | if (! NILP (xrm_string)) | 4145 | if (! NILP (xrm_string)) |
| 4153 | xrm_option = (unsigned char *) XSTRING (xrm_string)->data; | 4146 | xrm_option = (unsigned char *) XSTRING (xrm_string)->data; |
| 4154 | else | 4147 | else |
| @@ -4156,6 +4149,14 @@ Optional second arg XRM_STRING is a string of resources in xrdb format.") | |||
| 4156 | 4149 | ||
| 4157 | validate_x_resource_name (); | 4150 | validate_x_resource_name (); |
| 4158 | 4151 | ||
| 4152 | /* This is what opens the connection and sets x_current_display. | ||
| 4153 | This also initializes many symbols, such as those used for input. */ | ||
| 4154 | x_term_init (XSTRING (display)->data, xrm_option, | ||
| 4155 | XSTRING (Vx_resource_name)->data); | ||
| 4156 | |||
| 4157 | #ifdef HAVE_X11 | ||
| 4158 | XFASTINT (Vwindow_system_version) = 11; | ||
| 4159 | |||
| 4159 | BLOCK_INPUT; | 4160 | BLOCK_INPUT; |
| 4160 | xrdb = x_load_resources (x_current_display, xrm_option, | 4161 | xrdb = x_load_resources (x_current_display, xrm_option, |
| 4161 | (char *) XSTRING (Vx_resource_name)->data, | 4162 | (char *) XSTRING (Vx_resource_name)->data, |