Variable: dnd-open-remote-file-function

dnd-open-remote-file-function is a customizable variable defined in dnd.el.gz.

Value

dnd-open-remote-url

Documentation

The function to call when opening a file on a remote machine.

The function will be called with two arguments, URI and ACTION. See dnd-open-file for details. If nil, then dragging remote files into Emacs will result in an error. Predefined functions are dnd-open-local-file and dnd-open-remote-url. dnd-open-local-file attempts to open a remote file using its UNC name and is the default on MS-Windows. dnd-open-remote-url uses url-handler-mode(var)/url-handler-mode(fun) and is the default except for MS-Windows.

This variable was added, or its default value changed, in Emacs 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dnd.el.gz
(defcustom dnd-open-remote-file-function
  (if (eq system-type 'windows-nt)
      #'dnd-open-local-file
    #'dnd-open-remote-url)
  "The function to call when opening a file on a remote machine.
The function will be called with two arguments, URI and ACTION.
See `dnd-open-file' for details.
If nil, then dragging remote files into Emacs will result in an error.
Predefined functions are `dnd-open-local-file' and `dnd-open-remote-url'.
`dnd-open-local-file' attempts to open a remote file using its UNC name and
is the default on MS-Windows.  `dnd-open-remote-url' uses `url-handler-mode'
and is the default except for MS-Windows."
  :version "22.1"
  :type 'function
  :group 'dnd)