diff options
| author | Po Lu | 2022-06-14 19:49:58 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-14 19:50:31 +0800 |
| commit | 8fa1cdc1faf901f45554e97843efd1f01adc2e92 (patch) | |
| tree | 98c24f559bde1abae3563c9ed84947a0f0b9ef1c | |
| parent | fda5cccba8d1d0ef50894576ba9372711b176c22 (diff) | |
| download | emacs-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.c | 18 |
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. |
| 27369 | It should accept two arguments POS and ACTION, and return a symbol | 27369 | If the value is a function, `x-begin-drag' will call it with two |
| 27370 | describing what to return from `x-begin-drag'. POS is a mouse | 27370 | arguments, POS and ACTION, where POS is a mouse position list |
| 27371 | position list detailing the location of the drop, and ACTION is the | 27371 | that specifies the location of the drop, and ACTION is the |
| 27372 | action specified by the caller of `x-begin-drag'. | 27372 | action specified by the caller of `x-begin-drag'. The function |
| 27373 | 27373 | should return a symbol describing what to return from | |
| 27374 | If nil or a non-symbol value is returned, the drop will be | 27374 | `x-begin-drag' if the drop happens on an Emacs frame. |
| 27375 | cancelled. */); | 27375 | |
| 27376 | If the value is nil, or the function returns a value that is not | ||
| 27377 | a 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 | } |