summaryrefslogtreecommitdiff
path: root/man/frames.texi
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2004-08-31 11:32:03 +0000
committerJan Djärv <jan.h.d@swipnet.se>2004-08-31 11:32:03 +0000
commit2ca8a8298ed247d3a7e0070beb0fb54b76372a0f (patch)
treef41127486835233e1c21e2b0095a38e5791b8bd3 /man/frames.texi
parent6cf98490e69800ec75f96a37b776a4b675f763ae (diff)
downloademacs-2ca8a8298ed247d3a7e0070beb0fb54b76372a0f.tar.gz
* frames.texi (Drag and drop): Add documentation about
x-dnd-test-function and x-dnd-known-types.
Diffstat (limited to 'man/frames.texi')
-rw-r--r--man/frames.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/frames.texi b/man/frames.texi
index 50b6a4ed398..dee050922e6 100644
--- a/man/frames.texi
+++ b/man/frames.texi
@@ -809,6 +809,17 @@ As a special case, if a file is dropped on a dired buffer the file is
copied or moved (depends on exactly how it is dragged and the application
it was dragged from) to the directory the dired buffer is displaying.
+@vindex x-dnd-test-function
+@vindex x-dnd-known-types
+ When a user drags something from another application over Emacs, that other
+application expects Emacs to tell it if Emacs can handle the data that is
+dragged. The variable @code{x-dnd-test-function} is used by Emacs to determine
+what to reply. The default value is @code{x-dnd-default-test-function}
+which accepts drops if the type of the data to be dropped is present in
+@code{x-dnd-known-types}. You can customize @code{x-dnd-test-function} and/or
+@code{x-dnd-known-types} if you want Emacs to accept or reject drops based
+on some other criteria.
+
@vindex x-dnd-open-file-other-window
A file is normally opened in the window it is dropped on, but if you
prefer the file to be opened in a new window you can customize the variable