Function: x-dnd-handle-uri-list

x-dnd-handle-uri-list is a byte-compiled function defined in x-dnd.el.gz.

Signature

(x-dnd-handle-uri-list WINDOW ACTION STRING)

Documentation

Split an uri-list into separate URIs and call dnd-handle-one-url.

WINDOW is the window where the drop happened. STRING is the uri-list as a string. The URIs are separated by \r\n.

Source Code

;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defun x-dnd-handle-uri-list (window action string)
  "Split an uri-list into separate URIs and call `dnd-handle-one-url'.
WINDOW is the window where the drop happened.
STRING is the uri-list as a string.  The URIs are separated by \\r\\n."
  (let ((uri-list (split-string string "[\0\r\n]" t))
	retval)
    (dolist (bf uri-list)
      ;; If one URL is handled, treat as if the whole drop succeeded.
      (let ((did-action (dnd-handle-one-url window action bf)))
	(when did-action (setq retval did-action))))
    retval))