aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-07-12 18:04:03 +0800
committerPo Lu2023-07-12 18:04:03 +0800
commit82edb3fdb00df69e9631d6506c61d5e86477b403 (patch)
tree65b8c401777dce84f74780e499ea038c767504ff /src
parentbc1e7b9b8e681346e407c4dc32272a0bf4decd68 (diff)
downloademacs-82edb3fdb00df69e9631d6506c61d5e86477b403.tar.gz
emacs-82edb3fdb00df69e9631d6506c61d5e86477b403.zip
Improve commentary
* src/xterm.c (x_ignore_errors_for_next_request): Reword description of SELECTION_SERIAL.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c19
1 files 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)
25848 + (last - first)); 25848 + (last - first));
25849} 25849}
25850 25850
25851/* Protect a section of X requests: ignore errors generated by X 25851/* Protect a section of X requests.
25852 requests made from now until `x_stop_ignoring_errors'. Each call 25852
25853 must be paired with a call to `x_stop_ignoring_errors', and 25853 Ignore errors generated by X requests made from now until
25854 recursive calls inside the protected section are not allowed. 25854 `x_stop_ignoring_errors'. Each call must be paired with a call to
25855 `x_stop_ignoring_errors', and recursive calls inside the protected
25856 section are not allowed.
25855 25857
25856 The advantage over x_catch_errors followed by 25858 The advantage over x_catch_errors followed by
25857 x_uncatch_errors_after_check is that this function does not sync to 25859 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)
25859 those two functions for catching errors around requests that do not 25861 those two functions for catching errors around requests that do not
25860 require a reply. 25862 require a reply.
25861 25863
25862 As a special feature intended to support xselect.c, 25864 If SELECTION_SERIAL is an arbitrary number greater than zero,
25863 SELECTION_SERIAL may be an arbitrary number greater than zero: when 25865 x_select_handle_selection_error is called with the specified number
25864 that is the case, x_select_handle_selection_error is called with 25866 after any errors within the protected section are received to
25865 the specified number to delete the selection request that 25867 delete the selection request that encountered errors. */
25866 encountered the error. */
25867 25868
25868void 25869void
25869x_ignore_errors_for_next_request (struct x_display_info *dpyinfo, 25870x_ignore_errors_for_next_request (struct x_display_info *dpyinfo,