aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-07-04 09:33:19 +0800
committerPo Lu2022-07-04 09:33:19 +0800
commit06afa7b4e096b14d03cc801235b27395a9857272 (patch)
tree91e21f9861da5cf4967db54594b096d0e6866993 /src
parentae3416d69431fe80e767813bfe9837df599eca98 (diff)
downloademacs-06afa7b4e096b14d03cc801235b27395a9857272.tar.gz
emacs-06afa7b4e096b14d03cc801235b27395a9857272.zip
Add some more error checking code to `x_stop_ignoring_errors'
* src/xterm.c (x_stop_ignoring_errors): Abort if no request was actually made, making the state inconsistent.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index dc7e3283a5c..02ea968031e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23139,6 +23139,13 @@ x_stop_ignoring_errors (struct x_display_info *dpyinfo)
23139 23139
23140 range = dpyinfo->next_failable_request - 1; 23140 range = dpyinfo->next_failable_request - 1;
23141 range->end = XNextRequest (dpyinfo->display) - 1; 23141 range->end = XNextRequest (dpyinfo->display) - 1;
23142
23143 /* Abort if no request was made since
23144 `x_ignore_errors_for_next_request'. */
23145
23146 if (X_COMPARE_SERIALS (range->end, <,
23147 range->start))
23148 emacs_abort ();
23142} 23149}
23143 23150
23144/* Undo the last x_catch_errors call. 23151/* Undo the last x_catch_errors call.