Variable: x-dnd-types-alist
x-dnd-types-alist is a customizable variable defined in x-dnd.el.gz.
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) ("DndTypeFile" . x-dnd-handle-offix-file)
("DndTypeFiles" . x-dnd-handle-offix-files)
("DndTypeText" . dnd-insert-text))
Documentation
Functions to call to handle drag-and-drop of known types.
If the type of the drop is not present in the alist, or the function corresponding to the type is nil, the drop of that type will be rejected.
Each function takes three arguments: WINDOW, ACTION, and DATA.
WINDOW is the window 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 it used (one of the above,
excluding ask) if drop is successful, nil if not.
This variable was added, or its default value changed, in Emacs 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defcustom x-dnd-types-alist
'(("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)
("DndTypeFile" . x-dnd-handle-offix-file)
("DndTypeFiles" . x-dnd-handle-offix-files)
("DndTypeText" . dnd-insert-text))
"Functions to call to handle drag-and-drop of known types.
If the type of the drop is not present in the alist, or the
function corresponding to the type is nil, the drop of that
type will be rejected.
Each function takes three arguments: WINDOW, ACTION, and DATA.
WINDOW is the window 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 it used (one of the above,
excluding `ask') if drop is successful, nil if not."
:version "22.1"
:type 'alist
:group 'x)