x-dnd-types-alist
x-dnd-types-alist is a variable defined in `
x-dnd.el
'.
Its value is shown
below.
Documentation:
Which function to call to handle a drop of that type.
If the type for the drop is not present, or the function is nil,
the drop is rejected. The function takes three arguments, WINDOW, ACTION
and DATA. WINDOW is where the drop occurred, ACTION is the action for
this drop (copy, move, link, private or ask) as determined by a previous
call to `x-dnd-test-function'. DATA is the drop data.
The function shall return the action used (copy, move, link or private)
if drop is successful, nil if not.
You can customize this variable.
This variable was introduced, or its default value was changed, in
version 22.1 of Emacs.
Value:
(("text/uri-list" . x-dnd-handle-uri-list)
("text/x-moz-url" . x-dnd-handle-moz-url)
("_NETSCAPE_URL" . x-dnd-handle-uri-list)
("FILE_NAME" . x-dnd-handle-file-name)
("UTF8_STRING" . x-dnd-insert-utf8-text)
("text/plain;charset=UTF-8" . x-dnd-insert-utf8-text)
("text/plain;charset=utf-8" . x-dnd-insert-utf8-text)
("text/unicode" . x-dnd-insert-utf16-text)
("text/plain" . dnd-insert-text)
("COMPOUND_TEXT" . x-dnd-insert-ctext)
("STRING" . dnd-insert-text)
("TEXT" . dnd-insert-text))