]> git.eshelyaron.com Git - emacs.git/commit
Handle selection transfer errors earlier
authorPo Lu <luangruo@yahoo.com>
Thu, 15 Dec 2022 12:06:37 +0000 (20:06 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 15 Dec 2022 12:06:59 +0000 (20:06 +0800)
commitdb69249b761a80158c1469b2a169d6f5c8509ae1
tree8d2e5f817c399f3b86bb777062651b9bba25faf7
parent09a985ae9f486b7bba933c17e99eeff22207a87e
Handle selection transfer errors earlier

* src/xselect.c (x_decline_selection_request, struct transfer)
(struct x_selection_request, x_cancel_selection_transfer)
(x_start_selection_transfer, x_continue_selection_transfer):
Give the right serial to x_ignore_errors_for_next_request.
(x_handle_selection_error): New function.
(x_reply_selection_request): Give the right serial to
x_ignore_errors_for_next_request.
* src/xterm.c (x_ignore_errors_for_next_request): New arg
`selection_serial'.  All callers changed.
(x_error_handler): Call selection error handler.
* src/xterm.h (struct x_failable_request): New field
`selection_serial'.
src/xfns.c
src/xselect.c
src/xterm.c
src/xterm.h