[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 82edb3fdb00 1/2: Improve commentary
|
From: |
Po Lu |
|
Subject: |
master 82edb3fdb00 1/2: Improve commentary |
|
Date: |
Wed, 12 Jul 2023 06:08:44 -0400 (EDT) |
branch: master
commit 82edb3fdb00df69e9631d6506c61d5e86477b403
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Improve commentary
* src/xterm.c (x_ignore_errors_for_next_request): Reword
description of SELECTION_SERIAL.
---
src/xterm.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index f84eaeb8cbd..d65a6829b45 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -25848,10 +25848,12 @@ x_clean_failable_requests (struct x_display_info
*dpyinfo)
+ (last - first));
}
-/* Protect a section of X requests: ignore errors generated by X
- requests made from now until `x_stop_ignoring_errors'. Each call
- must be paired with a call to `x_stop_ignoring_errors', and
- recursive calls inside the protected section are not allowed.
+/* Protect a section of X requests.
+
+ Ignore errors generated by X requests made from now until
+ `x_stop_ignoring_errors'. Each call must be paired with a call to
+ `x_stop_ignoring_errors', and recursive calls inside the protected
+ section are not allowed.
The advantage over x_catch_errors followed by
x_uncatch_errors_after_check is that this function does not sync to
@@ -25859,11 +25861,10 @@ x_clean_failable_requests (struct x_display_info
*dpyinfo)
those two functions for catching errors around requests that do not
require a reply.
- As a special feature intended to support xselect.c,
- SELECTION_SERIAL may be an arbitrary number greater than zero: when
- that is the case, x_select_handle_selection_error is called with
- the specified number to delete the selection request that
- encountered the error. */
+ If SELECTION_SERIAL is an arbitrary number greater than zero,
+ x_select_handle_selection_error is called with the specified number
+ after any errors within the protected section are received to
+ delete the selection request that encountered errors. */
void
x_ignore_errors_for_next_request (struct x_display_info *dpyinfo,