Function: tramp-disable-ange-ftp

tramp-disable-ange-ftp is a byte-compiled function defined in tramp-ftp.el.gz.

Signature

(tramp-disable-ange-ftp)

Documentation

Turn Ange-FTP off.

This is useful for unified remoting. See tramp-file-name-structure for details. Requests suitable for Ange-FTP will be forwarded to Ange-FTP. Also see the variables tramp-ftp-method, tramp-default-method, and tramp-default-method-alist.

This function is not needed in Emacsen which include Tramp, but is present for backward compatibility.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-ftp.el.gz
;; Disable Ange-FTP from file-name-handler-alist.
(defun tramp-disable-ange-ftp ()
  "Turn Ange-FTP off.
This is useful for unified remoting.  See
`tramp-file-name-structure' for details.  Requests suitable for
Ange-FTP will be forwarded to Ange-FTP.  Also see the variables
`tramp-ftp-method', `tramp-default-method', and
`tramp-default-method-alist'.

This function is not needed in Emacsen which include Tramp, but is
present for backward compatibility."
  (let ((a1 (rassq 'ange-ftp-hook-function file-name-handler-alist))
	(a2 (rassq 'ange-ftp-completion-hook-function file-name-handler-alist)))
    (setq file-name-handler-alist
	  (delete a1 (delete a2 file-name-handler-alist)))))