[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bfaa3e029f6: Hide tramp-mode
From: |
Michael Albinus |
Subject: |
master bfaa3e029f6: Hide tramp-mode |
Date: |
Tue, 27 Aug 2024 10:48:09 -0400 (EDT) |
branch: master
commit bfaa3e029f65a9f2a2509a370579ecb74589ddc5
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>
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.
---
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 c3571a0066d..901fce2db39 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -6188,9 +6188,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
@@ -6201,8 +6198,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 c3cb525b547..709f6458e83 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bfaa3e029f6: Hide tramp-mode,
Michael Albinus <=