From 77173e2ed40ac86529a2ef32bdcf03929fc69b63 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 27 Aug 2024 16:47:54 +0200 Subject: [PATCH] Hide tramp-mode * doc/misc/tramp.texi (Frequently Asked Questions): Remove tramp-mode. * lisp/net/tramp.el (tramp-mode): Make it a defvar. People shouldn't customize it manually. (cherry picked from commit bfaa3e029f65a9f2a2509a370579ecb74589ddc5) --- doc/misc/tramp.texi | 6 +----- lisp/net/tramp.el | 8 ++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 1547344f3ff..327ddfdbbed 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi @@ -6172,9 +6172,6 @@ inhibit-remote-files @key{RET}}. You can also add this to your (inhibit-remote-files) @end lisp -@vindex tramp-mode -This command sets the user option @code{tramp-mode} to @code{nil}. - @findex without-remote-files @item If you write code, which is intended to run only for local files, you @@ -6185,8 +6182,7 @@ can use the @code{without-remote-files} macro. @end lisp This improves performance, because many primitive file name operations -don't check any longer for @value{tramp} file name regexps then. The -macro binds the user option @code{tramp-mode} to @code{nil}. +don't check any longer for @value{tramp} file name regexps then. @findex tramp-unload-tramp @item diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index a87dc149849..1dfdf7c68c8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -122,15 +122,11 @@ ;; Maybe we need once a real Tramp mode, with key bindings etc. ;;;###autoload -(defcustom tramp-mode t +(defvar tramp-mode t "Whether Tramp is enabled. If it is set to nil, all remote file names are used literally. Don't set it manually, use `inhibit-remote-files' or `without-remote-files' -instead." - :type 'boolean - :link '(tramp-info-link :tag "Tramp manual" tramp-mode) - :link '(info-link :tag "Emacs manual" "(emacs) Remote Files") - :link '(info-link :tag "Elisp manual" "(elisp) Magic File Names")) +instead.") (defcustom tramp-backup-directory-alist nil "Alist of filename patterns and backup directory names. -- 2.39.5