Function: tramp-sh-file-name-handler

tramp-sh-file-name-handler is an autoloaded and byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-sh-file-name-handler OPERATION &rest ARGS)

Documentation

Invoke remote-shell Tramp file name handler.

Fall back to normal file name handler if no Tramp handler exists.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;;;###tramp-autoload
(defun tramp-sh-file-name-handler (operation &rest args)
  "Invoke remote-shell Tramp file name handler.
Fall back to normal file name handler if no Tramp handler exists."
  (if-let* ((fn (assoc operation tramp-sh-file-name-handler-alist)))
      (prog1 (save-match-data (apply (cdr fn) args))
	(setq tramp-debug-message-fnh-function (cdr fn)))
    (prog1 (tramp-run-real-handler operation args)
      (setq tramp-debug-message-fnh-function operation))))