Function: without-remote-files

without-remote-files is a macro defined in tramp.el.gz.

Signature

(without-remote-files &rest BODY)

Documentation

Deactivate remote file names temporarily.

Run BODY.

View in manual

Probably introduced at or before Emacs version 30.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
;;;###autoload
(progn (defmacro without-remote-files (&rest body)
  "Deactivate remote file names temporarily.
Run BODY."
  (declare (indent 0) (debug t))
  `(let ((file-name-handler-alist (copy-tree file-name-handler-alist))
         tramp-mode)
     (tramp-unload-file-name-handlers)
     ,@body)))