aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2012-02-25 11:01:11 +0800
committerChong Yidong2012-02-25 11:01:11 +0800
commit3c9dfce6da30c2b4483b0e95d33af3dd0bd9b26f (patch)
treef8db60a58e03ea6a58869935e5c55b12f4848abf /src
parent833e48d3d84885cc62f6c3daf9ad26f53a7f5cf1 (diff)
downloademacs-3c9dfce6da30c2b4483b0e95d33af3dd0bd9b26f.tar.gz
emacs-3c9dfce6da30c2b4483b0e95d33af3dd0bd9b26f.zip
Reduce x-selection-timeout to 5s, and add a message for clipboard manager saving.
* lisp/term/x-win.el (x-initialize-window-system): Reduce default for x-selection-timeout to 5 seconds. * src/xselect.c (Fx_selection_exists_p): Doc fix. (x_clipboard_manager_save_all): Print an informative message before saving to clipboard manager. Fixes: debbugs:8869
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xselect.c16
2 files changed, 17 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d35c65266cc..7b546244792 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12012-02-25 Chong Yidong <cyd@gnu.org>
2
3 * xselect.c (Fx_selection_exists_p): Doc fix.
4 (x_clipboard_manager_save_all): Print an informative message
5 before saving to clipboard manager.
6
12012-02-24 Chong Yidong <cyd@gnu.org> 72012-02-24 Chong Yidong <cyd@gnu.org>
2 8
3 * keyboard.c (process_special_events): Handle all X selection 9 * keyboard.c (process_special_events): Handle all X selection
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