aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-06-14 19:49:58 +0800
committerPo Lu2022-06-14 19:50:31 +0800
commit8fa1cdc1faf901f45554e97843efd1f01adc2e92 (patch)
tree98c24f559bde1abae3563c9ed84947a0f0b9ef1c
parentfda5cccba8d1d0ef50894576ba9372711b176c22 (diff)
downloademacs-8fa1cdc1faf901f45554e97843efd1f01adc2e92.tar.gz
emacs-8fa1cdc1faf901f45554e97843efd1f01adc2e92.zip
; Improve doc of `x-dnd-native-test-function'
* src/xterm.c (syms_of_xterm): Improve doc. Suggested by Eli Zaretskii <eliz@gnu.org>.
-rw-r--r--src/xterm.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 333520c8bc5..2cc17b455da 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -27365,13 +27365,15 @@ argument to `x-begin-drag'. */);
27365 Vx_dnd_targets_list = Qnil; 27365 Vx_dnd_targets_list = Qnil;
27366 27366
27367 DEFVAR_LISP ("x-dnd-native-test-function", Vx_dnd_native_test_function, 27367 DEFVAR_LISP ("x-dnd-native-test-function", Vx_dnd_native_test_function,
27368 doc: /* Function called to determine return when dropping on Emacs itself. 27368 doc: /* Function that determines return value of drag-and-drop on Emacs frames.
27369It should accept two arguments POS and ACTION, and return a symbol 27369If the value is a function, `x-begin-drag' will call it with two
27370describing what to return from `x-begin-drag'. POS is a mouse 27370arguments, POS and ACTION, where POS is a mouse position list
27371position list detailing the location of the drop, and ACTION is the 27371that specifies the location of the drop, and ACTION is the
27372action specified by the caller of `x-begin-drag'. 27372action specified by the caller of `x-begin-drag'. The function
27373 27373should return a symbol describing what to return from
27374If nil or a non-symbol value is returned, the drop will be 27374`x-begin-drag' if the drop happens on an Emacs frame.
27375cancelled. */); 27375
27376If the value is nil, or the function returns a value that is not
27377a symbol, a drop on an Emacs frame will be canceled. */);
27376 Vx_dnd_native_test_function = Qnil; 27378 Vx_dnd_native_test_function = Qnil;
27377} 27379}