diff options
| author | Po Lu | 2023-07-13 08:33:27 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-13 08:33:27 +0800 |
| commit | 4e2fda28edd3eb229c60576a215c3e4af5aa53e3 (patch) | |
| tree | fd9fff7bb59902d25a932f55a5d6440b3eaf5fb2 | |
| parent | 43d6c2bddc1319e217cce196741c6181fd0ff9dd (diff) | |
| parent | d861de72289464e336c772f1741016a90a2118c5 (diff) | |
| download | emacs-4e2fda28edd3eb229c60576a215c3e4af5aa53e3.tar.gz emacs-4e2fda28edd3eb229c60576a215c3e4af5aa53e3.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
| -rw-r--r-- | lisp/progmodes/eglot.el | 3 | ||||
| -rw-r--r-- | src/xterm.c | 32 |
2 files changed, 23 insertions, 12 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 0c46e4a5290..8ac21638a5b 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -828,7 +828,8 @@ ACTION is an LSP object of either `CodeAction' or `Command' type." | |||
| 828 | :documentHighlight `(:dynamicRegistration :json-false) | 828 | :documentHighlight `(:dynamicRegistration :json-false) |
| 829 | :codeAction (list | 829 | :codeAction (list |
| 830 | :dynamicRegistration :json-false | 830 | :dynamicRegistration :json-false |
| 831 | :resolveSupport t :dataSupport t | 831 | :resolveSupport `(:properties ["edit" "command"]) |
| 832 | :dataSupport t | ||
| 832 | :codeActionLiteralSupport | 833 | :codeActionLiteralSupport |
| 833 | '(:codeActionKind | 834 | '(:codeActionKind |
| 834 | (:valueSet | 835 | (:valueSet |
diff --git a/src/xterm.c b/src/xterm.c index cd21665d9fa..5e2d7c05c26 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -25884,10 +25884,12 @@ x_clean_failable_requests (struct x_display_info *dpyinfo) | |||
| 25884 | + (last - first)); | 25884 | + (last - first)); |
| 25885 | } | 25885 | } |
| 25886 | 25886 | ||
| 25887 | /* Protect a section of X requests: ignore errors generated by X | 25887 | /* Protect a section of X requests. |
| 25888 | requests made from now until `x_stop_ignoring_errors'. Each call | 25888 | |
| 25889 | must be paired with a call to `x_stop_ignoring_errors', and | 25889 | Ignore errors generated by X requests made from now until |
| 25890 | recursive calls inside the protected section are not allowed. | 25890 | `x_stop_ignoring_errors'. Each call must be paired with a call to |
| 25891 | `x_stop_ignoring_errors', and recursive calls inside the protected | ||
| 25892 | section are not allowed. | ||
| 25891 | 25893 | ||
| 25892 | The advantage over x_catch_errors followed by | 25894 | The advantage over x_catch_errors followed by |
| 25893 | x_uncatch_errors_after_check is that this function does not sync to | 25895 | x_uncatch_errors_after_check is that this function does not sync to |
| @@ -25895,11 +25897,10 @@ x_clean_failable_requests (struct x_display_info *dpyinfo) | |||
| 25895 | those two functions for catching errors around requests that do not | 25897 | those two functions for catching errors around requests that do not |
| 25896 | require a reply. | 25898 | require a reply. |
| 25897 | 25899 | ||
| 25898 | As a special feature intended to support xselect.c, | 25900 | If SELECTION_SERIAL is an arbitrary number greater than zero, |
| 25899 | SELECTION_SERIAL may be an arbitrary number greater than zero: when | 25901 | x_select_handle_selection_error is called with the specified number |
| 25900 | that is the case, x_select_handle_selection_error is called with | 25902 | after any errors within the protected section are received to |
| 25901 | the specified number to delete the selection request that | 25903 | delete the selection request that encountered errors. */ |
| 25902 | encountered the error. */ | ||
| 25903 | 25904 | ||
| 25904 | void | 25905 | void |
| 25905 | x_ignore_errors_for_next_request (struct x_display_info *dpyinfo, | 25906 | x_ignore_errors_for_next_request (struct x_display_info *dpyinfo, |
| @@ -26474,9 +26475,18 @@ x_error_handler (Display *display, XErrorEvent *event) | |||
| 26474 | 26475 | ||
| 26475 | /* If a selection transfer is the cause of this error, | 26476 | /* If a selection transfer is the cause of this error, |
| 26476 | remove the selection transfer now. */ | 26477 | remove the selection transfer now. */ |
| 26478 | |||
| 26477 | if (fail->selection_serial) | 26479 | if (fail->selection_serial) |
| 26478 | x_handle_selection_error (fail->selection_serial, | 26480 | { |
| 26479 | event); | 26481 | x_handle_selection_error (fail->selection_serial, |
| 26482 | event); | ||
| 26483 | |||
| 26484 | /* Clear selection_serial to prevent | ||
| 26485 | x_handle_selection_error from being called again if | ||
| 26486 | any more requests within the protected section cause | ||
| 26487 | errors to be reported. */ | ||
| 26488 | fail->selection_serial = 0; | ||
| 26489 | } | ||
| 26480 | 26490 | ||
| 26481 | return 0; | 26491 | return 0; |
| 26482 | } | 26492 | } |