Function: dnd-remove-last-dragged-remote-file

dnd-remove-last-dragged-remote-file is a byte-compiled function defined in dnd.el.gz.

Signature

(dnd-remove-last-dragged-remote-file)

Documentation

Remove the local copy of the last remote file to be dragged.

If dnd-last-dragged-remote-file is a list, remove all the files in that list instead.

Source Code

;; Defined in /usr/src/emacs/lisp/dnd.el.gz
(defun dnd-remove-last-dragged-remote-file ()
  "Remove the local copy of the last remote file to be dragged.
If `dnd-last-dragged-remote-file' is a list, remove all the files
in that list instead."
  (when dnd-last-dragged-remote-file
    (unwind-protect
        (if (consp dnd-last-dragged-remote-file)
            (mapc #'delete-file dnd-last-dragged-remote-file)
          (delete-file dnd-last-dragged-remote-file))
      (setq dnd-last-dragged-remote-file nil)))
  (remove-hook 'kill-emacs-hook
               #'dnd-remove-last-dragged-remote-file))