Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a7b24d46
Commit
a7b24d46
authored
Oct 26, 1994
by
Richard M. Stallman
Browse files
(x_own_selection, x_get_foreign_selection): Change calls
to x_catch_errors and friends.
parent
8400b9ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/xselect.c
src/xselect.c
+6
-6
No files found.
src/xselect.c
View file @
a7b24d46
...
...
@@ -244,10 +244,10 @@ x_own_selection (selection_name, selection_value)
selection_atom
=
symbol_to_x_atom
(
dpyinfo
,
display
,
selection_name
);
BLOCK_INPUT
;
x_catch_errors
(
selected_frame
);
x_catch_errors
(
display
);
XSetSelectionOwner
(
display
,
selection_atom
,
selecting_window
,
time
);
x_check_errors
(
selected_frame
,
"Can't set selection: %s"
);
x_uncatch_errors
(
selected_frame
);
x_check_errors
(
display
,
"Can't set selection: %s"
);
x_uncatch_errors
(
display
);
UNBLOCK_INPUT
;
/* Now update the local cache */
...
...
@@ -1049,7 +1049,7 @@ x_get_foreign_selection (selection_symbol, target_type)
type_atom
=
symbol_to_x_atom
(
dpyinfo
,
display
,
target_type
);
BLOCK_INPUT
;
x_catch_errors
(
selected_frame
);
x_catch_errors
(
display
);
XConvertSelection
(
display
,
selection_atom
,
type_atom
,
target_property
,
requestor_window
,
requestor_time
);
XFlush
(
display
);
...
...
@@ -1067,8 +1067,8 @@ x_get_foreign_selection (selection_symbol, target_type)
wait_reading_process_input
(
secs
,
usecs
,
reading_selection_reply
,
0
);
BLOCK_INPUT
;
x_check_errors
(
selected_frame
,
"Cannot get selection: %s"
);
x_uncatch_errors
(
selected_frame
);
x_check_errors
(
display
,
"Cannot get selection: %s"
);
x_uncatch_errors
(
display
);
x_stop_queuing_selection_requests
(
selected_frame
);
UNBLOCK_INPUT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment