diff options
| author | Richard M. Stallman | 2003-01-06 00:45:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-01-06 00:45:31 +0000 |
| commit | 781d152abed2e3bf528130b6b2df30596af28372 (patch) | |
| tree | ef51e3536991c82fd3f730592d02ed2cf0862221 /src | |
| parent | 1cb12638f3a6562652e0ae3f1daeab60f7590b89 (diff) | |
| download | emacs-781d152abed2e3bf528130b6b2df30596af28372.tar.gz emacs-781d152abed2e3bf528130b6b2df30596af28372.zip | |
(x_catch_errors): Save dpy using make_save_value.
(x_catch_errors_unwind): Call XSync.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index c5b0a8b00d3..8c021ca895f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12179,7 +12179,9 @@ x_catch_errors (dpy) | |||
| 12179 | /* Make sure any errors from previous requests have been dealt with. */ | 12179 | /* Make sure any errors from previous requests have been dealt with. */ |
| 12180 | XSync (dpy, False); | 12180 | XSync (dpy, False); |
| 12181 | 12181 | ||
| 12182 | record_unwind_protect (x_catch_errors_unwind, x_error_message_string); | 12182 | record_unwind_protect (x_catch_errors_unwind, |
| 12183 | Fcons (make_save_value (dpy, 0), | ||
| 12184 | x_error_message_string)); | ||
| 12183 | 12185 | ||
| 12184 | x_error_message_string = make_uninit_string (X_ERROR_MESSAGE_SIZE); | 12186 | x_error_message_string = make_uninit_string (X_ERROR_MESSAGE_SIZE); |
| 12185 | SSET (x_error_message_string, 0, 0); | 12187 | SSET (x_error_message_string, 0, 0); |
| @@ -12193,7 +12195,13 @@ static Lisp_Object | |||
| 12193 | x_catch_errors_unwind (old_val) | 12195 | x_catch_errors_unwind (old_val) |
| 12194 | Lisp_Object old_val; | 12196 | Lisp_Object old_val; |
| 12195 | { | 12197 | { |
| 12196 | x_error_message_string = old_val; | 12198 | Lisp_Object first; |
| 12199 | |||
| 12200 | first = XCAR (old_val); | ||
| 12201 | |||
| 12202 | XSync (XSAVE_VALUE (first)->pointer, False); | ||
| 12203 | |||
| 12204 | x_error_message_string = XCDR (old_val); | ||
| 12197 | return Qnil; | 12205 | return Qnil; |
| 12198 | } | 12206 | } |
| 12199 | 12207 | ||