]> git.eshelyaron.com Git - emacs.git/commitdiff
Hide tramp-mode
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 27 Aug 2024 14:47:54 +0000 (16:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:39 +0000 (09:51 +0200)
* 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
lisp/net/tramp.el

index 1547344f3ff8fce067f39c3b85eeaae1ea692827..327ddfdbbed6c711a94b67766a3fbe4b6823e5cf 100644 (file)
@@ -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
index a87dc149849062e7f2c73743c9f72f75a0229544..1dfdf7c68c87b21f0b22a45efcd7a9cc972cf5e6 100644 (file)
 
 ;; 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.