Function: tramp-crypt-file-name-handler

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

Signature

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

Documentation

Invoke the encrypted remote file related OPERATION.

First arg specifies the OPERATION, second arg is a list of arguments to pass to the OPERATION.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-crypt.el.gz
;;;###tramp-autoload
(defun tramp-crypt-file-name-handler (operation &rest args)
  "Invoke the encrypted remote file related OPERATION.
First arg specifies the OPERATION, second arg is a list of
arguments to pass to the OPERATION."
  (if-let* ((filename
	     (apply #'tramp-crypt-file-name-for-operation operation args))
	    ((tramp-crypt-file-name-p filename))
	    (fn (assoc operation tramp-crypt-file-name-handler-alist)))
      (prog1 (save-match-data (apply (cdr fn) args))
	(setq tramp-debug-message-fnh-function (cdr fn)))
    (prog1 (tramp-crypt-run-real-handler operation args)
      (setq tramp-debug-message-fnh-function operation))))