aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Albinus2018-05-21 19:48:15 +0200
committerMichael Albinus2018-05-21 19:48:15 +0200
commitab37ceb9eecdd20b913d1b2b00d81e8f83e1caf7 (patch)
tree9ad1f74753a4985f55ba9f1ad60b246ec2a7ff84 /doc
parent4010631fe915503e5376458d8a8b482d37360f87 (diff)
downloademacs-ab37ceb9eecdd20b913d1b2b00d81e8f83e1caf7.tar.gz
emacs-ab37ceb9eecdd20b913d1b2b00d81e8f83e1caf7.zip
Fix Bug#31489
* doc/misc/tramp.texi (Frequently Asked Questions): Mention `tramp-ignored-file-name-regexp'. Improve index. ; * etc/NEWS: Mention `tramp-ignored-file-name-regexp'. * lisp/net/tramp.el (tramp-ignored-file-name-regexp): New defcustom. (tramp-tramp-file-p): Use it. Check also for `tramp-mode'. (tramp-file-name-handler): Don't check for `tramp-mode'. (Bug#31489) * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax): Extend test.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/tramp.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 329c46bdaad..5dd1a2ca4ee 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3994,6 +3994,7 @@ in @file{.emacs}:
3994@end lisp 3994@end lisp
3995 3995
3996@item 3996@item
3997@vindex tramp-mode
3997To disable both @value{tramp} (and Ange FTP), set @code{tramp-mode} to 3998To disable both @value{tramp} (and Ange FTP), set @code{tramp-mode} to
3998@code{nil} in @file{.emacs}. @strong{Note}, that we don't use 3999@code{nil} in @file{.emacs}. @strong{Note}, that we don't use
3999@code{customize-set-variable}, in order to avoid loading @value{tramp}. 4000@code{customize-set-variable}, in order to avoid loading @value{tramp}.
@@ -4003,6 +4004,21 @@ To disable both @value{tramp} (and Ange FTP), set @code{tramp-mode} to
4003@end lisp 4004@end lisp
4004 4005
4005@item 4006@item
4007@vindex tramp-ignored-file-name-regexp
4008To deactivate @value{tramp} for some look-alike remote file names, set
4009@code{tramp-ignored-file-name-regexp} to a proper regexp in
4010@file{.emacs}. @strong{Note}, that we don't use
4011@code{customize-set-variable}, in order to avoid loading
4012@value{tramp}.
4013
4014@lisp
4015(setq tramp-ignored-file-name-regexp "\\`/ssh:example\\.com:")
4016@end lisp
4017
4018This is needed, if you mount for example a virtual file system on your
4019local host's root directory as @file{/ssh:example.com:}.
4020
4021@item
4006To unload @value{tramp}, type @kbd{M-x tramp-unload-tramp @key{RET}}. 4022To unload @value{tramp}, type @kbd{M-x tramp-unload-tramp @key{RET}}.
4007Unloading @value{tramp} resets Ange FTP plugins also. 4023Unloading @value{tramp} resets Ange FTP plugins also.
4008@end itemize 4024@end itemize