aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorPo Lu2022-06-13 15:01:06 +0800
committerPo Lu2022-06-13 15:02:41 +0800
commita1a435b3f6c7afa910da2256334471ba49010974 (patch)
treeadd823f06b7f05d4dd4a57d54854e8af2ccae67f /src/xselect.c
parent7cd1f432c62d5677fb2d44ed05ed9546c3c292dc (diff)
downloademacs-a1a435b3f6c7afa910da2256334471ba49010974.tar.gz
emacs-a1a435b3f6c7afa910da2256334471ba49010974.zip
Respect test function when performing local drag-and-drop
* lisp/x-dnd.el (x-dnd-test-function): Fix doc string to describe what is actually accepted. (x-dnd-known-types, x-dnd-targets-list): Fix coding style. (x-dnd-handle-native-drop): New function. * src/xselect.c (x_atom_to_symbol): Export. * src/xterm.c (x_dnd_note_self_drop): Call new variable to determine what action to return. (x_clear_dnd_action): New function. (x_dnd_begin_drag_and_drop): Respect new variable. (syms_of_xterm): New defvar `x-dnd-native-test-function'. * src/xterm.h: Update prototypes.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c
index bb5a1447df7..490a008dfcb 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -112,7 +112,7 @@ selection_quantum (Display *display)
112 : MAX_SELECTION_QUANTUM); 112 : MAX_SELECTION_QUANTUM);
113} 113}
114 114
115#define LOCAL_SELECTION(selection_symbol,dpyinfo) \ 115#define LOCAL_SELECTION(selection_symbol, dpyinfo) \
116 assq_no_quit (selection_symbol, dpyinfo->terminal->Vselection_alist) 116 assq_no_quit (selection_symbol, dpyinfo->terminal->Vselection_alist)
117 117
118 118
@@ -179,7 +179,7 @@ symbol_to_x_atom (struct x_display_info *dpyinfo, Lisp_Object sym)
179/* This converts a server Atom to a Lisp symbol, avoiding server roundtrips 179/* This converts a server Atom to a Lisp symbol, avoiding server roundtrips
180 and calls to intern whenever possible. */ 180 and calls to intern whenever possible. */
181 181
182static Lisp_Object 182Lisp_Object
183x_atom_to_symbol (struct x_display_info *dpyinfo, Atom atom) 183x_atom_to_symbol (struct x_display_info *dpyinfo, Atom atom)
184{ 184{
185 char *str; 185 char *str;