aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorJoakim Verona2012-03-06 09:23:09 +0100
committerJoakim Verona2012-03-06 09:23:09 +0100
commit28485daaf752ff5264ed2f6a32ec15588beaa929 (patch)
treea480205aa664c61b1d212833144c0a2d44f7ac01 /src/xselect.c
parente8e42079e76ca6255bbd53312994ba8e1b3b0ee8 (diff)
parent2e86d8576c668e149cc100f3222bcf19b38019dc (diff)
downloademacs-28485daaf752ff5264ed2f6a32ec15588beaa929.tar.gz
emacs-28485daaf752ff5264ed2f6a32ec15588beaa929.zip
upstream
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 49955f03fd0..173cf78bdaa 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2142,9 +2142,9 @@ DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p,
2142 0, 2, 0, 2142 0, 2, 0,
2143 doc: /* Whether there is an owner for the given X selection. 2143 doc: /* Whether there is an owner for the given X selection.
2144SELECTION should be the name of the selection in question, typically 2144SELECTION should be the name of the selection in question, typically
2145one of the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'. (X expects 2145one of the symbols `PRIMARY', `SECONDARY', `CLIPBOARD', or
2146these literal upper-case names.) The symbol nil is the same as 2146`CLIPBOARD_MANAGER' (X expects these literal upper-case names.) The
2147`PRIMARY', and t is the same as `SECONDARY'. 2147symbol nil is the same as `PRIMARY', and t is the same as `SECONDARY'.
2148 2148
2149TERMINAL should be a terminal object or a frame specifying the X 2149TERMINAL should be a terminal object or a frame specifying the X
2150server to query. If omitted or nil, that stands for the selected 2150server to query. If omitted or nil, that stands for the selected
@@ -2273,8 +2273,14 @@ x_clipboard_manager_save_all (void)
2273 2273
2274 local_frame = XCAR (XCDR (XCDR (XCDR (local_selection)))); 2274 local_frame = XCAR (XCDR (XCDR (XCDR (local_selection))));
2275 if (FRAME_LIVE_P (XFRAME (local_frame))) 2275 if (FRAME_LIVE_P (XFRAME (local_frame)))
2276 internal_condition_case_1 (x_clipboard_manager_save, local_frame, 2276 {
2277 Qt, x_clipboard_manager_error_2); 2277 Lisp_Object args[1];
2278 args[0] = build_string ("Saving clipboard to X clipboard manager...");
2279 Fmessage (1, args);
2280
2281 internal_condition_case_1 (x_clipboard_manager_save, local_frame,
2282 Qt, x_clipboard_manager_error_2);
2283 }
2278 } 2284 }
2279} 2285}
2280 2286