2015-09-25 12:32:13 +03:00
|
|
|
|
\input texinfo @c -*- mode: texinfo; coding: utf-8 -*-
|
2023-01-06 13:34:33 +01:00
|
|
|
|
@setfilename ../../info/tramp.info
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@c %**start of header
|
Fix single-quoting style in PDF manuals
The PDF versions of the GNU manuals used curved single quotes to
represent grave accent and apostrophe, which made it a pain to cut
and paste code examples from them. Fix the PDF versions to use
grave accent and apostrophe for Lisp source code, keystrokes, etc.
This change does not affect the info files, nor does it affect
ordinary uses of curved single quotes in PDF.
* doc/emacs/docstyle.texi: New file, which specifies treatment for
grave accent and apostrophe, as well as the document encoding.
* doc/emacs/emacs-xtra.texi, doc/emacs/emacs.texi:
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/back.texi, doc/lispref/book-spine.texi:
* doc/lispref/elisp.texi, doc/lispref/lay-flat.texi:
* doc/misc/ada-mode.texi, doc/misc/auth.texi:
* doc/misc/autotype.texi, doc/misc/bovine.texi, doc/misc/calc.texi:
* doc/misc/cc-mode.texi, doc/misc/cl.texi, doc/misc/dbus.texi:
* doc/misc/dired-x.texi, doc/misc/ebrowse.texi, doc/misc/ede.texi:
* doc/misc/ediff.texi, doc/misc/edt.texi, doc/misc/efaq-w32.texi:
* doc/misc/efaq.texi, doc/misc/eieio.texi, doc/misc/emacs-gnutls.texi:
* doc/misc/emacs-mime.texi, doc/misc/epa.texi, doc/misc/erc.texi:
* doc/misc/ert.texi, doc/misc/eshell.texi, doc/misc/eudc.texi:
* doc/misc/eww.texi, doc/misc/flymake.texi, doc/misc/forms.texi:
* doc/misc/gnus-coding.texi, doc/misc/gnus-faq.texi:
* doc/misc/gnus.texi, doc/misc/htmlfontify.texi:
* doc/misc/idlwave.texi, doc/misc/ido.texi, doc/misc/info.texi:
* doc/misc/mairix-el.texi, doc/misc/message.texi, doc/misc/mh-e.texi:
* doc/misc/newsticker.texi, doc/misc/nxml-mode.texi:
* doc/misc/octave-mode.texi, doc/misc/org.texi, doc/misc/pcl-cvs.texi:
* doc/misc/pgg.texi, doc/misc/rcirc.texi, doc/misc/reftex.texi:
* doc/misc/remember.texi, doc/misc/sasl.texi, doc/misc/sc.texi:
* doc/misc/semantic.texi, doc/misc/ses.texi, doc/misc/sieve.texi:
* doc/misc/smtpmail.texi, doc/misc/speedbar.texi:
* doc/misc/srecode.texi, doc/misc/todo-mode.texi, doc/misc/tramp.texi:
* doc/misc/url.texi, doc/misc/vhdl-mode.texi, doc/misc/vip.texi:
* doc/misc/viper.texi, doc/misc/widget.texi, doc/misc/wisent.texi:
* doc/misc/woman.texi:
Use it instead of '@documentencoding UTF-8', to lessen the need for
global changes like this in the future.
* doc/emacs/Makefile.in (EMACS_XTRA):
* doc/lispintro/Makefile.in (srcs):
* doc/lispref/Makefile.in (srcs):
Add dependency on docstyle.texi.
* doc/misc/Makefile.in (style): New macro.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html)
(${buildinfodir}/ccmode.info, ${buildinfodir}/efaq%.info, gnus_deps):
Use it.
2015-05-01 12:05:53 -07:00
|
|
|
|
@include docstyle.texi
|
2022-11-29 17:00:02 +01:00
|
|
|
|
@c In the Tramp GIT, the version number and the bug report address
|
|
|
|
|
@c are auto-frobbed from configure.ac.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@include trampver.texi
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@settitle @value{tramp} @value{trampver} User Manual
|
|
|
|
|
@c %**end of header
|
|
|
|
|
|
|
|
|
|
@c This is *so* much nicer :)
|
|
|
|
|
@footnotestyle end
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@copying
|
2024-01-02 09:47:10 +08:00
|
|
|
|
Copyright @copyright{} 1999--2024 Free Software Foundation, Inc.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@quotation
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
2008-11-19 04:29:29 +00:00
|
|
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
2007-09-06 05:07:05 +00:00
|
|
|
|
any later version published by the Free Software Foundation; with no
|
2014-05-07 13:34:53 -04:00
|
|
|
|
Invariant Sections, with the Front-Cover Texts being ``A GNU Manual'',
|
2008-06-15 02:31:43 +00:00
|
|
|
|
and with the Back-Cover Texts as in (a) below. A copy of the license
|
|
|
|
|
is included in the section entitled ``GNU Free Documentation License''.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2008-02-02 10:56:12 +00:00
|
|
|
|
(a) The FSF's Back-Cover Text is: ``You have the freedom to
|
2012-12-21 10:36:41 -08:00
|
|
|
|
copy and modify this GNU manual.''
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end quotation
|
|
|
|
|
@end copying
|
|
|
|
|
|
2019-04-15 09:35:31 +02:00
|
|
|
|
@c Entries for @command{install-info} to use. We cannot use @value{tramp}.
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@dircategory Emacs network features
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@direntry
|
2019-04-15 09:35:31 +02:00
|
|
|
|
* Tramp: (tramp). Transparent Remote Access, Multiple Protocol
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Emacs remote file access via ssh and scp.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end direntry
|
|
|
|
|
|
|
|
|
|
@titlepage
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@title @value{tramp} @value{trampver} User Manual
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@author by Daniel Pittman
|
2015-05-01 12:57:44 -07:00
|
|
|
|
@author based on documentation by Kai Großjohann
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end titlepage
|
|
|
|
|
|
2009-02-16 17:41:58 +00:00
|
|
|
|
@contents
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2016-08-15 12:48:01 -04:00
|
|
|
|
@node Top, Overview, (dir), (dir)
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@top @value{tramp} @value{trampver} User Manual
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
This file documents @w{@value{tramp} @value{trampver}}, a remote file
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
editing package for Emacs.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-04-11 07:47:25 -07:00
|
|
|
|
@value{tramp} stands for ``Transparent Remote (file) Access, Multiple
|
2022-07-09 16:19:07 +02:00
|
|
|
|
Protocol''. This package provides an easy, convenient, and consistent
|
|
|
|
|
interface to editing remote files transparently, just as if they are
|
|
|
|
|
local files. This extends to editing, version control, @code{dired},
|
|
|
|
|
and more.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
You can find the latest version of this document on the web at
|
2020-07-29 16:41:18 +02:00
|
|
|
|
@uref{@value{trampurl}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@ifhtml
|
|
|
|
|
The latest release of @value{tramp} is available for
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@uref{https://ftp.gnu.org/gnu/tramp/, download}, or you may see
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@ref{Obtaining @value{tramp}} for more details, including the Git
|
|
|
|
|
server details.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@value{tramp} also has a @uref{https://savannah.gnu.org/projects/tramp/,
|
2007-09-06 05:07:05 +00:00
|
|
|
|
Savannah Project Page}.
|
|
|
|
|
@end ifhtml
|
|
|
|
|
|
|
|
|
|
There is a mailing list for @value{tramp}, available at
|
2018-10-04 09:46:14 +02:00
|
|
|
|
@email{@value{tramp-bug-report-address}}, and archived at
|
|
|
|
|
@uref{https://lists.gnu.org/r/tramp-devel/, the @value{tramp} Mail
|
|
|
|
|
Archive}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2016-08-16 09:48:24 +02:00
|
|
|
|
@page
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@insertcopying
|
|
|
|
|
|
|
|
|
|
@menu
|
|
|
|
|
* Overview:: What @value{tramp} can and cannot do.
|
|
|
|
|
|
|
|
|
|
For the end user:
|
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
* Obtaining @value{tramp}:: How to obtain @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifset installchapter
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
* Installation:: Installing @value{tramp} with your Emacs.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifset
|
2017-07-10 15:36:23 +02:00
|
|
|
|
* Quick Start Guide:: Short introduction how to use @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Configuration:: Configuring @value{tramp} for use.
|
|
|
|
|
* Usage:: An overview of the operation of @value{tramp}.
|
|
|
|
|
* Bug Reports:: Reporting Bugs and Problems.
|
|
|
|
|
* Frequently Asked Questions:: Questions and answers from the mailing list.
|
|
|
|
|
|
|
|
|
|
For the developer:
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
* Files directories and localnames::
|
|
|
|
|
How file names, directories and localnames
|
|
|
|
|
are mangled and managed.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Traces and Profiles:: How to Customize Traces.
|
|
|
|
|
|
|
|
|
|
* GNU Free Documentation License:: The license for this documentation.
|
2013-02-20 18:42:30 -08:00
|
|
|
|
* Function Index:: @value{tramp} functions.
|
|
|
|
|
* Variable Index:: User options and variables.
|
|
|
|
|
* Concept Index:: An item for each concept.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@detailmenu
|
|
|
|
|
--- The Detailed Node Listing ---
|
|
|
|
|
@c
|
|
|
|
|
@ifset installchapter
|
2018-10-02 16:51:51 +02:00
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Installing @value{tramp} with your Emacs
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2019-04-15 09:35:31 +02:00
|
|
|
|
* System Requirements:: Prerequisites for @value{tramp} installation.
|
|
|
|
|
* Basic Installation:: Installation steps.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Installation parameters:: Parameters in order to control installation.
|
2017-03-16 16:23:07 +01:00
|
|
|
|
* Testing:: A test suite for @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Load paths:: How to plug-in @value{tramp} into your environment.
|
|
|
|
|
@end ifset
|
|
|
|
|
|
|
|
|
|
Configuring @value{tramp} for use
|
|
|
|
|
|
2024-05-07 09:56:05 +02:00
|
|
|
|
* Optional methods:: Optional methods which must be enabled first.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
* Connection types:: Types of connections to remote hosts.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Inline methods:: Inline methods.
|
2009-01-21 18:54:45 +00:00
|
|
|
|
* External methods:: External methods.
|
2019-08-22 14:50:38 +02:00
|
|
|
|
* GVFS-based methods:: @acronym{GVFS}-based external methods.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
* FUSE-based methods:: @acronym{FUSE}-based external methods.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Default Method:: Selecting a default method.
|
|
|
|
|
* Default User:: Selecting a default user.
|
|
|
|
|
* Default Host:: Selecting a default host.
|
|
|
|
|
* Multi-hops:: Connecting to a remote host using multiple hops.
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
* Firewalls:: Passing firewalls.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Customizing Methods:: Using Non-Standard Methods.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Customizing Completion:: Selecting config files for user/host name @c
|
|
|
|
|
completion.
|
2008-06-21 11:51:31 +00:00
|
|
|
|
* Password handling:: Reusing passwords for several connections.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Connection caching:: Reusing connection related information.
|
2013-06-19 15:21:15 +02:00
|
|
|
|
* Predefined connection information::
|
|
|
|
|
Setting own connection related information.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Remote programs:: How @value{tramp} finds and uses programs @c
|
|
|
|
|
on the remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Remote shell setup:: Remote shell setup hints.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Ssh setup:: Ssh setup hints.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
* FUSE setup:: @acronym{FUSE} setup hints.
|
2013-02-16 18:38:37 +01:00
|
|
|
|
* Android shell setup:: Android shell setup hints.
|
2023-06-28 16:53:01 +02:00
|
|
|
|
* Kubernetes setup:: Kubernetes setup hints.
|
2021-07-09 18:14:19 +02:00
|
|
|
|
* Auto-save File Lock and Backup::
|
|
|
|
|
Auto-save, File Lock and Backup.
|
2020-06-10 19:36:53 +02:00
|
|
|
|
* Keeping files encrypted:: Protect remote files by encryption.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
Using @value{tramp}
|
|
|
|
|
|
2017-04-09 13:28:24 +02:00
|
|
|
|
* File name syntax:: @value{tramp} file name conventions.
|
|
|
|
|
@ifset unified
|
|
|
|
|
* Change file name syntax:: Alternative file name syntax.
|
|
|
|
|
@end ifset
|
2014-01-12 16:19:07 +01:00
|
|
|
|
* File name completion:: File name completion.
|
2012-06-11 15:03:39 +02:00
|
|
|
|
* Ad-hoc multi-hops:: Declaring multiple hops in the file name.
|
2022-03-10 12:31:22 +01:00
|
|
|
|
* Home directories:: Expanding @file{~} to home directory.
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
* Remote processes:: Integration with other Emacs packages.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
* Cleanup remote connections:: Cleanup remote connections.
|
2019-11-20 13:45:30 +01:00
|
|
|
|
* Renaming remote files:: Renaming remote files.
|
2017-12-09 14:34:30 +01:00
|
|
|
|
* Archive file names:: Access to files in file archives.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
How file names, directories and localnames are mangled and managed
|
|
|
|
|
|
2023-07-05 16:19:23 +02:00
|
|
|
|
* Temporary directory:: Where temporary files are kept.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Localname deconstruction:: Breaking a localname into its components.
|
2007-10-06 11:55:36 +00:00
|
|
|
|
* External packages:: Integration with external Lisp packages.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@end detailmenu
|
|
|
|
|
@end menu
|
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Overview
|
|
|
|
|
@chapter An overview of @value{tramp}
|
|
|
|
|
@cindex overview
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} is for transparently accessing remote files from within
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Emacs. @value{tramp} enables an easy, convenient, and consistent
|
|
|
|
|
interface to remote files as if they are local files. @value{tramp}'s
|
|
|
|
|
transparency extends to editing, version control, and @code{dired}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@value{tramp} can access remote hosts using any number of access
|
2022-07-12 15:42:17 +02:00
|
|
|
|
methods, such as @command{ssh}, @command{scp}, @command{telnet}, and
|
|
|
|
|
related programs. If these programs can successfully pass
|
|
|
|
|
@acronym{ASCII} characters, @value{tramp} can use them. @value{tramp}
|
|
|
|
|
does not require or mandate 8-bit clean connections.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@value{tramp}'s most common access method is through @command{ssh}, a
|
|
|
|
|
more secure alternative to @command{ftp} and other older access
|
|
|
|
|
methods.
|
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@value{tramp} on MS Windows operating systems is integrated with the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
PuTTY package, and uses the @command{plink} program.
|
|
|
|
|
|
|
|
|
|
@value{tramp} mostly operates transparently in the background using
|
|
|
|
|
the connection programs. As long as these programs enable remote login
|
|
|
|
|
and can use the terminal, @value{tramp} can adapt them for seamless
|
|
|
|
|
and transparent access.
|
|
|
|
|
|
|
|
|
|
@value{tramp} temporarily transfers a remote file's contents to the
|
|
|
|
|
local host editing and related operations. @value{tramp} can also
|
|
|
|
|
transfer files between hosts using standard Emacs interfaces, a
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
benefit of direct integration of @value{tramp} in Emacs.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@value{tramp} can transfer files using any number of available host
|
|
|
|
|
programs for remote files, such as @command{rcp}, @command{scp},
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@command{rsync} or (under MS Windows) @command{pscp}. @value{tramp}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
provides easy ways to specify these programs and customize them to
|
|
|
|
|
specific files, hosts, or access methods.
|
|
|
|
|
|
|
|
|
|
For faster small-size file transfers, @value{tramp} supports encoded
|
|
|
|
|
transfers directly through the shell using @command{mimencode} or
|
|
|
|
|
@command{uuencode} provided such tools are available on the remote
|
|
|
|
|
host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@subsubheading @value{tramp} behind the scenes
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex behind the scenes
|
|
|
|
|
@cindex details of operation
|
|
|
|
|
@cindex how it works
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Accessing a remote file through @value{tramp} entails a series of
|
|
|
|
|
actions, many of which are transparent to the user. Yet some actions
|
|
|
|
|
may require user response (such as entering passwords or completing
|
|
|
|
|
file names). One typical scenario, opening a file on a remote host, is
|
|
|
|
|
presented here to illustrate the steps involved:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@kbd{C-x C-f} to initiate find-file, enter part of the @value{tramp}
|
|
|
|
|
file name, then hit @kbd{@key{TAB}} for completion. If this is the
|
2021-02-23 14:21:26 +01:00
|
|
|
|
first time connecting to that host, here's what happens:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item
|
2022-07-12 15:42:17 +02:00
|
|
|
|
@value{tramp} invokes @samp{telnet @var{host}} or @samp{ssh -l
|
|
|
|
|
@var{user} @var{host}} and establishes an external process to connect
|
|
|
|
|
to the remote host. @value{tramp} communicates with the process
|
|
|
|
|
through an Emacs buffer, which also shows output from the remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The remote host may prompt for a login name (for @command{telnet}, for
|
|
|
|
|
example) in the buffer. If on the other hand, the login name was
|
|
|
|
|
included in the file name portion, @value{tramp} sends the login name
|
|
|
|
|
followed by a newline.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2020-08-23 13:30:43 +02:00
|
|
|
|
The remote host may then prompt for a password or passphrase (for
|
2022-07-12 15:42:17 +02:00
|
|
|
|
@command{ssh} or for @command{telnet}). @value{tramp} displays the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
password prompt in the minibuffer. @value{tramp} then sends whatever
|
|
|
|
|
is entered to the remote host, followed by a newline.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} now waits for either the shell prompt or a failed login
|
|
|
|
|
message.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
If @value{tramp} does not receive any messages within a timeout period
|
|
|
|
|
(a minute, for example), then @value{tramp} responds with an error
|
2021-02-23 14:21:26 +01:00
|
|
|
|
message about not finding the remote shell prompt. If there are any
|
|
|
|
|
messages from the remote host, @value{tramp} displays them in the
|
|
|
|
|
buffer.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For any @samp{login failed} message from the remote host,
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@value{tramp} aborts the login attempt, and repeats the login steps.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2021-02-23 14:21:26 +01:00
|
|
|
|
Upon successful login, if @value{tramp} recognizes the shell prompt
|
2015-12-29 15:33:54 +01:00
|
|
|
|
from the remote host, @value{tramp} prepares the shell environment by
|
2021-02-23 14:21:26 +01:00
|
|
|
|
turning off echoing, setting the shell prompt, and other housekeeping
|
2015-12-29 15:33:54 +01:00
|
|
|
|
chores.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@strong{Note} that for the remote shell, @value{tramp} invokes
|
|
|
|
|
@command{/bin/sh}. The remote host must recognize @samp{exec /bin/sh}
|
|
|
|
|
and execute the appropriate shell. This shell must support Bourne
|
|
|
|
|
shell syntax.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} executes @command{cd} and @command{ls} commands to find
|
|
|
|
|
which files exist on the remote host. @value{tramp} sometimes uses
|
|
|
|
|
@command{echo} with globbing. @value{tramp} checks if a file or
|
|
|
|
|
directory is writable with @command{test}. After each command,
|
|
|
|
|
@value{tramp} parses the output from the remote host for completing
|
|
|
|
|
the next operation.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
After remote file name completion, @value{tramp} transfers the file
|
|
|
|
|
contents from the remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For inline transfers, @value{tramp} sends a command, such as
|
|
|
|
|
@samp{mimencode -b /path/to/remote/file}, waits until the output has
|
2021-02-23 14:21:26 +01:00
|
|
|
|
accumulated in the buffer, then decodes that output to produce the
|
|
|
|
|
file's contents.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For external transfers, @value{tramp} sends a command as follows:
|
2023-07-05 16:19:23 +02:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@example
|
2023-07-05 16:19:23 +02:00
|
|
|
|
$ scp user@@host:/path/to/remote/file <TMP>/tramp.4711
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
2023-07-05 16:19:23 +02:00
|
|
|
|
|
|
|
|
|
@value{tramp} reads the local temporary file @file{<TMP>/tramp.4711}
|
|
|
|
|
into a buffer, and then deletes the temporary
|
|
|
|
|
file.@footnote{@ref{Temporary directory}}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Edit, modify, change the buffer contents as normal, and then save the
|
2018-09-27 18:48:06 +03:00
|
|
|
|
buffer with @kbd{C-x C-s}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} transfers the buffer contents to the remote host in
|
|
|
|
|
a reverse of the process using the appropriate inline or external
|
|
|
|
|
program.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
I hope this has provided you with a basic overview of what happens
|
|
|
|
|
behind the scenes when you open a file with @value{tramp}.
|
|
|
|
|
|
|
|
|
|
|
2022-07-05 21:19:51 +02:00
|
|
|
|
@c For the end user.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@node Obtaining @value{tramp}
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@chapter Obtaining @value{tramp}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex obtaining @value{tramp}
|
2019-05-25 13:24:47 +02:00
|
|
|
|
@cindex GNU ELPA
|
2019-06-05 16:23:03 +02:00
|
|
|
|
@vindex tramp-version
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-01-06 18:14:15 +01:00
|
|
|
|
@value{tramp} is included as part of Emacs.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} is also freely packaged for download on the Internet at
|
2019-06-05 16:23:03 +02:00
|
|
|
|
@uref{https://ftp.gnu.org/gnu/tramp/}. The version number of
|
|
|
|
|
@value{tramp} can be obtained by the variable @code{tramp-version}.
|
|
|
|
|
For released @value{tramp} versions, this is a three-number string
|
2020-11-30 13:44:44 +01:00
|
|
|
|
like ``2.4.5''.
|
2019-06-05 16:23:03 +02:00
|
|
|
|
|
|
|
|
|
A @value{tramp} release, which is packaged with Emacs, could differ
|
|
|
|
|
slightly from the corresponding standalone release. This is because
|
|
|
|
|
it isn't always possible to synchronize release dates between Emacs
|
|
|
|
|
and @value{tramp}. Such version numbers have the Emacs version number
|
2020-11-30 13:44:44 +01:00
|
|
|
|
as suffix, like ``2.4.5.27.2''. This means @w{@value{tramp} 2.4.5} as
|
|
|
|
|
integrated in @w{Emacs 27.2}. A complete list of @value{tramp}
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
versions packaged with Emacs can be retrieved by
|
2019-06-16 10:32:46 +02:00
|
|
|
|
|
|
|
|
|
@vindex customize-package-emacs-version-alist
|
|
|
|
|
@lisp
|
|
|
|
|
(assoc 'Tramp customize-package-emacs-version-alist)
|
|
|
|
|
@end lisp
|
2019-06-05 16:23:03 +02:00
|
|
|
|
|
|
|
|
|
@value{tramp} is also available as @uref{https://elpa.gnu.org, GNU
|
2024-01-06 18:14:15 +01:00
|
|
|
|
ELPA} package. Besides the standalone releases, further minor
|
|
|
|
|
versions of @value{tramp} will appear on GNU ELPA, until the next
|
|
|
|
|
@value{tramp} release appears. These minor versions have a
|
|
|
|
|
four-number string, like ``2.4.5.1''. The manual of the latest
|
|
|
|
|
@value{tramp} ELPA package is located at
|
|
|
|
|
@uref{https://elpa.gnu.org/packages/doc/tramp.html}.
|
2019-05-25 13:24:47 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} development versions are available on Git servers.
|
2019-06-05 16:23:03 +02:00
|
|
|
|
Development versions contain new and incomplete features. The
|
|
|
|
|
development version of @value{tramp} is always the version number of
|
2020-05-16 14:04:07 +02:00
|
|
|
|
the next release, plus the suffix ``-pre'', like ``2.4.4-pre''.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
One way to obtain @value{tramp} from the Git server is to visit the
|
2019-06-16 10:32:46 +02:00
|
|
|
|
Savannah project page at the following URL and then clicking on the
|
|
|
|
|
Git link in the navigation bar at the top.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@uref{https://savannah.gnu.org/projects/tramp/}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Another way is to follow the terminal session below:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ cd ~/emacs
|
2023-02-04 14:24:37 -08:00
|
|
|
|
$ git clone https://git.savannah.gnu.org/git/tramp.git
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2012-12-02 16:33:17 +01:00
|
|
|
|
@end example
|
2015-10-18 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
@noindent
|
2021-02-23 14:21:26 +01:00
|
|
|
|
From behind a proxy:
|
2015-10-18 13:22:02 +02:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2023-08-02 23:26:52 +02:00
|
|
|
|
$ git config --global http.proxy https://user:pwd@@proxy.server.com:8080
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ git clone https://git.savannah.gnu.org/r/tramp.git
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2015-10-18 13:22:02 +02:00
|
|
|
|
@end example
|
2012-12-02 16:33:17 +01:00
|
|
|
|
|
|
|
|
|
@noindent
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@value{tramp} developers:
|
2012-12-02 16:33:17 +01:00
|
|
|
|
|
|
|
|
|
@example
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ git clone login@@git.sv.gnu.org:/srv/git/tramp.git
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@noindent
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
After one of the above commands, @file{~/emacs/tramp} will
|
2015-12-29 15:33:54 +01:00
|
|
|
|
containing the latest version of @value{tramp}.
|
|
|
|
|
|
|
|
|
|
@noindent
|
2020-10-01 14:23:20 +02:00
|
|
|
|
To fetch updates from the repository, use @code{git pull}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ cd ~/emacs/tramp
|
|
|
|
|
$ git pull
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Run @command{autoconf} as follows to generate an up-to-date
|
|
|
|
|
@file{configure} script:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ cd ~/emacs/tramp
|
|
|
|
|
$ autoconf
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2019-07-01 23:44:05 +02:00
|
|
|
|
@ifset installchapter
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@c Installation chapter is necessary only in case of standalone
|
2019-06-05 16:23:03 +02:00
|
|
|
|
@c installation.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@include trampinst.texi
|
|
|
|
|
@end ifset
|
2019-07-01 23:44:05 +02:00
|
|
|
|
@ifclear installchapter
|
|
|
|
|
See the file @file{INSTALL} in that directory for further information
|
2021-02-23 14:21:26 +01:00
|
|
|
|
on how to install @value{tramp}.
|
2019-07-01 23:44:05 +02:00
|
|
|
|
@end ifclear
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@node Quick Start Guide
|
|
|
|
|
@chapter Short introduction how to use @value{tramp}
|
|
|
|
|
@cindex quick start guide
|
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@value{tramp} extends the Emacs file name syntax by adding a remote
|
|
|
|
|
component. A remote file name always looks like
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@file{@trampfn{method,user@@host,/path/to/file}}.
|
|
|
|
|
|
|
|
|
|
You can use remote files exactly like ordinary files, that means you
|
2021-02-23 14:21:26 +01:00
|
|
|
|
can open a file or directory by @kbd{C-x C-f
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@trampfn{method,user@@host,/path/to/file} @key{RET}}, edit the file,
|
|
|
|
|
and save it. You can also mix local files and remote files in file
|
|
|
|
|
operations with two arguments, like @code{copy-file} or
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@code{rename-file}. And finally, you can even run processes on a
|
2017-07-10 15:36:23 +02:00
|
|
|
|
remote host, when the buffer you call the process from has a remote
|
|
|
|
|
@code{default-directory}.
|
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide File name syntax}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@section File name syntax
|
|
|
|
|
@cindex file name syntax
|
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
Remote file names have @code{method}, @code{user} and @code{host}
|
|
|
|
|
parts prepended. All of them, and also the local file name part, are
|
|
|
|
|
optional, in case of a missing part a default value is assumed. The
|
|
|
|
|
default value for an empty local file name part is the remote user's
|
|
|
|
|
home directory. The shortest remote file name is thus
|
|
|
|
|
@file{@trampfn{-,,}}. The @samp{-} notation for the default method is
|
2024-05-13 10:31:13 +02:00
|
|
|
|
used for syntactical reasons, @pxref{Default Method}.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
The @code{method} part describes the connection method used to reach
|
|
|
|
|
the remote host, see below.
|
|
|
|
|
|
|
|
|
|
The @code{user} part is the user name for accessing the remote host.
|
|
|
|
|
For the @option{smb} method, this could also require a domain name, in
|
2021-02-23 14:21:26 +01:00
|
|
|
|
which case it is written as @code{user%domain}.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
The @code{host} part must be a host name which can be resolved on
|
2017-07-10 15:36:23 +02:00
|
|
|
|
your local host. It could be a short host name, a fully qualified
|
2024-05-13 10:31:13 +02:00
|
|
|
|
domain name, an IPv4 or IPv6 address, @pxref{File name syntax}. Some
|
2021-02-23 14:21:26 +01:00
|
|
|
|
connection methods also support a notation for the port to be used, in
|
|
|
|
|
which case it is written as @code{host#port}.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide ssh and plink methods}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@section Using @option{ssh} and @option{plink}
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{ssh}
|
|
|
|
|
@cindex @option{ssh} method
|
|
|
|
|
@cindex method @option{plink}
|
|
|
|
|
@cindex @option{plink} method
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
If your local host runs an SSH client, and the remote host runs an SSH
|
2018-10-20 13:38:31 +02:00
|
|
|
|
server, the simplest remote file name is
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@file{@trampfn{ssh,user@@host,/path/to/file}}. The remote file name
|
|
|
|
|
@file{@trampfn{ssh,,}} opens a remote connection to yourself on the
|
2021-02-23 14:21:26 +01:00
|
|
|
|
local host, and is often used for testing @value{tramp}.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
On MS Windows, PuTTY is often used as the SSH client. Its @command{plink}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
method can be used there to open a connection to a remote host running
|
|
|
|
|
an @command{ssh} server:
|
|
|
|
|
@file{@trampfn{plink,user@@host,/path/to/file}}.
|
|
|
|
|
|
|
|
|
|
|
2024-05-11 10:03:45 +02:00
|
|
|
|
@anchor{Quick Start Guide su, sudo, doas, run0, androidsu and sg methods}
|
|
|
|
|
@section Using @option{su}, @option{sudo}, @option{doas}, @option{run0}, @option{androidsu} and @option{sg}
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{su}
|
|
|
|
|
@cindex @option{su} method
|
|
|
|
|
@cindex method @option{sudo}
|
|
|
|
|
@cindex @option{sudo} method
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@cindex method @option{doas}
|
|
|
|
|
@cindex @option{doas} method
|
2024-05-11 10:03:45 +02:00
|
|
|
|
@cindex method @option{run0}
|
|
|
|
|
@cindex @option{run0} method
|
2024-03-05 11:17:48 +01:00
|
|
|
|
@cindex method @option{androidsu}
|
|
|
|
|
@cindex @option{androidsu} method
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sg}
|
|
|
|
|
@cindex @option{sg} method
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
Sometimes, it is necessary to work on your local host under different
|
2021-02-23 14:21:26 +01:00
|
|
|
|
permissions. For this, you can use the @option{su} or @option{sudo}
|
2024-05-11 10:03:45 +02:00
|
|
|
|
connection method. If your system is @code{systemd}-based, there is
|
|
|
|
|
the @option{run0} connection method. On OpenBSD systems, the
|
|
|
|
|
@option{doas} connection method offers the same functionality. If
|
|
|
|
|
your local system is Android, use the method @option{androidsu}
|
|
|
|
|
instead of @option{su}.
|
2024-03-05 11:17:48 +01:00
|
|
|
|
|
|
|
|
|
These methods use @samp{root} as default user name and the return
|
|
|
|
|
value of @code{(system-name)} as default host name. Therefore, it is
|
|
|
|
|
convenient to open a file as @file{@trampfn{sudo,,/path/to/file}}.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2021-02-23 16:04:22 +01:00
|
|
|
|
The method @option{sg} stands for ``switch group''; here the user name
|
2021-02-23 14:21:26 +01:00
|
|
|
|
is used as the group to change to. The default host name is the same.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2024-03-05 11:17:48 +01:00
|
|
|
|
|
2024-05-11 10:03:45 +02:00
|
|
|
|
@anchor{Quick Start Guide Combining ssh, plink, su, sudo, doas and run0 methods}
|
|
|
|
|
@section Combining @option{ssh} or @option{plink} with @option{su}, @option{sudo}, @option{doas} or @option{run0}
|
2019-04-14 19:53:02 +02:00
|
|
|
|
@cindex method @option{ssh}
|
|
|
|
|
@cindex @option{ssh} method
|
|
|
|
|
@cindex method @option{plink}
|
|
|
|
|
@cindex @option{plink} method
|
|
|
|
|
@cindex method @option{su}
|
|
|
|
|
@cindex @option{su} method
|
|
|
|
|
@cindex method @option{sudo}
|
|
|
|
|
@cindex @option{sudo} method
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@cindex method @option{doas}
|
|
|
|
|
@cindex @option{doas} method
|
2024-05-11 10:03:45 +02:00
|
|
|
|
@cindex method @option{run0}
|
|
|
|
|
@cindex @option{run0} method
|
|
|
|
|
|
|
|
|
|
If the @option{su}, @option{sudo}, @option{doas} or @option{run0}
|
|
|
|
|
method should be performed on another host, it can be combined with a
|
|
|
|
|
leading @option{ssh} or @option{plink} method. That means that
|
|
|
|
|
@value{tramp} connects first to the other host with non-administrative
|
|
|
|
|
credentials, and changes to administrative credentials on that host
|
|
|
|
|
afterwards. In a simple case, the syntax looks like
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@file{@trampfn{ssh@value{postfixhop}user@@host|sudo,,/path/to/file}}.
|
2019-04-14 19:53:02 +02:00
|
|
|
|
@xref{Ad-hoc multi-hops}.
|
|
|
|
|
|
2024-03-05 11:17:48 +01:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide sudoedit method}
|
2018-12-16 15:49:07 +01:00
|
|
|
|
@section Using @command{sudoedit}
|
|
|
|
|
@cindex method @option{sudoedit}
|
|
|
|
|
@cindex @option{sudoedit} method
|
|
|
|
|
|
|
|
|
|
The @option{sudoedit} method is similar to the @option{sudo} method.
|
|
|
|
|
However, it is a different implementation: it does not keep an open
|
|
|
|
|
session running in the background. This is for security reasons; on
|
2021-02-23 14:21:26 +01:00
|
|
|
|
the backside this method has worse performance than the @option{sudo}
|
|
|
|
|
method, it is restricted to @samp{localhost} only, and it does not
|
2018-12-16 15:49:07 +01:00
|
|
|
|
support external processes.
|
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide smb method}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@section Using @command{smbclient}
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{smb}
|
|
|
|
|
@cindex @option{smb} method
|
|
|
|
|
@cindex ms windows (with @option{smb} method)
|
|
|
|
|
@cindex @command{smbclient}
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
In order to access a remote MS Windows host or Samba server, the
|
|
|
|
|
@command{smbclient} client is used. The remote file name syntax is
|
|
|
|
|
@file{@trampfn{smb,user%domain@@host,/path/to/file}}. The first part
|
|
|
|
|
of the local file name is the share exported by the remote host,
|
|
|
|
|
@samp{path} in this example.
|
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide GVFS-based methods}
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@section Using @acronym{GVFS}-based methods
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex methods, gvfs
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@cindex gvfs-based methods
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sftp}
|
|
|
|
|
@cindex @option{sftp} method
|
|
|
|
|
@cindex method @option{afp}
|
|
|
|
|
@cindex @option{afp} method
|
|
|
|
|
@cindex method @option{dav}
|
|
|
|
|
@cindex method @option{davs}
|
|
|
|
|
@cindex @option{dav} method
|
|
|
|
|
@cindex @option{davs} method
|
2020-12-26 12:39:10 +01:00
|
|
|
|
@cindex method @option{mtp}
|
|
|
|
|
@cindex @option{mtp} method
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
On systems which have @acronym{GVFS, the GNOME Virtual File System}
|
2021-02-23 16:04:22 +01:00
|
|
|
|
installed, its offered methods can be used by @value{tramp}.
|
2021-02-23 14:21:26 +01:00
|
|
|
|
Examples are @file{@trampfn{sftp,user@@host,/path/to/file}},
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@file{@trampfn{afp,user@@host,/path/to/file}} (accessing Apple's AFP
|
2020-01-22 16:54:55 +01:00
|
|
|
|
file system), @file{@trampfn{dav,user@@host,/path/to/file}},
|
|
|
|
|
@file{@trampfn{davs,user@@host,/path/to/file}} (for WebDAV shares) and
|
2020-12-26 12:39:10 +01:00
|
|
|
|
@file{@trampfn{mtp,device,/path/to/file}} (for media devices).
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide GNOME Online Accounts based methods}
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
@section Using @acronym{GNOME} Online Accounts based methods
|
|
|
|
|
@cindex @acronym{GNOME} Online Accounts
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{gdrive}
|
|
|
|
|
@cindex @option{gdrive} method
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex google drive
|
2018-08-04 12:05:28 +02:00
|
|
|
|
@cindex method @option{nextcloud}
|
|
|
|
|
@cindex @option{nextcloud} method
|
2019-05-05 16:20:14 +02:00
|
|
|
|
@cindex nextcloud
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@acronym{GVFS}-based methods also include @acronym{GNOME} Online
|
2019-08-22 14:50:38 +02:00
|
|
|
|
Accounts, which support the @option{Files} service. These are the
|
|
|
|
|
Google Drive file system, and the OwnCloud/NextCloud file system. The
|
2021-02-23 14:21:26 +01:00
|
|
|
|
file name syntax here is always
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
@file{@trampfn{gdrive,john.doe@@gmail.com,/path/to/file}}
|
|
|
|
|
(@samp{john.doe@@gmail.com} stands here for your Google Drive
|
2018-08-04 12:05:28 +02:00
|
|
|
|
account), or @file{@trampfn{nextcloud,user@@host#8081,/path/to/file}}
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
(@samp{8081} stands for the port number) for OwnCloud/NextCloud files.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@anchor{Quick Start Guide FUSE-based methods}
|
|
|
|
|
@section Using @acronym{FUSE}-based methods
|
|
|
|
|
@cindex methods, fuse
|
|
|
|
|
@cindex fuse-based methods
|
2018-11-24 14:01:36 +01:00
|
|
|
|
@cindex method @option{rclone}
|
|
|
|
|
@cindex @option{rclone} method
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@cindex method @option{sshfs}
|
|
|
|
|
@cindex @option{sshfs} method
|
|
|
|
|
|
|
|
|
|
@acronym{FUSE, Filesystem in Userspace} allows users to mount a
|
|
|
|
|
virtual file system. It is also used by @acronym{GVFS} internally,
|
|
|
|
|
but here we discuss methods which do not use the @acronym{GVFS} API.
|
2018-11-24 14:01:36 +01:00
|
|
|
|
|
|
|
|
|
A convenient way to access system storages is the @command{rclone}
|
|
|
|
|
program. If you have configured a storage in @command{rclone} under a
|
2021-02-23 14:21:26 +01:00
|
|
|
|
name @samp{storage} (for example), you can access it via the remote
|
2018-11-24 14:01:36 +01:00
|
|
|
|
file name syntax @file{@trampfn{rclone,storage,/path/to/file}}. User
|
|
|
|
|
names are not needed.
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
On local hosts which have installed the @command{sshfs} client for
|
|
|
|
|
mounting a file system based on @command{sftp}, this method can be
|
|
|
|
|
used. All remote files are available via the local mount point.
|
|
|
|
|
@value{tramp} aids in mounting the file system if it isn't mounted
|
|
|
|
|
yet, and it supports the access with the usual file name syntax
|
|
|
|
|
@file{@trampfn{sshfs,user@@host,/path/to/file}}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@anchor{Quick Start Guide Android}
|
|
|
|
|
@section Using Android
|
|
|
|
|
@cindex method @option{adb}
|
|
|
|
|
@cindex @option{adb} method
|
|
|
|
|
@cindex android
|
|
|
|
|
|
|
|
|
|
An Android device, which is connected via USB to your local host, can
|
|
|
|
|
be accessed via the @command{adb} command. No user or host name is
|
|
|
|
|
needed. The file name syntax is @file{@trampfn{adb,,/path/to/file}}.
|
|
|
|
|
|
2018-11-24 14:01:36 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Configuration
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@chapter Configuring @value{tramp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex configuration
|
|
|
|
|
@cindex default configuration
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@value{tramp} is initially configured to use the @command{scp} program
|
|
|
|
|
to connect to the remote host. Just type @kbd{C-x C-f} and then enter
|
2017-03-16 16:23:07 +01:00
|
|
|
|
file name @file{@trampfn{scp,user@@host,/path/to/file}}. For details,
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@xref{Default Method}, @xref{Default User}, @xref{Default Host}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2016-08-14 15:05:22 -05:00
|
|
|
|
For problems related to the behavior of the remote shell, @xref{Remote
|
|
|
|
|
shell setup}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
For changing the connection type and file access method from the
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
defaults to one of several other options, @xref{Connection types}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@strong{Note} that some user options described in these examples are
|
2021-02-23 14:21:26 +01:00
|
|
|
|
not auto loaded by Emacs. All examples require @value{tramp} to be
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
installed and loaded:
|
2015-07-21 14:59:18 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'tramp-verbose 6 "Enable remote command traces")
|
2015-07-21 14:59:18 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2019-04-02 10:48:39 +02:00
|
|
|
|
For functions used to configure @value{tramp}, the following clause
|
2021-02-23 14:21:26 +01:00
|
|
|
|
may be used in your init file:
|
2019-04-02 10:48:39 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(with-eval-after-load 'tramp (tramp-change-syntax 'simplified))
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2022-07-13 13:00:30 +02:00
|
|
|
|
@vindex enable-remote-dir-locals
|
|
|
|
|
Changing other variables via directory-local variables on a remote
|
|
|
|
|
directory must be enabled by setting @code{enable-remote-dir-locals}
|
|
|
|
|
to non-@code{nil}, @xref{Directory Variables, , , emacs}.
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@menu
|
2024-05-07 09:56:05 +02:00
|
|
|
|
* Optional methods:: Optional methods which must be enabled first.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
* Connection types:: Types of connections to remote hosts.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Inline methods:: Inline methods.
|
2009-01-21 18:54:45 +00:00
|
|
|
|
* External methods:: External methods.
|
2019-08-22 14:50:38 +02:00
|
|
|
|
* GVFS-based methods:: @acronym{GVFS}-based external methods.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
* FUSE-based methods:: @acronym{FUSE}-based external methods.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Default Method:: Selecting a default method.
|
|
|
|
|
Here we also try to help those who
|
|
|
|
|
don't have the foggiest which method
|
|
|
|
|
is right for them.
|
|
|
|
|
* Default User:: Selecting a default user.
|
|
|
|
|
* Default Host:: Selecting a default host.
|
|
|
|
|
* Multi-hops:: Connecting to a remote host using multiple hops.
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
* Firewalls:: Passing firewalls.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Customizing Methods:: Using Non-Standard Methods.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Customizing Completion:: Selecting config files for user/host name @c
|
|
|
|
|
completion.
|
2008-06-21 11:51:31 +00:00
|
|
|
|
* Password handling:: Reusing passwords for several connections.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Connection caching:: Reusing connection related information.
|
2013-06-19 15:21:15 +02:00
|
|
|
|
* Predefined connection information::
|
|
|
|
|
Setting own connection related information.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Remote programs:: How @value{tramp} finds and uses programs @c
|
|
|
|
|
on the remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
* Remote shell setup:: Remote shell setup hints.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
* Ssh setup:: Ssh setup hints.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
* FUSE setup:: @acronym{FUSE} setup hints.
|
2013-02-16 18:38:37 +01:00
|
|
|
|
* Android shell setup:: Android shell setup hints.
|
2023-06-28 16:53:01 +02:00
|
|
|
|
* Kubernetes setup:: Kubernetes setup hints.
|
2021-07-09 18:14:19 +02:00
|
|
|
|
* Auto-save File Lock and Backup::
|
|
|
|
|
Auto-save, File Lock and Backup.
|
2020-06-10 19:36:53 +02:00
|
|
|
|
* Keeping files encrypted:: Protect remote files by encryption.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
|
|
|
2024-05-07 09:56:05 +02:00
|
|
|
|
@node Optional methods
|
|
|
|
|
@section Optional methods which must be enabled first
|
|
|
|
|
@cindex optional methods
|
|
|
|
|
|
|
|
|
|
Not all methods are enabled by default after loading @value{tramp}.
|
|
|
|
|
Some of them don't work on the local host. Some of them are optional,
|
|
|
|
|
and must be enabled if it is intended to use them. For all methods
|
|
|
|
|
described in this manual, it is indicated when the method is optional.
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-enable-method method
|
|
|
|
|
This command enables the optional method @var{method}, a string. The
|
|
|
|
|
command can be invoked interactively like @kbd{M-x tramp-enable-method
|
|
|
|
|
@key{RET} toolbox @key{RET}}, with @option{toolbox} being an optional
|
|
|
|
|
method.
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
If you want to enable an optional method permanently, add something
|
|
|
|
|
like this to your @file{.emacs} file:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(with-eval-after-load 'tramp (tramp-enable-method "toolbox"))
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Connection types
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@section Types of connections to remote hosts
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex connection types, overview
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@dfn{Inline method} and @dfn{external method} are the two basic types
|
|
|
|
|
of access methods. While they both use the same remote shell access
|
|
|
|
|
programs, such as @command{rsh}, @command{ssh}, or @command{telnet},
|
|
|
|
|
they differ in the file access methods. Choosing the right method
|
|
|
|
|
becomes important for editing files, transferring large files, or
|
|
|
|
|
operating on a large number of files.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2009-01-21 18:54:45 +00:00
|
|
|
|
The performance of the external methods is generally better than that
|
|
|
|
|
of the inline methods, at least for large files. This is caused by
|
|
|
|
|
the need to encode and decode the data when transferring inline.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The one exception to this rule are the @option{scp}-based access
|
2007-09-06 05:07:05 +00:00
|
|
|
|
methods. While these methods do see better performance when actually
|
|
|
|
|
transferring files, the overhead of the cryptographic negotiation at
|
|
|
|
|
startup may drown out the improvement in file transfer times.
|
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
External methods should be configured in such a way that they don't
|
|
|
|
|
require a password (with @command{ssh-agent}, or similar). Modern
|
2009-01-21 18:54:45 +00:00
|
|
|
|
@command{scp} implementations offer options to reuse existing
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@command{ssh} connections, which @value{tramp} enables by default if
|
|
|
|
|
available. If that is not possible, you should consider @ref{Password
|
|
|
|
|
handling}, otherwise you will be prompted for a password for every
|
|
|
|
|
copy action.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Inline methods
|
|
|
|
|
@section Inline methods
|
|
|
|
|
@cindex inline methods
|
|
|
|
|
@cindex methods, inline
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Inline methods use the same login connection to transfer file
|
|
|
|
|
contents. Inline methods are quick and easy for small files. They
|
|
|
|
|
depend on the availability of suitable encoding and decoding programs
|
|
|
|
|
on the remote host. For local source and destination, @value{tramp}
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
may use built-in equivalents of such programs in Emacs.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Inline methods can work in situations where an external transfer
|
|
|
|
|
program is unavailable. Inline methods also work when transferring
|
|
|
|
|
files between different @emph{user identities} on the same host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@cindex base-64 encoding
|
2019-07-12 15:05:11 +02:00
|
|
|
|
@cindex base-64 encoding
|
|
|
|
|
@cindex uu encoding
|
|
|
|
|
@vindex tramp-remote-coding-commands
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} checks the remote host for the availability and
|
2019-07-12 15:05:11 +02:00
|
|
|
|
usability of one of the commands defined in
|
|
|
|
|
@code{tramp-remote-coding-commands}. @value{tramp} uses the first
|
|
|
|
|
reliable command it finds. @value{tramp}'s search path can be
|
2024-05-13 10:31:13 +02:00
|
|
|
|
customized, @pxref{Remote programs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
In case none of the commands are available, @value{tramp} first
|
|
|
|
|
transfers a small Perl program to the remote host, and then tries to
|
|
|
|
|
use that program for encoding and decoding.
|
2010-05-01 12:08:42 +02:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-inline-compress-start-size
|
2019-07-12 15:05:11 +02:00
|
|
|
|
@vindex tramp-inline-compress-commands
|
2021-02-23 14:21:26 +01:00
|
|
|
|
To increase transfer speeds for large text files, @value{tramp} can
|
|
|
|
|
use compression before encoding. The user option
|
|
|
|
|
@code{tramp-inline-compress-start-size} specifies the file size above
|
|
|
|
|
which to use this optimization. This feature depends on the
|
|
|
|
|
availability and usability of one of the commands defined in
|
2019-07-12 15:05:11 +02:00
|
|
|
|
@code{tramp-inline-compress-commands}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@table @asis
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{rsh}
|
|
|
|
|
@cindex @option{rsh} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{rsh}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{rsh} is an option for connecting to hosts within local
|
|
|
|
|
networks since @command{rsh} is not as secure as other methods.
|
2021-02-23 14:21:26 +01:00
|
|
|
|
There should be no reason to use it, as @command{ssh} is a both a
|
|
|
|
|
complete replacement and ubiquitous.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{ssh}
|
|
|
|
|
@cindex @option{ssh} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{ssh}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{ssh} is a more secure option than others to connect to a
|
|
|
|
|
remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{ssh} can also take extra parameters as port numbers. For
|
|
|
|
|
example, a host on port 42 is specified as @file{host#42} (the real
|
|
|
|
|
host name, a hash sign, then a port number). It is the same as passing
|
2016-07-10 17:03:48 +02:00
|
|
|
|
@samp{-p 42} to the @command{ssh} command.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{telnet}
|
|
|
|
|
@cindex @option{telnet} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{telnet}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Connecting to a remote host with @command{telnet} is as insecure
|
2007-09-06 05:07:05 +00:00
|
|
|
|
as the @option{rsh} method.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{su}
|
|
|
|
|
@cindex @option{su} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{su}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Instead of connecting to a remote host, @command{su} program allows
|
|
|
|
|
editing as another user. The host can be either @samp{localhost} or
|
|
|
|
|
the host returned by the function @command{(system-name)}. See
|
|
|
|
|
@ref{Multi-hops} for an exception to this behavior.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-03-04 11:21:53 +08:00
|
|
|
|
@cindex method @option{androidsu}
|
|
|
|
|
@cindex @option{androidsu} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{androidsu}
|
|
|
|
|
|
2024-03-04 11:21:53 +08:00
|
|
|
|
Because the default implementation of the @option{su} method and other
|
|
|
|
|
shell-based methods conflict with non-standard @command{su}
|
|
|
|
|
implementations popular among Android users and the restricted
|
|
|
|
|
command-line utilities distributed with that system, a largely
|
|
|
|
|
equivalent @option{androidsu} method is provided for that system with
|
|
|
|
|
workarounds for its many idiosyncrasies, with the exception that
|
|
|
|
|
multi-hops are unsupported.
|
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}. It is enabled by
|
2024-05-07 09:56:05 +02:00
|
|
|
|
default on @code{android} systems only.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sudo}
|
|
|
|
|
@cindex @option{sudo} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sudo}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Similar to @option{su} method, @option{sudo} uses @command{sudo}.
|
|
|
|
|
@command{sudo} must have sufficient rights to start a shell.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-11-21 16:53:09 +01:00
|
|
|
|
For security reasons, a @option{sudo} connection is disabled after a
|
2024-05-13 10:31:13 +02:00
|
|
|
|
predefined timeout (5 minutes by default). This can be changed,
|
|
|
|
|
@pxref{Predefined connection information}.
|
2018-11-21 13:23:01 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{doas}
|
|
|
|
|
@cindex @option{doas} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{doas}
|
2016-02-05 18:57:35 +01:00
|
|
|
|
|
2018-11-21 13:23:01 +01:00
|
|
|
|
This method is used on OpenBSD like the @command{sudo} command. Like
|
2018-11-21 16:53:09 +01:00
|
|
|
|
the @option{sudo} method, a @option{doas} connection is disabled after
|
2018-11-21 13:23:01 +01:00
|
|
|
|
a predefined timeout.
|
2016-02-05 18:57:35 +01:00
|
|
|
|
|
2024-05-11 10:03:45 +02:00
|
|
|
|
@cindex method @option{run0}
|
|
|
|
|
@cindex @option{run0} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{run0}
|
2024-05-11 10:03:45 +02:00
|
|
|
|
|
2024-07-10 11:58:22 +02:00
|
|
|
|
@c This requires systemd 256. Check with 'systemd-run --version'.
|
|
|
|
|
This method is used on @code{systemd}-based hosts. A @option{run0}
|
|
|
|
|
connection is disabled after a predefined timeout as well.
|
2024-05-11 10:03:45 +02:00
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}.
|
2024-05-11 10:03:45 +02:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sg}
|
|
|
|
|
@cindex @option{sg} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sg}
|
2016-01-15 11:10:37 +01:00
|
|
|
|
|
|
|
|
|
The @command{sg} program allows editing as different group. The host
|
|
|
|
|
can be either @samp{localhost} or the host returned by the function
|
|
|
|
|
@command{(system-name)}. The user name must be specified, but it
|
|
|
|
|
denotes a group name. See @ref{Multi-hops} for an exception to this
|
|
|
|
|
behavior.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sshx}
|
|
|
|
|
@cindex @option{sshx} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sshx}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Works like @option{ssh} but without the extra authentication prompts.
|
2021-01-22 17:39:52 +01:00
|
|
|
|
@option{sshx} uses @samp{ssh -t -t -l @var{user} -o
|
|
|
|
|
RemoteCommand='/bin/sh -i' @var{host}} to open a connection with a
|
|
|
|
|
``standard'' login shell. It supports changing the remote login shell
|
|
|
|
|
@command{/bin/sh}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@strong{Note} that @option{sshx} does not bypass authentication
|
|
|
|
|
questions. For example, if the host key of the remote host is not
|
|
|
|
|
known, @option{sshx} will still ask ``Are you sure you want to
|
|
|
|
|
continue connecting?''. @value{tramp} cannot handle such questions.
|
|
|
|
|
Connections will have to be setup where logins can proceed without
|
|
|
|
|
such questions.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@option{sshx} is useful for MS Windows users when @command{ssh}
|
|
|
|
|
triggers an error about allocating a pseudo tty. This happens due to
|
|
|
|
|
missing shell prompts that confuses @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{sshx} supports the @samp{-p} argument.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{krlogin}
|
|
|
|
|
@cindex @option{krlogin} method
|
|
|
|
|
@cindex kerberos (with @option{krlogin} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{krlogin}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method is also similar to @option{ssh}. It uses the
|
|
|
|
|
@command{krlogin -x} command only for remote host login.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This method is an optional method, @pxref{Optional methods}.
|
2024-05-08 13:44:15 +02:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{ksu}
|
|
|
|
|
@cindex @option{ksu} method
|
|
|
|
|
@cindex kerberos (with @option{ksu} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{ksu}
|
2010-12-14 21:37:49 +01:00
|
|
|
|
|
2024-05-08 13:44:15 +02:00
|
|
|
|
This is another method from the Kerberos suite. It behaves like
|
2024-05-13 10:31:13 +02:00
|
|
|
|
@option{su}. It is an optional method, @pxref{Optional methods}.
|
2010-12-14 21:37:49 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{plink}
|
|
|
|
|
@cindex @option{plink} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{plink}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@option{plink} method is for MS Windows users with the PuTTY
|
2012-12-05 14:27:56 -08:00
|
|
|
|
implementation of SSH@. It uses @samp{plink -ssh} to log in to the
|
2019-09-20 17:29:08 +02:00
|
|
|
|
remote host. It supports changing the remote login shell @command{/bin/sh}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Check the @samp{Share SSH connections if possible} control for that
|
|
|
|
|
session.
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{plink} method supports the @samp{-P} argument.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{plinkx}
|
|
|
|
|
@cindex @option{plinkx} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{plinkx}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
Another method using PuTTY on MS Windows with session names instead of
|
|
|
|
|
host names. @option{plinkx} calls @samp{plink -load @var{session}
|
2019-09-20 11:27:49 +02:00
|
|
|
|
-t}. User names and port numbers must be defined in the session. It
|
2019-09-20 17:29:08 +02:00
|
|
|
|
supports changing the remote login shell @command{/bin/sh}.
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Check the @samp{Share SSH connections if possible} control for that
|
|
|
|
|
session.
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@end table
|
|
|
|
|
|
|
|
|
|
@noindent
|
2024-06-02 19:30:12 +02:00
|
|
|
|
The following methods allow to access running containers in different
|
|
|
|
|
ways:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@table @asis
|
2022-09-24 18:44:32 +02:00
|
|
|
|
@cindex method @option{docker}
|
|
|
|
|
@cindex @option{docker} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{docker}
|
2022-09-24 18:44:32 +02:00
|
|
|
|
|
2022-10-04 21:19:05 +02:00
|
|
|
|
Integration for Docker containers. The host name may be either a
|
|
|
|
|
running container's name or ID, as returned by @samp{docker ps}.
|
|
|
|
|
|
|
|
|
|
@cindex method @option{podman}
|
|
|
|
|
@cindex @option{podman} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{podman}
|
2022-10-04 21:19:05 +02:00
|
|
|
|
|
|
|
|
|
Podman is an alternative to @option{docker} which may be run rootless,
|
|
|
|
|
if desired.
|
2022-09-24 18:44:32 +02:00
|
|
|
|
|
2022-10-05 02:46:40 +03:00
|
|
|
|
@cindex method @option{kubernetes}
|
|
|
|
|
@cindex @option{kubernetes} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{kubernetes}
|
2022-10-05 02:46:40 +03:00
|
|
|
|
|
2023-06-28 16:53:01 +02:00
|
|
|
|
Integration for containers in Kubernetes pods. The host name is
|
|
|
|
|
@samp{@var{pod}}, or @samp{@var{container}.@var{pod}} if an
|
|
|
|
|
explicit container name shall be used. Otherwise, the first container
|
|
|
|
|
in a pod is used.
|
2022-10-05 02:46:40 +03:00
|
|
|
|
|
2022-10-05 17:11:33 +02:00
|
|
|
|
This method does not support user names.
|
|
|
|
|
|
2023-01-07 12:14:26 +01:00
|
|
|
|
@cindex method @option{toolbox}
|
|
|
|
|
@cindex @option{toolbox} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{toolbox}
|
2024-05-29 18:29:52 +02:00
|
|
|
|
@cindex method @option{distrobox}
|
|
|
|
|
@cindex @option{distrobox} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{distrobox}
|
2023-01-07 12:14:26 +01:00
|
|
|
|
|
2024-05-29 18:29:52 +02:00
|
|
|
|
Integration of Toolbox or Distrobox system containers, respectively.
|
|
|
|
|
The host name may be either a container's name or ID, as returned by
|
|
|
|
|
@samp{toolbox list -c} or @samp{distrobox list}. Without a host name,
|
|
|
|
|
the default Toolbox container for the host will be used. There is no
|
|
|
|
|
such default for Distrobox.
|
2023-01-07 12:14:26 +01:00
|
|
|
|
|
2024-06-02 19:30:12 +02:00
|
|
|
|
Contrary to the other container-based methods, these two methods start
|
|
|
|
|
a created container, if it isn't running yet.
|
|
|
|
|
|
2024-05-29 18:29:52 +02:00
|
|
|
|
These are optional methods, @pxref{Optional methods}. They do not
|
2024-05-07 09:56:05 +02:00
|
|
|
|
support user names.
|
2023-01-07 12:14:26 +01:00
|
|
|
|
|
2023-04-23 13:37:39 +02:00
|
|
|
|
@cindex method @option{flatpak}
|
|
|
|
|
@cindex @option{flatpak} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{flatpak}
|
2023-04-23 13:37:39 +02:00
|
|
|
|
|
|
|
|
|
Integration of Flatpak sandboxes. The host name may be either an
|
|
|
|
|
application ID, a sandbox instance ID, or a PID, as returned by
|
|
|
|
|
@samp{flatpak ps}.
|
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}. It does not
|
2024-05-07 09:56:05 +02:00
|
|
|
|
support user names.
|
|
|
|
|
|
|
|
|
|
@cindex method @option{apptainer}
|
|
|
|
|
@cindex @option{apptainer} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{apptainer}
|
2024-05-07 09:56:05 +02:00
|
|
|
|
|
|
|
|
|
Integration of Apptainer instances. The host name is the instance
|
|
|
|
|
name, as returned by @samp{apptainer instance list}.
|
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}. It does not
|
2024-05-07 09:56:05 +02:00
|
|
|
|
support user names.
|
2023-04-23 13:37:39 +02:00
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@cindex method @option{nspawn}
|
|
|
|
|
@cindex @option{nspawn} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{nspawn}
|
2024-05-12 19:40:08 +02:00
|
|
|
|
|
|
|
|
|
Integration of @code{systemd-nspawn} instances. The host name is the
|
|
|
|
|
instance name, as returned by @samp{machinectl list --all}.
|
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end table
|
|
|
|
|
|
|
|
|
|
|
2009-01-21 18:54:45 +00:00
|
|
|
|
@node External methods
|
|
|
|
|
@section External methods
|
|
|
|
|
@cindex methods, external
|
|
|
|
|
@cindex external methods
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
External methods operate over multiple channels, using the remote
|
|
|
|
|
shell connection for some actions while delegating file transfers to
|
|
|
|
|
an external transfer program.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
External methods save on the overhead of encoding and decoding of
|
|
|
|
|
inline methods.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Since external methods have the overhead of opening a new channel,
|
2018-02-20 21:15:19 +02:00
|
|
|
|
files smaller than @code{tramp-copy-size-limit} still use inline
|
2015-12-29 15:33:54 +01:00
|
|
|
|
methods.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@table @asis
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{rcp}
|
|
|
|
|
@cindex @option{rcp} method
|
|
|
|
|
@cindex @command{rsh} (with @option{rcp} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{rcp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method uses the @command{rsh} and @command{rcp} commands to
|
|
|
|
|
connect to the remote host and transfer files. This is the fastest
|
|
|
|
|
access method available.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
The alternative method @option{remcp} uses the @command{remsh} and
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{rcp} commands.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{scp}
|
|
|
|
|
@cindex @option{scp} method
|
|
|
|
|
@cindex @command{ssh} (with @option{scp} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{scp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Using a combination of @command{ssh} to connect and @command{scp} to
|
|
|
|
|
transfer is the most secure. While the performance is good, it is
|
|
|
|
|
slower than the inline methods for smaller files. Though there is no
|
|
|
|
|
overhead of encoding and decoding of the inline methods,
|
|
|
|
|
@command{scp}'s cryptographic handshake negates those speed gains.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{ssh}-based methods support @samp{-p} feature for specifying
|
|
|
|
|
port numbers. For example, @file{host#42} passes @samp{-p 42} in the
|
|
|
|
|
argument list to @command{ssh}, and @samp{-P 42} in the argument list
|
|
|
|
|
to @command{scp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{rsync}
|
|
|
|
|
@cindex @option{rsync} method
|
|
|
|
|
@cindex @command{ssh} (with @option{rsync} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{rsync}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{ssh} command to connect in combination with @command{rsync}
|
|
|
|
|
command to transfer is similar to the @option{scp} method.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{rsync} performs much better than @command{scp} when
|
|
|
|
|
transferring files that exist on both hosts. However, this advantage
|
|
|
|
|
is lost if the file exists only on one side of the connection.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2009-06-30 21:24:52 +00:00
|
|
|
|
This method supports the @samp{-p} argument.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{scpx}
|
|
|
|
|
@cindex @option{scpx} method
|
|
|
|
|
@cindex @command{ssh} (with @option{scpx} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{scpx}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{scpx} is useful to avoid login shell questions. It is similar
|
2021-01-22 17:39:52 +01:00
|
|
|
|
in performance to @option{scp}. @option{scpx} uses @samp{ssh -t -t -l
|
|
|
|
|
@var{user} -o RemoteCommand='/bin/sh -i' @var{host}} to open a
|
|
|
|
|
connection. It supports changing the remote login shell
|
|
|
|
|
@command{/bin/sh}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@option{scpx} is useful for MS Windows users when @command{ssh}
|
|
|
|
|
triggers an error about allocating a pseudo tty. This happens due to
|
|
|
|
|
missing shell prompts that confuses @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2009-06-30 21:24:52 +00:00
|
|
|
|
This method supports the @samp{-p} argument.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{pscp}
|
|
|
|
|
@cindex @option{pscp} method
|
|
|
|
|
@cindex @command{plink} (with @option{pscp} method)
|
|
|
|
|
@cindex @command{putty} (with @option{pscp} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{pscp}
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{psftp}
|
|
|
|
|
@cindex @option{psftp} method
|
|
|
|
|
@cindex @command{plink} (with @option{psftp} method)
|
|
|
|
|
@cindex @command{putty} (with @option{psftp} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{psftp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2014-06-15 17:09:22 +02:00
|
|
|
|
These methods are similar to @option{scp} or @option{sftp}, but they
|
|
|
|
|
use the @command{plink} command to connect to the remote host, and
|
|
|
|
|
they use @command{pscp} or @command{psftp} for transferring the files.
|
2017-07-10 15:36:23 +02:00
|
|
|
|
These programs are part of PuTTY, an SSH implementation for MS Windows.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2019-09-20 17:29:08 +02:00
|
|
|
|
They support changing the remote login shell @command{/bin/sh}.
|
2019-09-20 11:27:49 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Check the @samp{Share SSH connections if possible} control for that
|
|
|
|
|
session.
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
|
|
|
|
These methods support the @samp{-P} argument.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-02-20 12:52:40 +01:00
|
|
|
|
@cindex method @option{dockercp}
|
|
|
|
|
@cindex @option{dockercp} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{dockercp}
|
2024-02-20 12:52:40 +01:00
|
|
|
|
@cindex method @option{podmancp}
|
|
|
|
|
@cindex @option{podmancp} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{podmancp}
|
2024-02-20 12:52:40 +01:00
|
|
|
|
|
|
|
|
|
These methods are similar to @option{docker} or @option{podman}, but
|
|
|
|
|
they use the command @command{docker cp} or @command{podman cp} for
|
|
|
|
|
transferring large files.
|
|
|
|
|
|
|
|
|
|
These copy commands do not support file globs, and they ignore a user
|
|
|
|
|
name.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{fcp}
|
|
|
|
|
@cindex @option{fcp} method
|
|
|
|
|
@cindex @command{fsh} (with @option{fcp} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{fcp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method is similar to @option{scp}, but uses @command{fsh} to
|
|
|
|
|
connect and @command{fcp} to transfer files. @command{fsh/fcp}, a
|
|
|
|
|
front-end for @command{ssh}, reuse @command{ssh} session by
|
|
|
|
|
submitting several commands. This avoids the startup overhead due to
|
|
|
|
|
@command{scp}'s secure connection. Inline methods have similar
|
|
|
|
|
benefits.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The command used for this connection is: @samp{fsh @var{host} -l
|
|
|
|
|
@var{user} /bin/sh -i}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{fsh}
|
|
|
|
|
@cindex @option{fsh} method
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{fsh} has no inline method since the multiplexing it offers is
|
|
|
|
|
not useful for @value{tramp}. @command{fsh} connects to remote host
|
|
|
|
|
and @value{tramp} keeps that one connection open.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}.
|
2024-05-08 13:44:15 +02:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{nc}
|
|
|
|
|
@cindex @option{nc} method
|
|
|
|
|
@cindex @command{telnet} (with @option{nc} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{nc}
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Using @command{telnet} to connect and @command{nc} to transfer files
|
|
|
|
|
is sometimes the only combination suitable for accessing routers or
|
|
|
|
|
NAS hosts. These dumb devices have severely restricted local shells,
|
|
|
|
|
such as the @command{busybox} and do not host any other encode or
|
|
|
|
|
decode programs.
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2024-05-13 10:31:13 +02:00
|
|
|
|
This is an optional method, @pxref{Optional methods}.
|
2024-05-08 13:44:15 +02:00
|
|
|
|
|
2018-12-16 15:49:07 +01:00
|
|
|
|
@cindex method @option{sudoedit}
|
|
|
|
|
@cindex @option{sudoedit} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sudoedit}
|
2018-12-16 15:49:07 +01:00
|
|
|
|
|
2023-09-10 09:33:50 +08:00
|
|
|
|
The @option{sudoedit} method facilitates editing a file as a different
|
|
|
|
|
user on the local host. You could regard this as @value{tramp}'s
|
2018-12-16 15:49:07 +01:00
|
|
|
|
implementation of the @command{sudoedit}. Contrary to the
|
|
|
|
|
@option{sudo} method, all magic file name functions are implemented by
|
2023-09-10 09:33:50 +08:00
|
|
|
|
single @command{sudo @dots{}} commands. The purpose is to make
|
2018-12-16 15:49:07 +01:00
|
|
|
|
editing such a file as secure as possible; there must be no session
|
|
|
|
|
running in the Emacs background which could be attacked from inside
|
|
|
|
|
Emacs.
|
|
|
|
|
|
|
|
|
|
Consequently, external processes are not implemented.
|
|
|
|
|
|
|
|
|
|
The host name of such remote file names must represent the local host.
|
|
|
|
|
Since the default value is already proper, it is recommended not to
|
|
|
|
|
use any host name in the remote file name, like
|
|
|
|
|
@file{@trampfn{sudoedit,,/path/to/file}} or
|
|
|
|
|
@file{@trampfn{sudoedit,user@@,/path/to/file}}.
|
|
|
|
|
|
|
|
|
|
Like the @option{sudo} method, a @option{sudoedit} password expires
|
|
|
|
|
after a predefined timeout.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{ftp}
|
|
|
|
|
@cindex @option{ftp} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{ftp}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When @value{tramp} uses @option{ftp}, it forwards requests to whatever
|
2019-04-13 12:34:13 +02:00
|
|
|
|
ftp program is specified by Ange FTP@. This external program must be
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
capable of servicing requests from @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{smb}
|
|
|
|
|
@cindex @option{smb} method
|
|
|
|
|
@cindex ms windows (with @option{smb} method)
|
|
|
|
|
@cindex @command{smbclient}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{smb}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2016-01-24 16:09:15 -08:00
|
|
|
|
This non-native @value{tramp} method connects via the Server Message
|
|
|
|
|
Block (SMB) networking protocol to hosts running file servers that are
|
2021-10-18 19:53:34 +02:00
|
|
|
|
typically based on @uref{https://www.samba.org/,,Samba} or MS Windows.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
Using @command{smbclient} requires a few tweaks when working with
|
|
|
|
|
@value{tramp}:
|
|
|
|
|
|
|
|
|
|
The first directory in the localname must be a share name on the
|
|
|
|
|
remote host.
|
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
Since some SMB share names end in the @code{$} character,
|
|
|
|
|
@value{tramp} must use @code{$$} when specifying those shares to avoid
|
|
|
|
|
environment variable substitutions.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
When @value{tramp} is not specific about the share name or uses the
|
2016-07-10 17:03:48 +02:00
|
|
|
|
generic remote directory @file{/}, @command{smbclient} returns all
|
2015-12-29 15:33:54 +01:00
|
|
|
|
available shares.
|
|
|
|
|
|
|
|
|
|
Since SMB authentication is based on each SMB share, @value{tramp}
|
|
|
|
|
prompts for a password even when accessing a different share on the
|
|
|
|
|
same SMB host. This prompting can be suppressed by @ref{Password
|
|
|
|
|
handling}.
|
|
|
|
|
|
|
|
|
|
To accommodate user name/domain name syntax required by MS Windows
|
|
|
|
|
authorization, @value{tramp} provides for an extended syntax in
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@code{user%domain} format (where @code{user} is the user name,
|
|
|
|
|
@code{%} is the percent symbol, and @code{domain} is the MS Windows
|
|
|
|
|
domain name). An example:
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@example
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@trampfn{smb,daniel%BIZARRE@@melancholia,/daniel$$/.emacs}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
where user @samp{daniel} connects as a domain user to the SMB host
|
|
|
|
|
@samp{melancholia} in the MS Windows domain @samp{BIZARRE} to edit
|
|
|
|
|
@file{.emacs} located in the home directory (share @samp{daniel$}).
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
Alternatively, for local WINS users (as opposed to domain users),
|
|
|
|
|
substitute the domain name with the name of the local host in
|
|
|
|
|
UPPERCASE as shown here:
|
|
|
|
|
|
|
|
|
|
@example
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@trampfn{smb,daniel%MELANCHOLIA@@melancholia,/daniel$$/.emacs}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
where user @samp{daniel} connects as local user to the SMB host
|
|
|
|
|
@samp{melancholia} in the local domain @samp{MELANCHOLIA} to edit
|
|
|
|
|
@file{.emacs} located in the home directory (share @samp{daniel$}).
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
The domain name and user name are optional for @command{smbclient}
|
|
|
|
|
authentication. When user name is not specified, @command{smbclient}
|
|
|
|
|
uses the anonymous user (without prompting for password). This
|
|
|
|
|
behavior is unlike other @value{tramp} methods, where local user name
|
|
|
|
|
is substituted.
|
|
|
|
|
|
2016-01-31 13:50:23 +01:00
|
|
|
|
The @option{smb} method is unavailable if Emacs is run under a local
|
|
|
|
|
user authentication context in MS Windows. However such users can
|
|
|
|
|
still access remote files using UNC file names instead of @value{tramp}:
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
//melancholia/daniel$$/.emacs
|
|
|
|
|
@end example
|
|
|
|
|
|
2016-01-24 20:30:39 +00:00
|
|
|
|
UNC file name specification does not allow the specification of a
|
|
|
|
|
different user name for authentication like the @command{smbclient}
|
|
|
|
|
can.
|
2012-12-14 16:37:27 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{adb}
|
|
|
|
|
@cindex @option{adb} method
|
|
|
|
|
@cindex android (with @option{adb} method)
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{adb}
|
2012-12-14 16:37:27 +01:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-adb-program
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex PATH@r{, environment variable}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method uses Android Debug Bridge program for accessing Android
|
|
|
|
|
devices. The Android Debug Bridge must be installed locally for
|
|
|
|
|
@value{tramp} to work. Some GNU/Linux distributions provide Android
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
Debug Bridge as an installation package. Alternatively, the program
|
|
|
|
|
is installed as part of the Android SDK@. @value{tramp} finds the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@command{adb} program either via the @env{PATH} environment variable
|
2018-05-29 12:42:17 +02:00
|
|
|
|
or the absolute path set in the user option @code{tramp-adb-program}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-adb-connect-if-not-connected
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} connects to Android devices with @option{adb} only when
|
2018-05-29 12:42:17 +02:00
|
|
|
|
the user option @code{tramp-adb-connect-if-not-connected} is not
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{nil}. Otherwise, the connection must be established outside
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Emacs.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@value{tramp} does not require a host name part of the remote file
|
|
|
|
|
name when a single Android device is connected to @command{adb}.
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@value{tramp} instead uses @file{@trampfn{adb,,}} as the default name.
|
2020-01-22 16:54:55 +01:00
|
|
|
|
@command{adb devices}, run in a shell outside Emacs, shows available
|
|
|
|
|
host names.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@option{adb} method normally does not need user name to authenticate
|
2016-01-31 13:50:23 +01:00
|
|
|
|
on the Android device because it runs under the @command{adbd}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
process. But when a user name is specified, however, @value{tramp}
|
|
|
|
|
applies an @command{su} in the syntax. When authentication does not
|
|
|
|
|
succeed, especially on un-rooted Android devices, @value{tramp}
|
|
|
|
|
displays login errors.
|
|
|
|
|
|
2016-01-31 13:50:23 +01:00
|
|
|
|
For Android devices connected through TCP/IP, a port number can be
|
2015-12-29 15:33:54 +01:00
|
|
|
|
specified using @file{device#42} host name syntax or @value{tramp} can
|
|
|
|
|
use the default value as declared in @command{adb} command. Port
|
|
|
|
|
numbers are not applicable to Android devices connected through USB@.
|
2015-03-04 12:35:36 +01:00
|
|
|
|
|
2009-07-01 15:09:50 +00:00
|
|
|
|
@end table
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@node GVFS-based methods
|
|
|
|
|
@section @acronym{GVFS}-based external methods
|
2009-07-01 15:09:50 +00:00
|
|
|
|
@cindex methods, gvfs
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@cindex gvfs-based methods
|
2009-07-01 15:09:50 +00:00
|
|
|
|
@cindex dbus
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@acronym{GVFS} is the virtual file system for the @acronym{GNOME}
|
|
|
|
|
Desktop, @uref{https://en.wikipedia.org/wiki/GVFS}. Remote files on
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@acronym{GVFS} are mounted locally through @acronym{FUSE} and
|
|
|
|
|
@value{tramp} uses this locally mounted directory internally.
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
2019-08-22 14:50:38 +02:00
|
|
|
|
Emacs uses the D-Bus mechanism to communicate with @acronym{GVFS}@.
|
|
|
|
|
Emacs must have the message bus system, D-Bus integration active,
|
|
|
|
|
@pxref{Top, , D-Bus, dbus}.
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
2009-07-01 15:09:50 +00:00
|
|
|
|
@table @asis
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{afp}
|
|
|
|
|
@cindex @option{afp} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{afp}
|
2015-10-29 14:05:55 +01:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method is for connecting to remote hosts with the Apple Filing
|
2016-11-06 00:33:43 -07:00
|
|
|
|
Protocol for accessing files on macOS volumes. @value{tramp} access
|
2015-12-29 15:33:54 +01:00
|
|
|
|
syntax requires a leading volume (share) name, for example:
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@file{@trampfn{afp,user@@host,/volume}}.
|
2015-10-29 14:05:55 +01:00
|
|
|
|
|
2023-03-16 14:32:44 +01:00
|
|
|
|
@cindex WebDAV
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{dav}
|
|
|
|
|
@cindex @option{dav} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{dav}
|
|
|
|
|
@cindex method @option{davs}
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @option{davs} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{davs}
|
2009-07-01 15:09:50 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@option{dav} method provides access to WebDAV files and directories
|
|
|
|
|
based on standard protocols, such as HTTP@. @option{davs} does the same
|
|
|
|
|
but with SSL encryption. Both methods support the port numbers.
|
2009-09-28 14:27:48 +00:00
|
|
|
|
|
2019-08-22 14:50:38 +02:00
|
|
|
|
Paths being part of the WebDAV volume to be mounted by @acronym{GVFS},
|
|
|
|
|
as it is common for OwnCloud or NextCloud file names, are not
|
|
|
|
|
supported by these methods. See method @option{nextcloud} for
|
|
|
|
|
handling them.
|
2018-07-10 09:49:49 +02:00
|
|
|
|
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
@cindex @acronym{GNOME} Online Accounts
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{gdrive}
|
|
|
|
|
@cindex @option{gdrive} method
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex google drive
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{gdrive}
|
2016-07-04 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
Via the @option{gdrive} method it is possible to access your Google
|
|
|
|
|
Drive online storage. User and host name of the remote file name are
|
|
|
|
|
your email address of the Google Drive credentials, like
|
|
|
|
|
@file{@trampfn{gdrive,john.doe@@gmail.com,/}}. These credentials must
|
|
|
|
|
be populated in your @command{Online Accounts} application outside Emacs.
|
|
|
|
|
|
|
|
|
|
Since Google Drive uses cryptic blob file names internally,
|
|
|
|
|
@value{tramp} works with the @code{display-name} of the files. This
|
2016-08-05 13:31:10 -07:00
|
|
|
|
could produce unexpected behavior in case two files in the same
|
2022-01-22 17:12:14 +01:00
|
|
|
|
directory have the same @code{display-name}, such a situation must be
|
|
|
|
|
avoided.
|
2016-07-04 15:36:30 +02:00
|
|
|
|
|
2020-12-26 12:39:10 +01:00
|
|
|
|
@cindex method @option{mtp}
|
|
|
|
|
@cindex @option{mtp} method
|
2020-01-22 16:54:55 +01:00
|
|
|
|
@cindex media
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{mtp}
|
2020-01-22 16:54:55 +01:00
|
|
|
|
|
|
|
|
|
Media devices, like cell phones, tablets, cameras, can be accessed via
|
2020-12-26 12:39:10 +01:00
|
|
|
|
the @option{mtp} method. Just the device name is needed in order to
|
2020-01-23 14:09:35 +01:00
|
|
|
|
specify the host in the file name. However, the device must already
|
|
|
|
|
be connected via USB, before accessing it. Possible device names are
|
2024-05-13 10:31:13 +02:00
|
|
|
|
visible via host name completion, @pxref{File name completion}.
|
2020-01-22 16:54:55 +01:00
|
|
|
|
|
|
|
|
|
Depending on the device type, the access could be read-only. Some
|
|
|
|
|
devices are accessible under different names in parallel, offering
|
|
|
|
|
different parts of their file system.
|
|
|
|
|
|
2020-01-23 14:09:35 +01:00
|
|
|
|
@value{tramp} does not require a host name as part of the remote file
|
|
|
|
|
name when a single media device is connected. @value{tramp} instead
|
2020-12-26 12:39:10 +01:00
|
|
|
|
uses @file{@trampfn{mtp,,}} as the default name.
|
2020-01-22 16:54:55 +01:00
|
|
|
|
|
2018-08-04 12:05:28 +02:00
|
|
|
|
@cindex method @option{nextcloud}
|
|
|
|
|
@cindex @option{nextcloud} method
|
2019-05-05 16:20:14 +02:00
|
|
|
|
@cindex nextcloud
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{nextcloud}
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
|
2018-08-04 12:05:28 +02:00
|
|
|
|
As the name indicates, the method @option{nextcloud} allows you to
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
access OwnCloud or NextCloud hosted files and directories. Like the
|
|
|
|
|
@option{gdrive} method, your credentials must be populated in your
|
2021-06-14 11:25:13 +02:00
|
|
|
|
@command{Online Accounts} application outside Emacs. The method
|
Add new Tramp connection method "owncloud"
* doc/misc/tramp.texi (all): Use @acronym{GNOME} thoroughly.
(Using GNOME Online Accounts based methods): Rename from
"Using Google Drive". Add `owncloud'.
(GVFS based methods): Add `owncloud'.
* etc/NEWS: Add Tramp connection method "owncloud".
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "owncloud".
Remove goa methods if not supported.
(tramp-goa-methods, tramp-goa-service, tramp-goa-path)
(tramp-goa-path-accounts, tramp-goa-interface-documents)
(tramp-goa-interface-printers, tramp-goa-interface-files)
(tramp-goa-interface-contacts, tramp-goa-interface-calendar)
(tramp-goa-interface-oauth2based)
(tramp-goa-interface-account, tramp-goa-identity-regexp)
(tramp-goa-interface-mail, tramp-goa-interface-chat)
(tramp-goa-interface-photos, tramp-goa-path-manager)
(tramp-goa-interface-documents)
(tramp-gvfs-owncloud-default-prefix)
(tramp-gvfs-owncloud-default-prefix-regexp): New defconst.
(tramp-goa-name): New defstruct.
(tramp-gvfs-stringify-dbus-message): Handle all consp messages.
(tramp-dbus-function, tramp-gvfs-get-remote-prefix)
(tramp-get-goa-accounts): New defun.
(with-tramp-dbus-call-method): Use it.
(with-tramp-dbus-get-all-properties): New defmacro.
(tramp-gvfs-url-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec):
Map between "owncloud" and "davs".
(tramp-gvfs-maybe-open-connection): Set "vector" connection property.
* test/lisp/net/tramp-tests.el (tramp-gvfs-handler-askquestion):
Suppress run in tests.
(tramp--test-owncloud-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file): Use it.
2018-01-05 21:04:39 +01:00
|
|
|
|
supports port numbers.
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex method @option{sftp}
|
|
|
|
|
@cindex @option{sftp} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sftp}
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This method uses @command{sftp} in order to securely access remote
|
|
|
|
|
hosts. @command{sftp} is a more secure option for connecting to hosts
|
|
|
|
|
that for security reasons refuse @command{ssh} connections.
|
2014-06-15 17:09:22 +02:00
|
|
|
|
|
2021-01-27 16:30:49 +01:00
|
|
|
|
When there is a respective entry in your @command{ssh} configuration,
|
|
|
|
|
do @emph{not} set the @option{RemoteCommand} option.
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end table
|
|
|
|
|
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@defopt tramp-gvfs-methods
|
2019-08-22 14:50:38 +02:00
|
|
|
|
This user option is a list of external methods for @acronym{GVFS}@.
|
|
|
|
|
By default, this list includes @option{afp}, @option{dav},
|
2020-12-26 12:39:10 +01:00
|
|
|
|
@option{davs}, @option{gdrive}, @option{mtp}, @option{nextcloud} and
|
2020-01-22 16:54:55 +01:00
|
|
|
|
@option{sftp}. Other methods to include are @option{ftp},
|
|
|
|
|
@option{http}, @option{https} and @option{smb}. These methods are not
|
|
|
|
|
intended to be used directly as @acronym{GVFS}-based method. Instead,
|
|
|
|
|
they are added here for the benefit of @ref{Archive file names}.
|
2019-08-22 14:50:38 +02:00
|
|
|
|
|
|
|
|
|
If you want to use @acronym{GVFS}-based @option{ftp} or @option{smb}
|
|
|
|
|
methods, you must add them to @code{tramp-gvfs-methods}, and you must
|
2021-08-08 16:18:59 +02:00
|
|
|
|
disable the corresponding @value{tramp} package by setting
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@code{tramp-ftp-method} or @code{tramp-smb-method} to @code{nil},
|
|
|
|
|
respectively:
|
2019-08-15 14:35:02 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(add-to-list 'tramp-gvfs-methods "ftp")
|
|
|
|
|
(customize-set-variable 'tramp-ftp-method nil)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@end defopt
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@node FUSE-based methods
|
|
|
|
|
@section @acronym{FUSE}-based external methods
|
|
|
|
|
@cindex methods, fuse
|
|
|
|
|
@cindex fuse-based methods
|
|
|
|
|
|
|
|
|
|
Besides @acronym{GVFS}, there are other virtual file systems using the
|
|
|
|
|
@acronym{FUSE} interface. Remote files are mounted locally through
|
|
|
|
|
@acronym{FUSE} and @value{tramp} uses this locally mounted directory
|
|
|
|
|
internally. When possible, @value{tramp} maps the remote file names
|
|
|
|
|
to their respective local file name, and applies the file name
|
|
|
|
|
operation on them. For some of the file name operations this is not
|
|
|
|
|
possible, @value{tramp} emulates those operations otherwise.
|
|
|
|
|
|
|
|
|
|
@table @asis
|
|
|
|
|
@cindex method @option{rclone}
|
|
|
|
|
@cindex @option{rclone} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{rclone}
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
|
|
|
|
@vindex tramp-rclone-program
|
2023-09-10 09:33:50 +08:00
|
|
|
|
The program @command{rclone} enables accessing different system
|
2021-10-18 19:53:34 +02:00
|
|
|
|
storages in the cloud, see @uref{https://rclone.org/} for a list of
|
2021-03-08 12:05:29 +01:00
|
|
|
|
supported systems. If the @command{rclone} program isn't found in
|
|
|
|
|
your @env{PATH} environment variable, you can tell @value{tramp} its
|
|
|
|
|
absolute path via the user option @code{tramp-rclone-program}.
|
|
|
|
|
|
|
|
|
|
A system storage must be configured via the @command{rclone config}
|
|
|
|
|
command, outside Emacs. If you have configured a storage in
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@command{rclone} under a name @samp{storage} (for example), you can
|
2021-03-08 12:05:29 +01:00
|
|
|
|
access it via the remote file name
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@trampfn{rclone,storage,/path/to/file}
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
User names are part of the @command{rclone} configuration, and not
|
|
|
|
|
needed in the remote file name. If a user name is contained in the
|
|
|
|
|
remote file name, it is ignored.
|
|
|
|
|
|
|
|
|
|
Access via @option{rclone} is slow. If you have an alternative method
|
|
|
|
|
for accessing the system storage, you should use it.
|
|
|
|
|
@ref{GVFS-based methods} for example, methods @option{gdrive} and
|
|
|
|
|
@option{nextcloud}.
|
|
|
|
|
|
|
|
|
|
@cindex method @option{sshfs}
|
|
|
|
|
@cindex @option{sshfs} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @option{sshfs}
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
|
|
|
|
@vindex tramp-sshfs-program
|
|
|
|
|
On local hosts which have installed the @command{sshfs} client for
|
2024-12-09 15:50:59 +01:00
|
|
|
|
mounting a file system based on the @command{sftp} subsystem of
|
|
|
|
|
@command{ssh}, this method can be used, see
|
|
|
|
|
@uref{https://github.com/libfuse/sshfs/blob/master/README.md}. If the
|
|
|
|
|
@command{sshfs} program isn't found in your @env{PATH} environment
|
2021-03-08 12:05:29 +01:00
|
|
|
|
variable, you can tell @value{tramp} its absolute path via the user
|
|
|
|
|
option @code{tramp-sshfs-program}.
|
|
|
|
|
|
|
|
|
|
All remote files are available via the local mount point.
|
|
|
|
|
@value{tramp} aids in mounting the file system if it isn't mounted
|
|
|
|
|
yet. The remote file name syntax is
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@trampfn{sshfs,user@@host#port,/path/to/file}
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
User name and port number are optional. This method does not support
|
|
|
|
|
password handling, the file system must either be mounted already, or
|
|
|
|
|
the connection must be established passwordless via ssh keys.
|
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
The mount point and mount arguments can be passed as connection
|
2021-03-08 12:05:29 +01:00
|
|
|
|
properties, @xref{Setup of sshfs method}.
|
|
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Default Method
|
|
|
|
|
@section Selecting a default method
|
|
|
|
|
@cindex default method
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
In a remote file name, the use of a default method is indicated by the
|
2024-05-13 10:31:13 +02:00
|
|
|
|
pseudo method @option{-}, @pxref{File name syntax}.
|
2017-03-16 16:23:07 +01:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-method
|
|
|
|
|
Default method is for transferring files. The user option
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-default-method} sets it. @value{tramp} uses this user
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
option to determine the default method for remote file names that do
|
|
|
|
|
not have one specified.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'tramp-default-method "ssh")
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-method-alist
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Default methods for transferring files can be customized for specific
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
user and host combinations through the user option
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-default-method-alist}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
For example, the following two lines specify to use the @option{ssh}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
method for all user names matching @samp{john} and the @option{rsync}
|
|
|
|
|
method for all host names matching @samp{lily}. The third line
|
|
|
|
|
specifies to use the @option{su} method for the user @samp{root} on
|
2014-01-12 16:19:07 +01:00
|
|
|
|
the host @samp{localhost}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-method-alist '("" "john" "ssh"))
|
|
|
|
|
(add-to-list 'tramp-default-method-alist '("lily" "" "rsync"))
|
|
|
|
|
(add-to-list 'tramp-default-method-alist
|
|
|
|
|
'("\\`localhost\\'" "\\`root\\'" "su"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
External methods performance faster for large files. @pxref{Inline
|
|
|
|
|
methods}. @pxref{External methods}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Choosing the access method also depends on the security environment.
|
|
|
|
|
For example, @option{rsh} and @option{telnet} methods that use clear
|
|
|
|
|
text password transfers are inappropriate for over the Internet
|
|
|
|
|
connections. Secure remote connections should use @option{ssh} that
|
|
|
|
|
provide encryption.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@subsection Which method to use?
|
|
|
|
|
@cindex choosing the right method
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} provides maximum number of choices for maximum
|
|
|
|
|
flexibility. Choosing which method depends on the hosts, clients,
|
|
|
|
|
network speeds, and the security context.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Start by using an inline method.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
External methods might be more efficient for large files, but most
|
|
|
|
|
@value{tramp} users edit small files more often than large files.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-02-20 21:15:19 +02:00
|
|
|
|
Enable compression, @code{tramp-inline-compress-start-size}, for a
|
2022-01-22 17:12:14 +01:00
|
|
|
|
performance boost for large files with inline methods.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Since @command{ssh} has become the most common method of remote host
|
|
|
|
|
access and it has the most reasonable security protocols, use
|
|
|
|
|
@option{ssh} method. Typical @option{ssh} usage to edit the
|
|
|
|
|
@file{/etc/motd} file on the otherhost:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@example
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@kbd{C-x C-f @trampfn{ssh,root@@otherhost,/etc/motd} @key{RET}}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
If @option{ssh} is unavailable for whatever reason, look for other
|
2023-03-24 13:30:25 +01:00
|
|
|
|
obvious options. For MS Windows, try the @option{plink}
|
|
|
|
|
method@footnote{This shouldn't be needed with recent @code{OpenSSH}
|
|
|
|
|
versions for MS Windows. Use method @option{sshx}.}. For Kerberos,
|
|
|
|
|
try @option{krlogin}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
For editing local files as @option{su} or @option{sudo} methods, try
|
|
|
|
|
the shortened syntax of @samp{root}:
|
|
|
|
|
|
|
|
|
|
@example
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@kbd{C-x C-f @trampfn{su,,/etc/motd} @key{RET}}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
For editing large files, @option{scp} is faster than @option{ssh}.
|
|
|
|
|
@option{pscp} is faster than @option{plink}. But this speed
|
|
|
|
|
improvement is not always true.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
When copying large files between two different remote hosts via
|
|
|
|
|
@option{scp}, set @code{tramp-use-scp-direct-remote-copying} to
|
|
|
|
|
non-@code{nil}.
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@node Default User
|
|
|
|
|
@section Selecting a default user
|
|
|
|
|
@cindex default user
|
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-user
|
2018-07-26 11:54:33 +02:00
|
|
|
|
A @value{tramp} file name can omit the user name part since
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} substitutes the currently logged-in user name. However
|
2018-05-29 12:42:17 +02:00
|
|
|
|
this substitution can be overridden with @code{tramp-default-user}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
For example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'tramp-default-user "root")
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-user-alist
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Instead of a single default user, @code{tramp-default-user-alist}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
allows multiple default user values based on access method or host
|
|
|
|
|
name combinations. The alist can hold multiple values. For example, to
|
|
|
|
|
use the @samp{john} as the default user for the domain
|
|
|
|
|
@samp{somewhere.else} only:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-user-alist
|
|
|
|
|
'("ssh" ".*\\.somewhere\\.else\\'" "john"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
A Caution: @value{tramp} will override any default user specified in
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
the configuration files outside Emacs, such as @file{~/.ssh/config}.
|
|
|
|
|
To stop @value{tramp} from applying the default value, set the
|
2019-11-20 13:45:30 +01:00
|
|
|
|
corresponding alist entry to @code{nil}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-user-alist
|
|
|
|
|
'("ssh" "\\`here\\.somewhere\\.else\\'" nil))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
The last entry in @code{tramp-default-user-alist} should be reserved
|
2015-12-29 15:33:54 +01:00
|
|
|
|
for catch-all or most often used login.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2015-12-29 15:33:54 +01:00
|
|
|
|
(add-to-list 'tramp-default-user-alist
|
|
|
|
|
'(nil nil "jonas") t)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Default Host
|
|
|
|
|
@section Selecting a default host
|
|
|
|
|
@cindex default host
|
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-host
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When host name is omitted, @value{tramp} substitutes the value from
|
2018-05-29 12:42:17 +02:00
|
|
|
|
the @code{tramp-default-host} user option. It is initially
|
2017-03-16 16:23:07 +01:00
|
|
|
|
populated with the local host name where Emacs is running. The
|
|
|
|
|
default method, default user and default host can be overridden as
|
|
|
|
|
follows:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
|
|
|
|
(custom-set-variables
|
2017-11-05 20:07:12 +01:00
|
|
|
|
'(tramp-default-method "ssh")
|
|
|
|
|
'(tramp-default-user "john")
|
|
|
|
|
'(tramp-default-host "target"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
With all defaults set, @file{@trampfn{-,,}} will connect @value{tramp}
|
|
|
|
|
to John's home directory on @samp{target} via method @option{ssh}.
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@defopt tramp-default-host-alist
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Instead of a single default host, @code{tramp-default-host-alist}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
allows multiple default host values based on access method or user
|
|
|
|
|
name combinations. The alist can hold multiple values. While
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-default-host} is sufficient in most cases, some methods,
|
2015-12-29 15:33:54 +01:00
|
|
|
|
like @option{adb}, require defaults overwritten.
|
2024-05-12 19:40:08 +02:00
|
|
|
|
|
|
|
|
|
The default host name for @option{nspawn} is @samp{.host}. Therefore,
|
|
|
|
|
@file{@trampfn{nspawn,,}} and @file{@trampfn{sudo,,}} have the same
|
|
|
|
|
effect.
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end defopt
|
2013-01-10 08:34:48 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@node Multi-hops
|
|
|
|
|
@section Connecting to a remote host using multiple hops
|
|
|
|
|
@cindex multi-hop
|
|
|
|
|
@cindex proxy hosts
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Multi-hops are methods to reach hosts behind firewalls or to reach the
|
|
|
|
|
outside world from inside a bastion host. With multi-hops,
|
|
|
|
|
@value{tramp} can negotiate these hops with the appropriate user/host
|
|
|
|
|
authentication at each hop. All methods until now have been the single
|
|
|
|
|
hop kind, where the start and end points of the connection did not
|
|
|
|
|
have intermediate check points.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2012-07-06 15:19:33 +02:00
|
|
|
|
@defopt tramp-default-proxies-alist
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-default-proxies-alist} specifies proxy hosts to pass
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
through. This user option is list of triples consisting of
|
|
|
|
|
@code{(@var{host} @var{user} @var{proxy})}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
The first match is the proxy host through which passes the file name
|
|
|
|
|
and the target host matching @var{user}@@@var{host}. @var{host} and
|
|
|
|
|
@var{user} are regular expressions or @code{nil}, interpreted as a
|
|
|
|
|
regular expression which always matches.
|
|
|
|
|
|
|
|
|
|
@var{proxy} is a literal @value{tramp} file name whose local name part
|
|
|
|
|
is ignored, and the method and user name parts are optional.
|
|
|
|
|
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
The method must be an inline method (@pxref{Inline methods}). If
|
|
|
|
|
@var{proxy} is @code{nil}, no additional hop is required reaching
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@var{user}@@@var{host}.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For example, to pass through the host @samp{bastion.your.domain} as
|
|
|
|
|
user @samp{bird} to reach remote hosts outside the local domain:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
2016-01-24 11:40:26 -08:00
|
|
|
|
'("\\." nil "@trampfn{ssh,bird@@bastion.your.domain,}"))
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
|
|
|
|
'("\\.your\\.domain\\'" nil nil))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@strong{Note}: @code{add-to-list} adds elements at the beginning of a
|
|
|
|
|
list. Therefore, most relevant rules must come last in the list.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Proxy hosts can be cascaded in the alist. If there is another host
|
|
|
|
|
called @samp{jump.your.domain}, which is the only host allowed to
|
|
|
|
|
connect to @samp{bastion.your.domain}, then:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
|
|
|
|
'("\\`bastion\\.your\\.domain\\'"
|
|
|
|
|
"\\`bird\\'"
|
2016-01-24 11:40:26 -08:00
|
|
|
|
"@trampfn{ssh,jump.your.domain,}"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@var{proxy} can take patterns @code{%h} or @code{%u} for @var{host} or
|
2018-11-06 15:48:05 +01:00
|
|
|
|
@var{user} respectively. Ports or domains, if they are part of
|
|
|
|
|
a hop file name, are not expanded by those patterns.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To login as @samp{root} on remote hosts in the domain
|
|
|
|
|
@samp{your.domain}, but login as @samp{root} is disabled for non-local
|
|
|
|
|
access, then use this alist entry:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
2016-01-24 11:40:26 -08:00
|
|
|
|
'("\\.your\\.domain\\'" "\\`root\\'" "@trampfn{ssh,%h,}"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2016-01-31 13:50:23 +01:00
|
|
|
|
Opening @file{@trampfn{sudo,randomhost.your.domain,}} first connects
|
|
|
|
|
to @samp{randomhost.your.domain} via @code{ssh} under your account
|
2017-03-16 16:23:07 +01:00
|
|
|
|
name, and then performs @code{sudo -u root} on that host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-03-29 15:59:11 +02:00
|
|
|
|
It is key for the @option{sudo} method in the above example to be
|
|
|
|
|
applied on the host after reaching it and not on the local host.
|
|
|
|
|
@value{tramp} checks therefore, that the host name for such hops
|
|
|
|
|
matches the host name of the previous hop.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@var{host}, @var{user} and @var{proxy} can also take Lisp forms. These
|
|
|
|
|
forms when evaluated must return either a string or @code{nil}.
|
|
|
|
|
|
|
|
|
|
To generalize (from the previous example): For all hosts, except my
|
|
|
|
|
local one, first connect via @command{ssh}, and then apply
|
|
|
|
|
@command{sudo -u root}:
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-06-22 21:39:28 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
2016-01-24 11:40:26 -08:00
|
|
|
|
'(nil "\\`root\\'" "@trampfn{ssh,%h,}"))
|
2009-06-22 21:39:28 +00:00
|
|
|
|
(add-to-list 'tramp-default-proxies-alist
|
2022-03-10 12:31:22 +01:00
|
|
|
|
`(,(regexp-quote (system-name)) nil nil))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@end lisp
|
2012-07-06 15:19:33 +02:00
|
|
|
|
@end defopt
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Passing through hops involves dealing with restricted shells, such as
|
|
|
|
|
@command{rbash}. If @value{tramp} is made aware, then it would use
|
|
|
|
|
them for proxies only.
|
2012-07-06 15:19:33 +02:00
|
|
|
|
|
|
|
|
|
@defopt tramp-restricted-shell-hosts-alist
|
2015-12-29 15:33:54 +01:00
|
|
|
|
An alist of regular expressions of hosts running restricted shells,
|
|
|
|
|
such as @command{rbash}. @value{tramp} will then use them only as
|
|
|
|
|
proxies.
|
2012-07-06 15:19:33 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To specify the bastion host from the example above as running a
|
|
|
|
|
restricted shell:
|
2012-07-06 15:19:33 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2012-07-06 15:19:33 +02:00
|
|
|
|
(add-to-list 'tramp-restricted-shell-hosts-alist
|
|
|
|
|
"\\`bastion\\.your\\.domain\\'")
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2012-07-06 15:19:33 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
@end defopt
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
@node Firewalls
|
|
|
|
|
@section Passing firewalls
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex http tunnel
|
|
|
|
|
@cindex proxy hosts, http tunnel
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
|
|
|
|
|
Sometimes, it is not possible to reach a remote host directly. A
|
|
|
|
|
firewall might be in the way, which could be passed via a proxy
|
|
|
|
|
server.
|
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
Both OpenSSH and PuTTY support such proxy settings, using an HTTP
|
|
|
|
|
tunnel via the @command{CONNECT} command (conforming to RFC 2616, 2817
|
2018-02-14 09:28:33 +01:00
|
|
|
|
specifications). Proxy servers using HTTP 1.1 or later protocol
|
|
|
|
|
support this command.
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
@subsection Tunneling with ssh
|
|
|
|
|
|
Some Tramp adaptions, mainly direct async processes
* doc/misc/tramp.texi (Firewalls, Remote processes)
(Frequently Asked Questions): Add @vindex.
(Predefined connection information): Precise precondition or direct
async processes.
(Remote shell setup): Ban ssh RemoteCommand option.
(Frequently Asked Questions): Adapt quoting.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1-pre".
* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-direct-async'
parameter.
(tramp-adb-handle-make-process): Adapt docstring.
* lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>:
Add `tramp-direct-async' parameter.
(tramp-sh-handle-insert-directory): Simplify merkers.
(tramp-sh-handle-make-process): Adapt docstring.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-debug-message): Suppress lockfiles.
(tramp-test-message): New defun.
(tramp-direct-async-process-p): Check also for `tramp-direct-async'.
(tramp-handle-make-process): Do not check for `tramp-direct-async-args'.
* test/lisp/net/tramp-tests.el (all): Replace `string-match' by
`string-match-p'.
(dired-copy-dereference): Declare.
(tramp-test-temporary-file-directory):
Remove `tramp-direct-async-args` for mock method.
(tramp-test15-copy-directory, tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls, tramp-test41-utf8)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Skip for tramp-rclone.el.
(tramp--test--deftest-direct-async-process): Do not skip for mock
method.
(tramp-test32-shell-command): Adapt test for direct async processes.
(tramp-test36-vc-registered, tramp--test-hpux-p, tramp--test-ksh-p):
Use `tramp-test-vec'.
2021-01-15 11:32:12 +01:00
|
|
|
|
@vindex ProxyCommand@r{, ssh option}
|
2024-11-13 17:10:57 +01:00
|
|
|
|
With @command{ssh}, you can use the @option{ProxyCommand} entry in
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
@file{~/.ssh/config}:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
Host host.other.domain
|
|
|
|
|
ProxyCommand nc -X connect -x proxy.your.domain:3128 %h %p
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
2019-04-13 12:34:13 +02:00
|
|
|
|
@code{nc} is BSD's netcat program, which establishes HTTP tunnels.
|
|
|
|
|
Any other program with such a feature could be used as well.
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
|
|
|
|
|
In the example, opening @file{@trampfn{ssh,host.your.domain,}} passes
|
|
|
|
|
the HTTP proxy server @samp{proxy.your.domain} on port 3128.
|
|
|
|
|
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
Remove gateway methods in Tramp
* doc/misc/tramp.texi (Top, Configuration): Remove section
`Gateway methods', insert section `Firewalls' in menu.
(History): Gateways are removed now.
(Gateway methods): Remove section.
(Multi-hops, Traces and Profiles): Don't reference to gateways anymore.
(Firewalls): New section.
* etc/NEWS: Gateway methods in Tramp have been removed.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-file-name-port, tramp-accept-process-output): Simplify.
* lisp/net/tramp-gw.el: Remove.
* lisp/net/tramp-sh.el (tramp-gw-tunnel-method)
(tramp-gw-socks-method): Remove declarations.
(tramp-methods) <scp, scpx, ssh, sshx, telnet, nc, plink, pscp>:
Remove `tramp-gw-args' and `tramp-default-port'. (Bug#18967)
(tramp-do-copy-or-rename-file-out-of-band)
(tramp-compute-multi-hops, tramp-maybe-open-connection):
Remove gateway support.
* test/lisp/net/tramp-tests.el (tramp-test03-file-name-defaults):
Remove gateway tests.
2016-12-21 12:42:22 +01:00
|
|
|
|
@subsection Tunneling with PuTTY
|
|
|
|
|
|
|
|
|
|
PuTTY does not need an external program, HTTP tunnel support is
|
|
|
|
|
built-in. In the PuTTY config program, create a session for
|
|
|
|
|
@samp{host.your.domain}. In the @option{Connection/Data} entry,
|
|
|
|
|
select the @option{HTTP} option, and add @samp{proxy.your.domain} as
|
|
|
|
|
@option{Proxy hostname}, and 3128 as @option{Port}.
|
|
|
|
|
|
|
|
|
|
Opening @file{@trampfn{plinkx,host.your.domain,}} passes the HTTP
|
|
|
|
|
proxy server @samp{proxy.your.domain} on port 3128.
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Customizing Methods
|
|
|
|
|
@section Using Non-Standard Methods
|
|
|
|
|
@cindex customizing methods
|
|
|
|
|
@cindex using non-standard methods
|
|
|
|
|
@cindex create your own methods
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@vindex tramp-methods
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The @code{tramp-methods} variable currently has an exhaustive list of
|
|
|
|
|
predefined methods. Any part of this list can be modified with more
|
|
|
|
|
suitable settings. Refer to the Lisp documentation of that variable,
|
|
|
|
|
accessible with @kbd{C-h v tramp-methods @key{RET}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-11-16 13:05:49 +01:00
|
|
|
|
In the ELPA archives, there are several examples of such extensions.
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
They can be installed with Emacs's Package Manager. This includes
|
2018-11-16 13:05:49 +01:00
|
|
|
|
|
|
|
|
|
@table @samp
|
|
|
|
|
@c @item anything-tramp
|
|
|
|
|
@c @item counsel-tramp
|
|
|
|
|
@c @item helm-tramp
|
|
|
|
|
@c Contact Masashí Míyaura <masasam@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
@c @item ibuffer-tramp.el
|
|
|
|
|
@c Contact Svend Sorensen <svend@@ciffer.net>
|
|
|
|
|
|
|
|
|
|
@cindex method @option{lxc}
|
|
|
|
|
@cindex @option{lxc} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item lxc-tramp
|
2018-11-16 13:05:49 +01:00
|
|
|
|
Integration for LXC containers. A container is accessed via
|
|
|
|
|
@file{@trampfn{lxc,container,/path/to/file}}, @samp{container} has the
|
2022-09-24 18:44:32 +02:00
|
|
|
|
same meaning as with the @option{docker} method. A @samp{user}
|
|
|
|
|
specification is ignored.
|
2018-11-16 13:05:49 +01:00
|
|
|
|
|
|
|
|
|
@cindex method @option{lxd}
|
|
|
|
|
@cindex @option{lxd} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item lxd-tramp
|
2018-11-16 13:05:49 +01:00
|
|
|
|
Integration for LXD containers. A container is accessed via
|
|
|
|
|
@file{@trampfn{lxd,user@@container,/path/to/file}}, @samp{user} and
|
2022-09-24 18:44:32 +02:00
|
|
|
|
@samp{container} have the same meaning as with the @option{docker}
|
|
|
|
|
method.
|
2018-11-16 13:05:49 +01:00
|
|
|
|
|
|
|
|
|
@cindex method @option{git}
|
|
|
|
|
@cindex @option{git} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item magit-tramp
|
2020-10-01 14:23:20 +02:00
|
|
|
|
Browsing Git repositories with @code{magit}. A versioned file is
|
2020-07-02 13:06:25 +02:00
|
|
|
|
accessed via @file{@trampfn{git,rev@@root-dir,/path/to/file}}.
|
2020-10-01 14:23:20 +02:00
|
|
|
|
@samp{rev} is a Git revision, and @samp{root-dir} is a virtual host
|
2020-07-02 13:06:25 +02:00
|
|
|
|
name for the root directory, specified in
|
|
|
|
|
@code{magit-tramp-hosts-alist}.
|
2018-11-16 13:05:49 +01:00
|
|
|
|
|
|
|
|
|
@cindex method @option{hdfs}
|
|
|
|
|
@cindex @option{hdfs} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item tramp-hdfs
|
2018-11-16 13:05:49 +01:00
|
|
|
|
Access of a hadoop/hdfs file system. A file is accessed via
|
|
|
|
|
@file{@trampfn{hdfs,user@@node,/path/to/file}}, where @samp{user} is
|
|
|
|
|
the user that you want to use, and @samp{node} is the name of the
|
|
|
|
|
hadoop server.
|
|
|
|
|
|
|
|
|
|
@cindex method @option{vagrant}
|
|
|
|
|
@cindex @option{vagrant} method
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item vagrant-tramp
|
2018-11-16 13:05:49 +01:00
|
|
|
|
Convenience method to access vagrant boxes. It is often used in
|
|
|
|
|
multi-hop file names like
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@file{@trampfn{vagrant@value{postfixhop}box|sudo,box,/path/to/file}},
|
2018-11-16 13:05:49 +01:00
|
|
|
|
where @samp{box} is the name of the vagrant box.
|
2020-06-12 20:17:02 +02:00
|
|
|
|
|
2018-11-16 13:05:49 +01:00
|
|
|
|
@end table
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@node Customizing Completion
|
|
|
|
|
@section Selecting config files for user/host name completion
|
|
|
|
|
@cindex customizing completion
|
|
|
|
|
@cindex selecting config files
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@vindex tramp-completion-function-alist
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{tramp-completion-function-alist} uses predefined files for user
|
|
|
|
|
and host name completion (@pxref{File name completion}). For each
|
|
|
|
|
method, it keeps a set of configuration files and a function that can
|
|
|
|
|
parse that file. Each entry in @code{tramp-completion-function-alist}
|
|
|
|
|
is of the form (@var{method} @var{pair1} @var{pair2} @dots{}).
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
Each @var{pair} is composed of (@var{function} @var{file}).
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@var{function} is responsible for extracting user names and host names
|
2007-09-06 05:07:05 +00:00
|
|
|
|
from @var{file} for completion. There are two functions which access
|
|
|
|
|
this variable:
|
|
|
|
|
|
|
|
|
|
@defun tramp-get-completion-function method
|
|
|
|
|
This function returns the list of completion functions for @var{method}.
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(tramp-get-completion-function "rsh")
|
|
|
|
|
|
|
|
|
|
@result{} ((tramp-parse-rhosts "/etc/hosts.equiv")
|
|
|
|
|
(tramp-parse-rhosts "~/.rhosts"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
|
|
@defun tramp-set-completion-function method function-list
|
|
|
|
|
This function sets @var{function-list} as list of completion functions
|
|
|
|
|
for @var{method}.
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(tramp-set-completion-function "ssh"
|
|
|
|
|
'((tramp-parse-sconfig "/etc/ssh_config")
|
|
|
|
|
(tramp-parse-sconfig "~/.ssh/config")))
|
|
|
|
|
|
|
|
|
|
@result{} ((tramp-parse-sconfig "/etc/ssh_config")
|
|
|
|
|
(tramp-parse-sconfig "~/.ssh/config"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
|
|
The following predefined functions parsing configuration files exist:
|
|
|
|
|
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@ftable @asis
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item @code{tramp-parse-rhosts}
|
|
|
|
|
|
|
|
|
|
This function parses files which are syntactical equivalent to
|
|
|
|
|
@file{~/.rhosts}. It returns both host names and user names, if
|
|
|
|
|
specified.
|
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-shosts}
|
|
|
|
|
|
|
|
|
|
This function parses files which are syntactical equivalent to
|
|
|
|
|
@file{~/.ssh/known_hosts}. Since there are no user names specified
|
|
|
|
|
in such files, it can return host names only.
|
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-sconfig}
|
|
|
|
|
|
2020-09-24 10:17:03 +02:00
|
|
|
|
This function returns the host nicknames defined by @option{Host}
|
|
|
|
|
entries in @file{~/.ssh/config} style files.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-shostkeys}
|
|
|
|
|
|
|
|
|
|
SSH2 parsing of directories @file{/etc/ssh2/hostkeys/*} and
|
|
|
|
|
@file{~/ssh2/hostkeys/*}. Hosts are coded in file names
|
|
|
|
|
@file{hostkey_@var{portnumber}_@var{host-name}.pub}. User names
|
|
|
|
|
are always @code{nil}.
|
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-sknownhosts}
|
|
|
|
|
|
|
|
|
|
Another SSH2 style parsing of directories like
|
|
|
|
|
@file{/etc/ssh2/knownhosts/*} and @file{~/ssh2/knownhosts/*}. This
|
|
|
|
|
case, hosts names are coded in file names
|
|
|
|
|
@file{@var{host-name}.@var{algorithm}.pub}. User names are always @code{nil}.
|
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-hosts}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
A function dedicated to @file{/etc/hosts} for host names.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item @code{tramp-parse-passwd}
|
|
|
|
|
|
2018-07-26 11:54:33 +02:00
|
|
|
|
A function which parses @file{/etc/passwd} for user names.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2016-01-15 11:10:37 +01:00
|
|
|
|
@item @code{tramp-parse-etc-group}
|
|
|
|
|
|
2018-07-26 11:54:33 +02:00
|
|
|
|
A function which parses @file{/etc/group} for group names.
|
2016-01-15 11:10:37 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item @code{tramp-parse-netrc}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
A function which parses @file{~/.netrc} and @file{~/.authinfo}-style files.
|
2012-12-14 16:37:27 +01:00
|
|
|
|
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@end ftable
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To keep a custom file with custom data in a custom structure, a custom
|
|
|
|
|
function has to be provided. This function must meet the following
|
|
|
|
|
conventions:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@defun my-tramp-parse file
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@var{file} must be either a file on the host, or @code{nil}. The
|
|
|
|
|
function must return a list of (@var{user} @var{host}), which are
|
|
|
|
|
taken as candidates for completion for user and host names.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(my-tramp-parse "~/.my-tramp-hosts")
|
|
|
|
|
|
|
|
|
|
@result{} ((nil "toto") ("daniel" "melancholia"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
@end defun
|
|
|
|
|
|
|
|
|
|
|
2008-06-21 11:51:31 +00:00
|
|
|
|
@node Password handling
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@section Reusing passwords for several connections
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex passwords
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To avoid repeated prompts for passwords, consider native caching
|
|
|
|
|
mechanisms, such as @command{ssh-agent} for @option{ssh}-like
|
2008-06-21 11:51:31 +00:00
|
|
|
|
methods, or @command{pageant} for @option{plink}-like methods.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} offers alternatives when native solutions cannot meet
|
|
|
|
|
the need.
|
2008-06-21 11:51:31 +00:00
|
|
|
|
|
|
|
|
|
|
2009-09-28 14:27:48 +00:00
|
|
|
|
@anchor{Using an authentication file}
|
2008-06-21 11:51:31 +00:00
|
|
|
|
@subsection Using an authentication file
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@vindex auth-sources
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The package @file{auth-source.el}, originally developed for No Gnus,
|
|
|
|
|
reads passwords from different sources, @xref{Help for users, ,
|
|
|
|
|
auth-source, auth}. The default authentication file is
|
2018-10-01 14:33:51 +02:00
|
|
|
|
@file{~/.authinfo.gpg}, but this can be changed via the user option
|
2008-06-21 11:51:31 +00:00
|
|
|
|
@code{auth-sources}.
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
A typical entry in the authentication file:
|
2008-06-21 11:51:31 +00:00
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
machine melancholia port scp login daniel password geheim
|
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The port can take any @value{tramp} method (@pxref{Inline methods},
|
|
|
|
|
@pxref{External methods}). Omitting port values matches all
|
2017-06-12 17:52:42 +02:00
|
|
|
|
@value{tramp} methods. Domain and ports, as used in @value{tramp}
|
|
|
|
|
file name syntax, must be appended to the machine and login items:
|
2008-06-21 11:51:31 +00:00
|
|
|
|
|
2017-06-12 17:52:42 +02:00
|
|
|
|
@example
|
2017-06-13 15:20:43 +02:00
|
|
|
|
machine melancholia#4711 port davs login daniel%BIZARRE password geheim
|
2017-06-12 17:52:42 +02:00
|
|
|
|
@end example
|
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
For the methods @option{doas}, @option{sudo}, @option{sudoedit} and
|
|
|
|
|
@option{nspawn} the password of the user requesting the connection is
|
|
|
|
|
needed, and not the password of the target user@footnote{On the local
|
|
|
|
|
host, @code{run0} uses a graphical password agent.}. If these
|
|
|
|
|
connections happen on the local host, an entry with the local user and
|
|
|
|
|
local host is used:
|
2022-02-19 18:38:12 +01:00
|
|
|
|
|
|
|
|
|
@example
|
2022-10-01 21:56:41 +02:00
|
|
|
|
machine @var{host} port sudo login @var{user} password secret
|
2022-02-19 18:38:12 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
2022-10-01 21:56:41 +02:00
|
|
|
|
@var{user} and @var{host} are the strings returned by
|
2022-02-19 18:38:12 +01:00
|
|
|
|
@code{(user-login-name)} and @code{(system-name)}. If one of these
|
2024-03-05 11:17:48 +01:00
|
|
|
|
methods is connected via a multi-hop (@pxref{Multi-hops}), the
|
2022-02-19 18:38:12 +01:00
|
|
|
|
credentials of the previous hop are used.
|
|
|
|
|
|
2018-04-27 14:43:01 +02:00
|
|
|
|
@vindex auth-source-save-behavior
|
2021-02-23 14:21:26 +01:00
|
|
|
|
If no proper entry exists, the password is read
|
2018-04-27 14:43:01 +02:00
|
|
|
|
interactively. After successful login (verification of the password),
|
2021-02-23 14:21:26 +01:00
|
|
|
|
Emacs offers to save a corresponding entry for further use by
|
|
|
|
|
@code{auth-source} backends which support this. This can be changed
|
2018-10-01 14:33:51 +02:00
|
|
|
|
by setting the user option @code{auth-source-save-behavior} to @code{nil}.
|
2018-04-27 14:43:01 +02:00
|
|
|
|
|
2017-06-12 17:52:42 +02:00
|
|
|
|
@vindex auth-source-debug
|
|
|
|
|
Set @code{auth-source-debug} to @code{t} to debug messages.
|
2011-06-12 21:23:29 +02:00
|
|
|
|
|
2018-11-08 12:48:54 +01:00
|
|
|
|
@vindex ange-ftp-netrc-filename
|
|
|
|
|
@strong{Note} that @file{auth-source.el} is not used for @option{ftp}
|
2018-11-16 13:05:49 +01:00
|
|
|
|
connections, because @value{tramp} passes the work to Ange FTP@. If
|
2018-11-08 12:48:54 +01:00
|
|
|
|
you want, for example, use your @file{~/.authinfo.gpg} authentication
|
|
|
|
|
file, you must customize @code{ange-ftp-netrc-filename}:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'ange-ftp-netrc-filename "~/.authinfo.gpg")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2021-02-21 10:24:56 +01:00
|
|
|
|
In case you do not want to use an authentication file for
|
|
|
|
|
@value{tramp} passwords, use connection-local variables
|
|
|
|
|
@ifinfo
|
|
|
|
|
(@pxref{Connection Variables, , , emacs})
|
|
|
|
|
@end ifinfo
|
|
|
|
|
like this:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'remote-without-auth-sources '((auth-sources . nil)))
|
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp) 'remote-without-auth-sources)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2011-06-12 21:23:29 +02:00
|
|
|
|
|
2009-09-28 14:27:48 +00:00
|
|
|
|
@anchor{Caching passwords}
|
2008-06-21 11:51:31 +00:00
|
|
|
|
@subsection Caching passwords
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} can cache passwords as entered and reuse when needed for
|
|
|
|
|
the same user or host name independent of the access method.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-11-10 12:35:15 +01:00
|
|
|
|
@vindex auth-source-cache-expiry
|
|
|
|
|
@code{auth-source-cache-expiry}@footnote{It overrides
|
|
|
|
|
@code{password-cache-expiry}.} sets the duration (in seconds) the
|
|
|
|
|
passwords are remembered. Set @code{auth-source-cache-expiry} to
|
|
|
|
|
@code{nil} to disable expiration.
|
|
|
|
|
|
|
|
|
|
Cached passwords are never saved permanently nor can they extend
|
|
|
|
|
beyond the lifetime of the current Emacs session unless you confirm
|
|
|
|
|
this interactively.
|
|
|
|
|
|
|
|
|
|
@vindex auth-source-do-cache
|
|
|
|
|
Set @code{auth-source-do-cache} to @code{nil} to disable password caching.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@node Connection caching
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@section Reusing connection related information
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex caching
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-persistency-file-name
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For faster initial connection times, @value{tramp} stores previous
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
connection properties in a file specified by the user option
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-persistency-file-name}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
The default file name for @code{tramp-persistency-file-name} is
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@file{~/.emacs.d/tramp}.
|
2007-10-29 20:17:03 +00:00
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@value{tramp} reads this file during Emacs startup, and writes to it
|
|
|
|
|
when exiting Emacs. Delete this file for @value{tramp} to recreate a
|
|
|
|
|
new one on next Emacs startup.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Set @code{tramp-persistency-file-name} to @code{nil} to disable
|
2015-12-29 15:33:54 +01:00
|
|
|
|
storing connections persistently.
|
2007-10-29 20:17:03 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When @value{tramp} detects a change in the operating system version in
|
|
|
|
|
a remote host (via the command @command{uname -sr}), it flushes all
|
|
|
|
|
connection related information for that host and creates a new entry.
|
2007-11-12 20:01:25 +00:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2013-06-19 15:21:15 +02:00
|
|
|
|
@node Predefined connection information
|
|
|
|
|
@section Setting own connection related information
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For more precise customization, parameters specified by
|
|
|
|
|
@code{tramp-methods} can be overwritten manually.
|
2013-06-19 15:21:15 +02:00
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@vindex tramp-connection-properties
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Set @code{tramp-connection-properties} to manually override
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{tramp-methods}. Properties in this list are in the form
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@code{(@var{regexp} @var{property} @var{value})}. @var{regexp}
|
|
|
|
|
matches remote file names. Use @code{nil} to match all.
|
|
|
|
|
@var{property} is the property's name, and @var{value} is the
|
|
|
|
|
property's value.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@var{property} is any method specific parameter contained in
|
|
|
|
|
@code{tramp-methods}. The parameter key in @code{tramp-methods} is a
|
|
|
|
|
symbol name @code{tramp-<foo>}. To overwrite that property, use the
|
2019-10-18 19:44:49 +02:00
|
|
|
|
string @t{"<foo>"} for @var{property}. For example, this changes the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
remote shell:
|
2015-07-21 14:59:18 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2015-07-21 14:59:18 +02:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
2016-01-24 11:40:26 -08:00
|
|
|
|
(list (regexp-quote "@trampfn{ssh,user@@randomhost.your.domain,}")
|
2015-07-21 14:59:18 +02:00
|
|
|
|
"remote-shell" "/bin/ksh"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
2015-07-21 14:59:18 +02:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
2016-01-24 11:40:26 -08:00
|
|
|
|
(list (regexp-quote "@trampfn{ssh,user@@randomhost.your.domain,}")
|
2015-07-21 14:59:18 +02:00
|
|
|
|
"remote-shell-login" '("-")))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2015-07-21 14:59:18 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The parameters @code{tramp-remote-shell} and
|
|
|
|
|
@code{tramp-remote-shell-login} in @code{tramp-methods} now have new
|
|
|
|
|
values for the remote host.
|
2015-07-21 14:59:18 +02:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@var{property} can also be any property found in
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@code{tramp-persistency-file-name}.
|
2018-11-21 13:23:01 +01:00
|
|
|
|
|
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@subsection Relevant connection properties to override
|
2018-11-21 13:23:01 +01:00
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
Not all connection properties need to be changed. The most relevant
|
|
|
|
|
properties are listed here:
|
2015-07-21 14:59:18 +02:00
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@itemize
|
|
|
|
|
@item @t{"login-program"}
|
2013-06-19 15:21:15 +02:00
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
The property @t{"login-program"} stores the program to be used to
|
|
|
|
|
connect to the remote host. Sometimes, the program might have another
|
|
|
|
|
name on your host, or it might be located in another path. In this case,
|
|
|
|
|
you can overwrite the default value, which is special for every
|
2019-10-18 19:44:49 +02:00
|
|
|
|
connection method. It is used in all connection methods of
|
|
|
|
|
@file{tramp-sh.el}.
|
|
|
|
|
|
|
|
|
|
@item @t{"login-args"}
|
|
|
|
|
|
|
|
|
|
@t{"login-args"} specifies a list of lists of arguments to pass to
|
|
|
|
|
@t{"login-program"}. Read the docstring of @code{tramp-methods} how
|
|
|
|
|
to construct these lists.
|
|
|
|
|
|
|
|
|
|
@item @t{"remote-shell"}
|
|
|
|
|
|
2021-08-08 16:18:59 +02:00
|
|
|
|
This property tells @value{tramp} which remote shell to apply on the
|
|
|
|
|
remote host. It is used in all connection methods of
|
|
|
|
|
@file{tramp-sh.el}. The default value is @t{"/bin/sh"}.
|
2019-10-18 19:44:49 +02:00
|
|
|
|
|
|
|
|
|
@item @t{"remote-shell-login"}
|
|
|
|
|
|
|
|
|
|
A property to be used in conjunction with @t{"remote-shell"}. It
|
|
|
|
|
specifies, which shell argument triggers a login shell. Its default
|
|
|
|
|
value is @t{"-l"}, but some shells, like @command{ksh}, prefer
|
|
|
|
|
@t{"-"}.
|
|
|
|
|
|
|
|
|
|
@item @t{"session-timeout"}
|
|
|
|
|
|
|
|
|
|
All @file{tramp-sh.el} based methods accept the property
|
|
|
|
|
@t{"session-timeout"}. This is the time (in seconds) after a
|
|
|
|
|
connection is disabled for security reasons, and must be
|
|
|
|
|
reestablished. A value of @code{nil} disables this feature. Most of
|
2024-05-11 10:03:45 +02:00
|
|
|
|
the methods do not set this property except the @option{sudo},
|
|
|
|
|
@option{doas} and @option{run0} methods, which use predefined values.
|
2019-10-18 19:44:49 +02:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @t{"~"}@*
|
|
|
|
|
@t{"~user"}
|
|
|
|
|
|
|
|
|
|
This is the home directory on the remote host. Setting this
|
|
|
|
|
connection property helps especially for methods which cannot expand
|
|
|
|
|
to a remote home directory, like @option{adb}, @option{rclone} and
|
|
|
|
|
@option{sshfs}. @ref{Home directories} for an example.
|
|
|
|
|
|
2020-06-16 12:34:00 +02:00
|
|
|
|
@item @t{"tmpdir"}
|
|
|
|
|
|
|
|
|
|
The temporary directory on the remote host. If not specified, the
|
|
|
|
|
default value is @t{"/data/local/tmp"} for the @option{adb} method,
|
|
|
|
|
@t{"/C$/Temp"} for the @option{smb} method, and @t{"/tmp"} otherwise.
|
2023-07-05 16:19:23 +02:00
|
|
|
|
@ref{Temporary directory}.
|
2020-06-16 12:34:00 +02:00
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@item @t{"posix"}
|
|
|
|
|
|
|
|
|
|
Connections using the @option{smb} method check, whether the remote
|
|
|
|
|
host supports posix commands. If the remote host runs Samba, it
|
|
|
|
|
confirms this capability. However, some very old Samba versions have
|
|
|
|
|
errors in their implementation. In order to suppress the posix
|
2021-02-23 14:21:26 +01:00
|
|
|
|
commands for those hosts, the property @t{"posix"} should be set to
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@code{nil}.
|
|
|
|
|
|
|
|
|
|
The default value of this property is @code{t} (not specified in
|
|
|
|
|
@code{tramp-methods}). If the remote host runs native MS Windows,
|
2021-05-09 15:37:37 +02:00
|
|
|
|
this property has no effect.
|
2019-10-18 19:44:49 +02:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@item @t{"mount-point"}
|
|
|
|
|
|
|
|
|
|
The directory file name an @acronym{FUSE}-based file system is mounted
|
|
|
|
|
on. The default value of this property is
|
2023-07-05 16:19:23 +02:00
|
|
|
|
@t{"<TMP>/tramp.method.user@@host#port"} (not specified in
|
|
|
|
|
@code{tramp-methods}). @ref{Temporary directory}.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@item @t{"mount-args"}@*
|
|
|
|
|
@t{"copyto-args"}@*
|
2021-02-17 18:04:35 +01:00
|
|
|
|
@t{"moveto-args"}@*
|
|
|
|
|
@t{"about-args"}
|
2019-10-18 19:44:49 +02:00
|
|
|
|
|
|
|
|
|
These properties keep optional flags to the different @option{rclone}
|
2021-02-17 18:04:35 +01:00
|
|
|
|
operations. See their default values in @code{tramp-methods} if you
|
|
|
|
|
want to change their values.
|
2019-10-18 19:44:49 +02:00
|
|
|
|
@end itemize
|
2013-06-19 15:21:15 +02:00
|
|
|
|
|
|
|
|
|
|
2015-07-21 14:59:18 +02:00
|
|
|
|
@node Remote programs
|
2014-01-12 16:19:07 +01:00
|
|
|
|
@section How @value{tramp} finds and uses programs on the remote host
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} requires access to and rights to several commands on
|
|
|
|
|
remote hosts: @command{ls}, @command{test}, @command{find} and
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@command{cat}.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Besides there are other required programs for @ref{Inline methods} and
|
|
|
|
|
@ref{External methods} of connection.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To improve performance and accuracy of remote file access,
|
|
|
|
|
@value{tramp} uses @command{perl} (or @command{perl5}) and
|
|
|
|
|
@command{grep} when available.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@defopt tramp-remote-path
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-path} specifies which remote directory paths
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} can search for @ref{Remote programs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@vindex tramp-default-remote-path
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} uses standard defaults, such as @file{/bin} and
|
|
|
|
|
@file{/usr/bin}, which are reasonable for most hosts. To accommodate
|
|
|
|
|
differences in hosts and paths, for example, @file{/bin:/usr/bin} on
|
|
|
|
|
Debian GNU/Linux or
|
2020-08-05 17:36:50 -07:00
|
|
|
|
@file{/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/developerstudio12.6/bin} on
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Solaris, @value{tramp} queries the remote host with @command{getconf
|
|
|
|
|
PATH} and updates the symbol @code{tramp-default-remote-path}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For instances where hosts keep obscure locations for paths for
|
|
|
|
|
security reasons, manually add such paths to local @file{.emacs} as
|
|
|
|
|
shown below for @value{tramp} to use when connecting.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(add-to-list 'tramp-remote-path "/usr/local/perl/bin")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@vindex tramp-own-remote-path
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Another way to find the remote path is to use the path assigned to the
|
|
|
|
|
remote user by the remote host. @value{tramp} does not normally retain
|
2016-07-10 17:03:48 +02:00
|
|
|
|
this remote path after login. However, @code{tramp-own-remote-path}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
preserves the path value, which can be used to update
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-path}.
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
|
|
|
|
|
@end lisp
|
2016-07-10 17:03:48 +02:00
|
|
|
|
|
|
|
|
|
@strong{Note} that this works only if your remote @command{/bin/sh}
|
|
|
|
|
shell supports the login argument @samp{-l}.
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@end defopt
|
|
|
|
|
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
@code{tramp-remote-path} can also be set per host via connection-local
|
2019-03-27 16:28:08 +01:00
|
|
|
|
@ifinfo
|
|
|
|
|
variables, @xref{Connection Variables, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
variables.
|
|
|
|
|
@end ifnotinfo
|
2024-11-13 17:10:57 +01:00
|
|
|
|
You can define your own search directories like this:
|
2019-03-27 16:28:08 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
2024-06-18 14:40:20 +02:00
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'remote-path-with-bin
|
|
|
|
|
'((tramp-remote-path . ("~/bin" tramp-default-remote-path))))
|
2019-03-27 16:28:08 +01:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
2024-06-18 14:40:20 +02:00
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'remote-path-with-apply-pub-bin
|
|
|
|
|
'((tramp-remote-path . ("/appli/pub/bin" tramp-default-remote-path))))
|
2019-03-27 16:28:08 +01:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'(:application tramp :machine "randomhost") 'remote-path-with-bin)
|
2019-03-27 16:28:08 +01:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'(:application tramp :user "anotheruser" :machine "anotherhost")
|
|
|
|
|
'remote-path-with-apply-pub-bin)
|
2019-03-27 16:28:08 +01:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When remote search paths are changed, local @value{tramp} caches must
|
2018-06-20 12:13:56 +02:00
|
|
|
|
be recomputed. To force @value{tramp} to recompute afresh, call
|
|
|
|
|
@kbd{M-x tramp-cleanup-this-connection @key{RET}} or friends
|
|
|
|
|
(@pxref{Cleanup remote connections}).
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Remote shell setup
|
|
|
|
|
@section Remote shell setup hints
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
|
|
|
|
|
2019-10-09 13:56:58 +02:00
|
|
|
|
@subsection Changing the default remote or local shell
|
2019-09-18 14:11:55 +02:00
|
|
|
|
@cindex zsh setup
|
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
By default, @value{tramp} uses the command @command{/bin/sh} for
|
2019-09-20 11:27:49 +02:00
|
|
|
|
starting a shell on the remote host. This can be changed by setting
|
2024-05-13 10:31:13 +02:00
|
|
|
|
the connection property @t{"remote-shell"}; @pxref{Predefined
|
2019-09-20 11:27:49 +02:00
|
|
|
|
connection information}. If you want, for example, use
|
|
|
|
|
@command{/usr/bin/zsh} on a remote host, you might apply
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(add-to-list 'tramp-connection-properties
|
2021-02-26 18:37:14 +01:00
|
|
|
|
(list (regexp-quote "@trampfn{sshx,user@@host,}")
|
2019-09-18 14:11:55 +02:00
|
|
|
|
"remote-shell" "/usr/bin/zsh"))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2023-09-17 16:49:21 +02:00
|
|
|
|
This works only for connection methods which allow overriding the
|
2019-09-20 11:27:49 +02:00
|
|
|
|
remote login shell, like @option{sshx} or @option{plink}. See
|
|
|
|
|
@ref{Inline methods} and @ref{External methods} for connection methods
|
|
|
|
|
which support this.
|
|
|
|
|
|
2019-10-09 13:56:58 +02:00
|
|
|
|
@vindex tramp-sh-extra-args
|
2019-09-18 14:11:55 +02:00
|
|
|
|
This approach has also the advantage, that settings in
|
2019-10-09 13:56:58 +02:00
|
|
|
|
@code{tramp-sh-extra-args} will be applied. For @command{zsh}, the
|
|
|
|
|
trouble with the shell prompt due to set zle options will be avoided.
|
2021-03-29 13:52:01 +02:00
|
|
|
|
For @command{bash}, loading @file{~/.editrc} or @file{~/.inputrc} is
|
|
|
|
|
suppressed.
|
2019-10-09 13:56:58 +02:00
|
|
|
|
|
2021-08-08 16:18:59 +02:00
|
|
|
|
Similar problems can happen with the local shell @value{tramp} uses to
|
|
|
|
|
create a process. By default, it uses the command @command{/bin/sh}
|
|
|
|
|
for this, which could also be a link to another shell. In order to
|
2019-10-09 13:56:58 +02:00
|
|
|
|
overwrite this, you might apply
|
|
|
|
|
|
|
|
|
|
@vindex tramp-encoding-shell
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-encoding-shell "/usr/bin/zsh")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
This uses also the settings in @code{tramp-sh-extra-args}.
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
Some Tramp adaptions, mainly direct async processes
* doc/misc/tramp.texi (Firewalls, Remote processes)
(Frequently Asked Questions): Add @vindex.
(Predefined connection information): Precise precondition or direct
async processes.
(Remote shell setup): Ban ssh RemoteCommand option.
(Frequently Asked Questions): Adapt quoting.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1-pre".
* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-direct-async'
parameter.
(tramp-adb-handle-make-process): Adapt docstring.
* lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>:
Add `tramp-direct-async' parameter.
(tramp-sh-handle-insert-directory): Simplify merkers.
(tramp-sh-handle-make-process): Adapt docstring.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-debug-message): Suppress lockfiles.
(tramp-test-message): New defun.
(tramp-direct-async-process-p): Check also for `tramp-direct-async'.
(tramp-handle-make-process): Do not check for `tramp-direct-async-args'.
* test/lisp/net/tramp-tests.el (all): Replace `string-match' by
`string-match-p'.
(dired-copy-dereference): Declare.
(tramp-test-temporary-file-directory):
Remove `tramp-direct-async-args` for mock method.
(tramp-test15-copy-directory, tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls, tramp-test41-utf8)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Skip for tramp-rclone.el.
(tramp--test--deftest-direct-async-process): Do not skip for mock
method.
(tramp-test32-shell-command): Adapt test for direct async processes.
(tramp-test36-vc-registered, tramp--test-hpux-p, tramp--test-ksh-p):
Use `tramp-test-vec'.
2021-01-15 11:32:12 +01:00
|
|
|
|
@vindex RemoteCommand@r{, ssh option}
|
|
|
|
|
@strong{Note}: If you use an @option{ssh}-based method for connection,
|
|
|
|
|
do @emph{not} set the @option{RemoteCommand} option in your
|
2023-03-29 10:55:18 +02:00
|
|
|
|
@command{ssh} configuration to something like @command{screen}. If
|
|
|
|
|
used, @option{RemoteCommand} must open an interactive shell on the
|
|
|
|
|
remote host. On the other hand, some @option{ssh}-based methods, like
|
|
|
|
|
@option{sshx} or @option{scpx}, silently overwrite a
|
|
|
|
|
@option{RemoteCommand} option of the configuration file.
|
Some Tramp adaptions, mainly direct async processes
* doc/misc/tramp.texi (Firewalls, Remote processes)
(Frequently Asked Questions): Add @vindex.
(Predefined connection information): Precise precondition or direct
async processes.
(Remote shell setup): Ban ssh RemoteCommand option.
(Frequently Asked Questions): Adapt quoting.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1-pre".
* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-direct-async'
parameter.
(tramp-adb-handle-make-process): Adapt docstring.
* lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>:
Add `tramp-direct-async' parameter.
(tramp-sh-handle-insert-directory): Simplify merkers.
(tramp-sh-handle-make-process): Adapt docstring.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-debug-message): Suppress lockfiles.
(tramp-test-message): New defun.
(tramp-direct-async-process-p): Check also for `tramp-direct-async'.
(tramp-handle-make-process): Do not check for `tramp-direct-async-args'.
* test/lisp/net/tramp-tests.el (all): Replace `string-match' by
`string-match-p'.
(dired-copy-dereference): Declare.
(tramp-test-temporary-file-directory):
Remove `tramp-direct-async-args` for mock method.
(tramp-test15-copy-directory, tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls, tramp-test41-utf8)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Skip for tramp-rclone.el.
(tramp--test--deftest-direct-async-process): Do not skip for mock
method.
(tramp-test32-shell-command): Adapt test for direct async processes.
(tramp-test36-vc-registered, tramp--test-hpux-p, tramp--test-ksh-p):
Use `tramp-test-vec'.
2021-01-15 11:32:12 +01:00
|
|
|
|
|
2019-09-18 14:11:55 +02:00
|
|
|
|
|
|
|
|
|
@subsection Other remote shell setup hints
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex remote shell setup
|
|
|
|
|
@cindex @file{.profile} file
|
|
|
|
|
@cindex @file{.login} file
|
|
|
|
|
@cindex shell init files
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} checks for the availability of standard programs in the
|
|
|
|
|
usual locations. Common tactics include successively trying
|
|
|
|
|
@command{test -e}, @command{/usr/bin/test -e}, and @command{/bin/test
|
|
|
|
|
-e}. @command{ls -d} is another approach. But these approaches do not
|
|
|
|
|
help with these new login patterns.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When @value{tramp} encounters two-factor logins or additional challenge
|
|
|
|
|
questions, such as entering birth date or security code or passphrase,
|
|
|
|
|
@value{tramp} needs a few more configuration steps to accommodate
|
|
|
|
|
them.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The difference between a password prompt and a passphrase prompt is
|
|
|
|
|
that the password for completing the login while the passphrase is
|
|
|
|
|
for authorizing access to local authentication information, such as
|
|
|
|
|
the ssh key.
|
|
|
|
|
|
|
|
|
|
There is no one configuration to accommodate all the variations in
|
|
|
|
|
login security, especially not the exotic ones. However, @value{tramp}
|
|
|
|
|
provides a few tweaks to address the most common ones.
|
|
|
|
|
|
|
|
|
|
@table @asis
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@vindex tramp-shell-prompt-pattern
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{tramp-shell-prompt-pattern}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-shell-prompt-pattern} is for remote login shell prompt,
|
2015-12-29 15:33:54 +01:00
|
|
|
|
which may not be the same as the local login shell prompt,
|
|
|
|
|
@code{shell-prompt-pattern}. Since most hosts use identical prompts,
|
|
|
|
|
@value{tramp} sets a similar default value for both prompts.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@vindex tramp-password-prompt-regexp
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{tramp-password-prompt-regexp}
|
2023-09-16 09:59:31 +02:00
|
|
|
|
@vindex tramp-otp-password-prompt-regexp
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{tramp-otp-password-prompt-regexp}
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@vindex tramp-wrong-passwd-regexp
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{tramp-wrong-passwd-regexp}
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@value{tramp} uses @code{tramp-password-prompt-regexp} to
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
distinguish between prompts for passwords and prompts for passphrases.
|
2018-05-29 12:42:17 +02:00
|
|
|
|
By default, @code{tramp-password-prompt-regexp} handles the
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
detection in English language environments. See a localization
|
|
|
|
|
example below:
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable
|
|
|
|
|
'tramp-password-prompt-regexp
|
2024-06-18 14:40:20 +02:00
|
|
|
|
(concat
|
|
|
|
|
"^.*"
|
|
|
|
|
(regexp-opt
|
|
|
|
|
'("passphrase" "Passphrase"
|
|
|
|
|
;; English
|
|
|
|
|
"password" "Password"
|
|
|
|
|
;; Deutsch
|
|
|
|
|
"passwort" "Passwort"
|
|
|
|
|
;; Français
|
|
|
|
|
"mot de passe" "Mot de passe")
|
|
|
|
|
t)
|
|
|
|
|
".*:\0? *"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2020-09-09 19:29:18 +02:00
|
|
|
|
@vindex password-word-equivalents
|
2022-07-13 13:00:31 +02:00
|
|
|
|
This user option is, by default, initialized from
|
2020-09-09 19:29:18 +02:00
|
|
|
|
@code{password-word-equivalents} when @value{tramp} is loaded, and it
|
2020-09-24 10:17:03 +02:00
|
|
|
|
is usually more convenient to add new passphrases to that user option
|
|
|
|
|
instead of altering this user option.
|
2020-09-09 19:29:18 +02:00
|
|
|
|
|
2023-09-16 09:59:31 +02:00
|
|
|
|
The user option @code{tramp-otp-password-prompt-regexp} has a similar
|
|
|
|
|
purpose, but for one-time passwords. Those passwords are not cached
|
|
|
|
|
by @value{tramp} for reuse.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Similar localization may be necessary for handling wrong password
|
2018-05-29 12:42:17 +02:00
|
|
|
|
prompts, for which @value{tramp} uses @code{tramp-wrong-passwd-regexp}.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex tramp-terminal-type
|
|
|
|
|
@vindex TERM@r{, environment variable}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{tramp-terminal-type}
|
2018-05-29 12:28:01 +02:00
|
|
|
|
|
|
|
|
|
@value{tramp} uses the user option @code{tramp-terminal-type} to set
|
|
|
|
|
the remote environment variable @env{TERM} for the shells it runs.
|
2024-11-13 17:10:57 +01:00
|
|
|
|
By default, it is @t{"dumb"}, but this can be changed. A dumb
|
2018-05-29 12:28:01 +02:00
|
|
|
|
terminal is best suited to run the background sessions of
|
|
|
|
|
@value{tramp}. However, running interactive remote shells might
|
2024-11-13 17:10:57 +01:00
|
|
|
|
require a different setting. This can be achieved by tweaking the
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@env{TERM} environment variable in @code{process-environment}.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(let ((process-environment
|
|
|
|
|
(cons "TERM=xterm-256color" process-environment)))
|
|
|
|
|
(shell))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@vindex TERM@r{, environment variable}
|
|
|
|
|
@vindex INSIDE_EMACS@r{, environment variable}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item Determining a @value{tramp} session
|
2018-05-29 12:28:01 +02:00
|
|
|
|
|
|
|
|
|
Sometimes, it is needed to identify whether a shell runs under
|
|
|
|
|
@value{tramp} control. The setting of environment variable @env{TERM}
|
|
|
|
|
will help:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
if test "$TERM" = "dumb"; then
|
|
|
|
|
...
|
|
|
|
|
fi
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
Another possibility is to check the environment variable
|
|
|
|
|
@env{INSIDE_EMACS}. Like for all subprocesses of Emacs, this is set
|
2021-02-21 10:24:56 +01:00
|
|
|
|
to the version of the parent Emacs
|
|
|
|
|
@ifinfo
|
|
|
|
|
process, @xref{Interactive Shell, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
process.
|
|
|
|
|
@end ifnotinfo
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@value{tramp} adds its own package version to this string, which can
|
2021-02-21 10:24:56 +01:00
|
|
|
|
be used for further tests in an inferior shell. The string of that
|
|
|
|
|
environment variable looks always like
|
2018-05-29 12:28:01 +02:00
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
echo $INSIDE_EMACS
|
2020-11-30 13:44:44 +01:00
|
|
|
|
@result{} 27.2,tramp:2.4.5
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@end group
|
|
|
|
|
@end example
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex unix command @command{tset}
|
|
|
|
|
@cindex @command{tset} unix command
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @command{tset} and other questions
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To suppress inappropriate prompts for terminal type, @value{tramp}
|
2018-05-29 12:28:01 +02:00
|
|
|
|
sets the @env{TERM} environment variable before the remote login
|
2018-05-29 12:42:17 +02:00
|
|
|
|
process begins via the user option @code{tramp-terminal-type} (see
|
2018-05-29 12:28:01 +02:00
|
|
|
|
above). This will silence common @command{tset} related prompts.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}'s strategy for handling such prompts (commonly triggered
|
|
|
|
|
from login scripts on remote hosts) is to set the environment
|
|
|
|
|
variables so that no prompts interrupt the shell initialization
|
|
|
|
|
process.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@vindex tramp-actions-before-shell
|
2015-12-29 15:33:54 +01:00
|
|
|
|
An alternative approach is to configure @value{tramp} with strings
|
|
|
|
|
that can identify such questions using
|
|
|
|
|
@code{tramp-actions-before-shell}. Example:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(defconst my-tramp-prompt-regexp
|
2021-01-19 18:45:55 +01:00
|
|
|
|
"Enter the birth date of your mother:\\s-*"
|
2007-09-06 05:07:05 +00:00
|
|
|
|
"Regular expression matching my login prompt question.")
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(defun my-tramp-action (proc vec)
|
|
|
|
|
"Enter \"19000101\" in order to give a correct answer."
|
|
|
|
|
(save-window-excursion
|
|
|
|
|
(with-current-buffer (tramp-get-connection-buffer vec)
|
|
|
|
|
(tramp-message vec 6 "\n%s" (buffer-string))
|
|
|
|
|
(tramp-send-string vec "19000101"))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-actions-before-shell
|
|
|
|
|
'(my-tramp-prompt-regexp my-tramp-action))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2021-01-19 18:45:55 +01:00
|
|
|
|
The regular expressions used in @code{tramp-actions-before-shell} must
|
|
|
|
|
match the end of the connection buffer. Due to performance reasons,
|
|
|
|
|
this search starts at the end of the buffer, and it is limited to 256
|
|
|
|
|
characters backwards.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item Conflicting names for users and variables in @file{.profile}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When a user name is the same as a variable name in a local file, such
|
|
|
|
|
as @file{.profile}, then @value{tramp} may send incorrect values for
|
|
|
|
|
environment variables. To avoid incorrect values, change the local
|
|
|
|
|
variable name to something different from the user name. For example,
|
|
|
|
|
if the user name is @env{FRUMPLE}, then change the variable name to
|
|
|
|
|
@env{FRUMPLE_DIR}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item Non-Bourne commands in @file{.profile}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When the remote host's @file{.profile} is also used for shells other
|
|
|
|
|
than Bourne shell, then some incompatible syntaxes for commands in
|
|
|
|
|
@file{.profile} may trigger errors in Bourne shell on the host and may
|
|
|
|
|
not complete client's @value{tramp} connections.
|
|
|
|
|
|
|
|
|
|
One example of a Bourne shell incompatible syntax in @file{.profile}:
|
|
|
|
|
using @command{export FOO=bar} instead of @command{FOO=bar; export
|
|
|
|
|
FOO}. After remote login, @value{tramp} will trigger an error during
|
|
|
|
|
its execution of @command{/bin/sh} on the remote host because Bourne
|
|
|
|
|
shell does not recognize the export command as entered in
|
|
|
|
|
@file{.profile}.
|
|
|
|
|
|
2024-05-12 19:40:08 +02:00
|
|
|
|
Likewise, (@samp{~}) character in paths will cause errors because
|
|
|
|
|
Bourne shell does not do (@samp{~}) character expansions.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
One approach to avoiding these incompatibilities is to make all
|
|
|
|
|
commands in @file{~/.shrc} and @file{~/.profile} Bourne shell
|
|
|
|
|
compatible so @value{tramp} can complete connections to that remote.
|
|
|
|
|
To accommodate using non-Bourne shells on that remote, use other
|
|
|
|
|
shell-specific config files. For example, bash can use
|
|
|
|
|
@file{~/.bash_profile} and ignore @file{.profile}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2010-11-04 14:30:20 +01:00
|
|
|
|
@item Interactive shell prompt
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex INSIDE_EMACS@r{, environment variable}
|
|
|
|
|
@vindex SHELLNAME@r{, environment variable}
|
|
|
|
|
@vindex ESHELL@r{, environment variable}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} redefines the remote shell prompt internally for robust
|
|
|
|
|
parsing. This redefinition affects the looks of a prompt in an
|
2018-02-14 09:28:33 +01:00
|
|
|
|
interactive remote shell through commands, such as @kbd{M-x shell
|
|
|
|
|
@key{RET}}. Such prompts, however, can be reset to something more
|
2018-10-01 14:33:51 +02:00
|
|
|
|
readable and recognizable using these environment variables.
|
2010-11-04 14:30:20 +01:00
|
|
|
|
|
2018-10-01 14:33:51 +02:00
|
|
|
|
@value{tramp} sets the @env{INSIDE_EMACS} environment variable in the
|
|
|
|
|
startup script file @file{~/.emacs_SHELLNAME}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@env{SHELLNAME} is @code{bash} or equivalent shell names. Change it by
|
|
|
|
|
setting the environment variable @env{ESHELL} in the @file{.emacs} as
|
|
|
|
|
follows:
|
2010-11-04 14:30:20 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(setenv "ESHELL" "bash")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Then re-set the prompt string in @file{~/.emacs_SHELLNAME} as follows:
|
2010-11-04 14:30:20 +01:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-07-10 15:36:23 +02:00
|
|
|
|
# Reset the prompt for remote @value{tramp} shells.
|
2010-11-04 14:30:20 +01:00
|
|
|
|
if [ "$@{INSIDE_EMACS/*tramp*/tramp@}" == "tramp" ] ; then
|
|
|
|
|
PS1="[\u@@\h \w]$ "
|
|
|
|
|
fi
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2010-11-04 14:30:20 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@xref{Interactive Shell, , , emacs}.
|
2010-11-04 14:30:20 +01:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex unix command @command{nc}
|
|
|
|
|
@cindex @command{nc} unix command
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @command{busybox} / @command{nc}
|
2014-08-07 11:15:44 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}'s @option{nc} method uses the @command{nc} command to
|
|
|
|
|
install and execute a listener as follows (see @code{tramp-methods}):
|
2014-08-07 11:15:44 +02:00
|
|
|
|
|
|
|
|
|
@example
|
2017-10-11 10:57:29 +02:00
|
|
|
|
$ nc -l -p 42
|
2014-08-07 11:15:44 +02:00
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The above command-line syntax has changed with @command{busybox}
|
2016-07-10 17:03:48 +02:00
|
|
|
|
versions. If @command{nc} refuses the @samp{-p} parameter, then
|
2015-12-29 15:33:54 +01:00
|
|
|
|
overwrite as follows:
|
2014-08-07 11:15:44 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2020-08-04 14:19:51 +02:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
|
|
|
|
`(,(regexp-quote "192.168.0.1")
|
|
|
|
|
"remote-copy-args" (("-l") ("%r"))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2014-08-07 11:15:44 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
where @samp{192.168.0.1} is the remote host IP address
|
2014-08-07 11:15:44 +02:00
|
|
|
|
(@pxref{Predefined connection information}).
|
2015-03-04 12:35:36 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end table
|
|
|
|
|
|
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@node Ssh setup
|
|
|
|
|
@section Ssh setup hints
|
|
|
|
|
|
2022-04-13 16:55:09 +02:00
|
|
|
|
The most common @value{tramp} connection family is based on either
|
|
|
|
|
@command{ssh} or @command{scp} of OpenSSH, or @command{plink} or
|
|
|
|
|
@command{pscp} of PuTTY on MS Windows. In the following, some
|
|
|
|
|
configuration recommendations are given.
|
|
|
|
|
|
2022-04-13 16:40:32 +02:00
|
|
|
|
|
|
|
|
|
@subsection Using ssh config include for host name completion
|
|
|
|
|
|
|
|
|
|
@vindex Include@r{, ssh option}
|
|
|
|
|
@findex tramp-set-completion-function
|
|
|
|
|
@findex tramp-get-completion-function
|
|
|
|
|
OpenSSH configuration files can use an @option{Include} option for
|
|
|
|
|
further configuration files. Default @value{tramp} host name
|
|
|
|
|
completion ignores this option. However, you can configure this
|
|
|
|
|
yourself.
|
|
|
|
|
|
|
|
|
|
Given, your @file{~/.ssh/config} file contains the following option:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
Include ~/.ssh/conf.d/*
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
The following code snippet in your @file{.emacs} uses all files in
|
|
|
|
|
that directory for host name completion:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(tramp-set-completion-function
|
|
|
|
|
"ssh" (append (tramp-get-completion-function "ssh")
|
|
|
|
|
(mapcar (lambda (file) `(tramp-parse-sconfig ,file))
|
|
|
|
|
(directory-files
|
|
|
|
|
"~/.ssh/conf.d/"
|
|
|
|
|
'full directory-files-no-dot-files-regexp))))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
This code snippet does it for the @option{ssh} method. If you replace
|
|
|
|
|
@t{"ssh"} by @t{"scp"}, it does it also for that method (or any other
|
|
|
|
|
method you like).
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@subsection Detection of session hangouts
|
|
|
|
|
|
|
|
|
|
@vindex ServerAliveInterval@r{, ssh option}
|
|
|
|
|
@vindex ServerAliveCountMax@r{, ssh option}
|
|
|
|
|
@command{ssh} sessions on the local host hang when the network is
|
|
|
|
|
down. @value{tramp} cannot safely detect such hangs. OpenSSH can be
|
|
|
|
|
configured to kill such hangs with the following settings in
|
|
|
|
|
@file{~/.ssh/config}:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
Host *
|
|
|
|
|
ServerAliveInterval 5
|
|
|
|
|
ServerAliveCountMax 2
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
The corresponding PuTTY configuration is in the @option{Connection}
|
|
|
|
|
entry, @option{Seconds between keepalives} option. Set this to 5.
|
2024-11-13 17:10:57 +01:00
|
|
|
|
PuTTY does not have a configuration option equivalent to OpenSSH's
|
|
|
|
|
@option{ServerAliveCountMax}.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
|
2023-03-06 13:35:49 +01:00
|
|
|
|
@anchor{Using ssh connection sharing}
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@subsection Using ssh connection sharing
|
|
|
|
|
|
|
|
|
|
@vindex ControlPath@r{, ssh option}
|
|
|
|
|
@vindex ControlPersist@r{, ssh option}
|
|
|
|
|
@value{tramp} uses the @option{ControlMaster=auto} OpenSSH option by
|
|
|
|
|
default, if possible. However, it overwrites @option{ControlPath}
|
|
|
|
|
settings when initiating @command{ssh} sessions. @value{tramp} does
|
|
|
|
|
this to fend off a stall if a master session opened outside the Emacs
|
|
|
|
|
session is no longer open. That is why @value{tramp} prompts for the
|
|
|
|
|
password again even if there is an @command{ssh} already open.
|
|
|
|
|
|
|
|
|
|
@vindex tramp-ssh-controlmaster-options
|
|
|
|
|
Some OpenSSH versions support a @option{ControlPersist} option, which
|
|
|
|
|
allows you to set the @option{ControlPath} provided the variable
|
|
|
|
|
@code{tramp-ssh-controlmaster-options} is customized as follows:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(customize-set-variable
|
|
|
|
|
'tramp-ssh-controlmaster-options
|
|
|
|
|
(concat
|
2024-06-18 14:40:20 +02:00
|
|
|
|
"-o ControlPath=/tmp/ssh-ControlPath-%%r@@%%h:%%p "
|
|
|
|
|
"-o ControlMaster=auto -o ControlPersist=yes"))
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
Note how @samp{%r}, @samp{%h} and @samp{%p} must be encoded as
|
|
|
|
|
@samp{%%r}, @samp{%%h} and @samp{%%p}.
|
|
|
|
|
|
2023-03-19 13:11:06 +01:00
|
|
|
|
@vindex tramp-use-connection-share
|
2023-03-06 13:35:49 +01:00
|
|
|
|
Using a predefined string in @code{tramp-ssh-controlmaster-options},
|
|
|
|
|
or puzzling an own string, happens only when user option
|
2023-03-19 13:11:06 +01:00
|
|
|
|
@code{tramp-use-connection-share} is set to @code{t}. If the
|
2023-03-06 13:35:49 +01:00
|
|
|
|
@file{~/.ssh/config} file is configured appropriately for the above
|
|
|
|
|
behavior, then any changes to @command{ssh} can be suppressed with
|
|
|
|
|
this @code{nil} setting:
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
2023-03-19 13:11:06 +01:00
|
|
|
|
(customize-set-variable 'tramp-use-connection-share nil)
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2023-03-06 13:35:49 +01:00
|
|
|
|
Sometimes, it is not possible to use OpenSSH's @option{ControlMaster}
|
|
|
|
|
option for remote processes. This could result in concurrent access
|
|
|
|
|
to the OpenSSH socket when reading data by different processes, which
|
|
|
|
|
could block Emacs. In this case, setting
|
2023-03-19 13:11:06 +01:00
|
|
|
|
@code{tramp-use-connection-share} to @code{suppress} disables shared
|
|
|
|
|
access. It is not needed to set this user option permanently to
|
|
|
|
|
@code{suppress}, binding the user option prior calling
|
2023-03-06 13:35:49 +01:00
|
|
|
|
@code{make-process} is sufficient. @value{tramp} does this for
|
|
|
|
|
esxample for compilation processes on its own.
|
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@vindex ProxyCommand@r{, ssh option}
|
|
|
|
|
@vindex ProxyJump@r{, ssh option}
|
2023-03-19 13:11:06 +01:00
|
|
|
|
@code{tramp-use-connection-share} should also be set to @code{nil} or
|
|
|
|
|
@code{suppress} if you use the @option{ProxyCommand} or
|
2023-03-06 13:35:49 +01:00
|
|
|
|
@option{ProxyJump} options in your @command{ssh} configuration.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
In order to use the @option{ControlMaster} option, @value{tramp} must
|
|
|
|
|
check whether the @command{ssh} client supports this option. This is
|
|
|
|
|
only possible on the local host, for the first hop. @value{tramp}
|
|
|
|
|
does not use this option on proxy hosts, therefore.
|
|
|
|
|
|
|
|
|
|
If you want to use this option also for the other hops, you must
|
|
|
|
|
configure @file{~/.ssh/config} on the proxy host:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
Host *
|
|
|
|
|
ControlMaster auto
|
|
|
|
|
ControlPath tramp.%C
|
|
|
|
|
ControlPersist no
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
Check the @samp{ssh_config(5)} man page whether these options are
|
|
|
|
|
supported on your proxy host.
|
|
|
|
|
|
2023-03-19 13:11:06 +01:00
|
|
|
|
On MS Windows, @code{tramp-use-connection-share} is set to @code{nil}
|
|
|
|
|
by default, because the MS Windows and MSYS2 implementations of
|
|
|
|
|
@command{OpenSSH} do not support this option properly.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
2023-03-19 13:11:06 +01:00
|
|
|
|
In PuTTY, you can achieve connection sharing in the
|
|
|
|
|
@option{Connection/SSH} entry, enabling the @option{Share SSH
|
|
|
|
|
connections if possible} option. @code{tramp-use-connection-share}
|
|
|
|
|
must be set to @code{nil}. If @code{tramp-use-connection-share} is
|
|
|
|
|
set to @code{t} or @code{suppress}, @command{plink} is called with the
|
|
|
|
|
option @option{-share} or @option{-noshare}, respectively.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@subsection Configure direct copying between two remote servers
|
|
|
|
|
|
|
|
|
|
@vindex tramp-use-scp-direct-remote-copying
|
|
|
|
|
@value{tramp} uses a temporary local copy when copying two files
|
|
|
|
|
between different remote hosts via external methods. This behavior is
|
|
|
|
|
due to authentication problems @value{tramp} cannot handle
|
|
|
|
|
sufficiently. However, for @option{scp} connections this can be
|
|
|
|
|
changed. When a file shall be copied between two different remote
|
|
|
|
|
hosts @samp{source} and @samp{target}, and
|
|
|
|
|
|
|
|
|
|
@itemize @minus
|
|
|
|
|
@item
|
|
|
|
|
Variable @code{tramp-use-scp-direct-remote-copying} is non-@code{nil},
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
Remote host @samp{source} doesn't use the @option{RemoteCommand}
|
|
|
|
|
option in @file{~/.ssh/config},
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
Remote host @samp{target} shows the same host key when seen from the
|
|
|
|
|
local host and from host @samp{source}, and
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
@command{scp} running on host @samp{source} can authenticate to host
|
|
|
|
|
@samp{target} without requiring a password,
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
|
@value{tramp} applies direct remote copying between hosts
|
|
|
|
|
@samp{source} and @samp{target} like
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
scp -p -T -R -q -r source:/path/to/file target:/path/to/another/file
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
This protects also your local temporary directory from overrun when
|
|
|
|
|
copying large files.
|
|
|
|
|
|
|
|
|
|
If these conditions do not apply, and
|
|
|
|
|
@code{tramp-use-scp-direct-remote-copying} is non-@code{nil}, the
|
|
|
|
|
option @samp{-3} is used instead of @samp{-R}.
|
|
|
|
|
|
|
|
|
|
@c FIXME
|
|
|
|
|
When @value{tramp} uses direct remote copying, password caches are not
|
|
|
|
|
consulted.
|
|
|
|
|
|
|
|
|
|
|
2023-03-24 13:30:25 +01:00
|
|
|
|
@subsection Issues with Cygwin and MS Windows ssh
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@cindex cygwin, issues
|
2023-03-24 13:30:25 +01:00
|
|
|
|
@cindex ms Windows, issues
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
This section is incomplete. Please share your solutions.
|
|
|
|
|
|
2023-03-24 13:30:25 +01:00
|
|
|
|
@cindex ms windows and @command{ssh}
|
|
|
|
|
@cindex ms windows and @command{ssh-agent}
|
|
|
|
|
|
|
|
|
|
MS Windows' @command{ssh} does not open a remote TTY@. Use the method
|
|
|
|
|
@option{sshx} or @option{scpx} instead. Furthermore, it cannot read a
|
|
|
|
|
passphrase for ssh private keys. Use the MS @code{ssh-agent}.
|
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@cindex method @option{sshx} with cygwin
|
|
|
|
|
@cindex @option{sshx} method with cygwin
|
|
|
|
|
|
|
|
|
|
Cygwin's @command{ssh} works only with a Cygwin version of Emacs. To
|
|
|
|
|
check for compatibility: type @kbd{M-x eshell @key{RET}}, and start
|
|
|
|
|
@kbd{ssh test.host @key{RET}}. Incompatibilities trigger this
|
|
|
|
|
message:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
Pseudo-terminal will not be allocated because stdin is not a terminal.
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
Some older versions of Cygwin's @command{ssh} work with the
|
|
|
|
|
@option{sshx} access method. Consult Cygwin's FAQ at
|
|
|
|
|
@uref{https://cygwin.com/faq/} for details.
|
|
|
|
|
|
|
|
|
|
@cindex cygwin and @command{fakecygpty}
|
|
|
|
|
@cindex @command{fakecygpty} and cygwin
|
|
|
|
|
|
|
|
|
|
On @uref{https://www.emacswiki.org/emacs/SshWithNTEmacs, the Emacs
|
|
|
|
|
Wiki} it is explained how to use the helper program
|
|
|
|
|
@command{fakecygpty} to fix this problem.
|
|
|
|
|
|
|
|
|
|
@cindex method @option{scpx} with cygwin
|
|
|
|
|
@cindex @option{scpx} method with cygwin
|
|
|
|
|
|
|
|
|
|
When using the @option{scpx} access method, Emacs may call
|
|
|
|
|
@command{scp} with MS Windows file naming, such as @file{c:/foo}. But
|
|
|
|
|
the version of @command{scp} that is installed with Cygwin does not
|
|
|
|
|
know about MS Windows file naming, which causes it to incorrectly look
|
|
|
|
|
for a host named @samp{c}.
|
|
|
|
|
|
|
|
|
|
A workaround: write a wrapper script for @option{scp} to convert
|
|
|
|
|
Windows file names to Cygwin file names.
|
|
|
|
|
|
|
|
|
|
@cindex cygwin and @command{ssh-agent}
|
|
|
|
|
@cindex @env{SSH_AUTH_SOCK} and emacs on ms windows
|
|
|
|
|
@vindex SSH_AUTH_SOCK@r{, environment variable}
|
|
|
|
|
|
2023-03-24 13:30:25 +01:00
|
|
|
|
When using the cygwin @command{ssh-agent} on MS Windows for
|
|
|
|
|
password-less interaction, @option{ssh} methods depend on the
|
|
|
|
|
environment variable @env{SSH_AUTH_SOCK}. But this variable is not
|
|
|
|
|
set when Emacs is started from a Desktop shortcut and authentication
|
|
|
|
|
fails.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
2023-03-24 13:30:25 +01:00
|
|
|
|
One workaround is to use an MS Windows based SSH Agent, such as the
|
|
|
|
|
native MS @command{ssh-agent} or @command{Pageant}. The latter is
|
|
|
|
|
part of the PuTTY Suite of tools.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
|
|
|
|
|
The fallback is to start Emacs from a shell.
|
|
|
|
|
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@node FUSE setup
|
|
|
|
|
@section @acronym{FUSE} setup hints
|
|
|
|
|
|
2021-09-24 13:31:32 +02:00
|
|
|
|
The @acronym{FUSE} file systems are mounted by default at
|
2023-07-05 16:19:23 +02:00
|
|
|
|
@t{"<TMP>/tramp.method.user@@host#port"}.@footnote{@ref{Temporary
|
|
|
|
|
directory}} Method is either @t{"rclone"} or @t{"sshfs"}. The user
|
|
|
|
|
name and port number are optional. If the file system is already
|
|
|
|
|
mounted, it will be used as it is. If the mount point does not exist
|
|
|
|
|
yet, @value{tramp} creates this directory.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
|
|
|
|
The mount point can be overwritten by the connection property
|
2024-05-13 10:31:13 +02:00
|
|
|
|
@t{"mount-point"}, @pxref{Predefined connection information}.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(add-to-list 'tramp-connection-properties
|
|
|
|
|
`(,(regexp-quote "@trampfn{sshfs,user@@host,}")
|
|
|
|
|
"mount-point"
|
|
|
|
|
,(expand-file-name "sshfs.user@@host" user-emacs-directory)))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2021-10-03 18:55:35 +02:00
|
|
|
|
@vindex tramp-fuse-unmount-on-cleanup
|
|
|
|
|
The user option @code{tramp-fuse-unmount-on-cleanup}, when set to
|
|
|
|
|
non-@code{nil}, controls, whether a mount point is unmounted on
|
|
|
|
|
connection cleanup or on Emacs exiting.
|
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
|
|
|
|
@anchor{Setup of rclone method}
|
|
|
|
|
@subsection @option{rclone} setup
|
|
|
|
|
@cindex rclone setup
|
|
|
|
|
|
|
|
|
|
The default arguments of the @command{rclone} operations
|
2023-10-31 17:32:23 +01:00
|
|
|
|
@command{mount}, @command{copyto}, @command{moveto} and
|
2021-03-08 12:05:29 +01:00
|
|
|
|
@command{about} are declared in the variable @code{tramp-methods} as
|
|
|
|
|
method specific parameters. Usually, they don't need to be overwritten.
|
|
|
|
|
|
|
|
|
|
If needed, these parameters can be overwritten as connection
|
|
|
|
|
properties @t{"mount-args"}, @t{"copyto-args"}, @t{"moveto-args"} and
|
|
|
|
|
@t{"about-args"}, @xref{Predefined connection information}. All of
|
|
|
|
|
them are list of strings.
|
|
|
|
|
|
|
|
|
|
Be careful changing @t{"--dir-cache-time"}, this could delay
|
|
|
|
|
visibility of files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@anchor{Setup of sshfs method}
|
|
|
|
|
@subsection @option{sshfs} setup
|
|
|
|
|
@cindex sshfs setup
|
|
|
|
|
|
Add remote processes to Tramp sshfs method
* doc/misc/tramp.texi (FUSE setup): Method sshfs supports also
remote processes.
* lisp/net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property): Move setting of
`tramp-cache-unload-hook' out of function.
* lisp/net/tramp.el (tramp-expand-args): New defun.
(tramp-handle-make-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it.
* lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>:
Adapt `tramp-mount-args'. Add `tramp-login-args',
`tramp-direct-async', `tramp-remote-shell',
`tramp-remote-shell-login' and `tramp-remote-shell-args'.
(tramp-connection-properties): Set "direct-async-process" fir sshfs.
(tramp-sshfs-file-name-handler-alist): Add `exec-path',
`make-process', `process-file', `set-file-modes', `shell-command',
`start-file-process', `tramp-get-remote-gid',
`tramp-get-remote-uid' and `tramp-set-file-uid-gid'.
(tramp-sshfs-handle-exec-path, tramp-sshfs-handle-process-file)
(tramp-sshfs-handle-set-file-modes): New defuns.
* test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
(tramp-test28-process-file, tramp-test29-start-file-process)
(tramp-test30-make-process, tramp-test32-shell-command)
(tramp-test32-shell-command-dont-erase-buffer)
(tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
(tramp-test43-asynchronous-requests): Run also for tramp-sshfs.
(tramp--test-shell-file-name): New defun.
(tramp-test28-process-file)
(tramp-test34-explicit-shell-file-name)
(tramp-test43-asynchronous-requests): Use it.
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Remove superfluous skip.
2021-03-11 17:16:50 +01:00
|
|
|
|
The method @option{sshfs} declares the mount arguments in the variable
|
|
|
|
|
@code{tramp-methods}, passed to the @command{sshfs} command. This is
|
|
|
|
|
a list of list of strings, and can be overwritten by the connection
|
|
|
|
|
property @t{"mount-args"}, @xref{Predefined connection information}.
|
|
|
|
|
|
2021-03-12 16:09:42 +01:00
|
|
|
|
Additionally, it declares also the arguments for running remote
|
Add remote processes to Tramp sshfs method
* doc/misc/tramp.texi (FUSE setup): Method sshfs supports also
remote processes.
* lisp/net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property): Move setting of
`tramp-cache-unload-hook' out of function.
* lisp/net/tramp.el (tramp-expand-args): New defun.
(tramp-handle-make-process):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Use it.
* lisp/net/tramp-sshfs.el (tramp-methods) <sshfs>:
Adapt `tramp-mount-args'. Add `tramp-login-args',
`tramp-direct-async', `tramp-remote-shell',
`tramp-remote-shell-login' and `tramp-remote-shell-args'.
(tramp-connection-properties): Set "direct-async-process" fir sshfs.
(tramp-sshfs-file-name-handler-alist): Add `exec-path',
`make-process', `process-file', `set-file-modes', `shell-command',
`start-file-process', `tramp-get-remote-gid',
`tramp-get-remote-uid' and `tramp-set-file-uid-gid'.
(tramp-sshfs-handle-exec-path, tramp-sshfs-handle-process-file)
(tramp-sshfs-handle-set-file-modes): New defuns.
* test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
(tramp-test28-process-file, tramp-test29-start-file-process)
(tramp-test30-make-process, tramp-test32-shell-command)
(tramp-test32-shell-command-dont-erase-buffer)
(tramp-test34-explicit-shell-file-name, tramp-test35-exec-path)
(tramp-test43-asynchronous-requests): Run also for tramp-sshfs.
(tramp--test-shell-file-name): New defun.
(tramp-test28-process-file)
(tramp-test34-explicit-shell-file-name)
(tramp-test43-asynchronous-requests): Use it.
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Remove superfluous skip.
2021-03-11 17:16:50 +01:00
|
|
|
|
processes, using the @command{ssh} command. These don't need to be
|
|
|
|
|
changed.
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
2022-03-29 19:36:28 +02:00
|
|
|
|
|
2013-02-16 18:38:37 +01:00
|
|
|
|
@node Android shell setup
|
|
|
|
|
@section Android shell setup hints
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@cindex android shell setup for ssh
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2017-03-10 16:13:39 +01:00
|
|
|
|
@value{tramp} uses the @option{adb} method to access Android devices.
|
|
|
|
|
Android devices provide a restricted shell access through an USB
|
|
|
|
|
connection. The local host must have the @command{adb} program
|
2017-06-30 18:38:32 +02:00
|
|
|
|
installed. Usually, it is sufficient to open the file
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
@file{@trampfn{adb,,/}}. Then you can navigate in the file system via
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@code{dired}.
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2018-07-06 14:03:42 +02:00
|
|
|
|
Alternatively, applications such as @code{Termux} or @code{SSHDroid}
|
|
|
|
|
that run @command{sshd} process on the Android device can accept any
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@option{ssh}-based methods provided these settings are adjusted:
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@itemize
|
|
|
|
|
@item
|
2016-07-10 17:03:48 +02:00
|
|
|
|
@command{sh} must be specified for remote shell since Android devices
|
|
|
|
|
do not provide @command{/bin/sh}. @command{sh} will then invoke
|
|
|
|
|
whatever shell is installed on the device with this setting:
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2013-02-16 18:38:37 +01:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
2020-12-17 18:52:23 +01:00
|
|
|
|
(list (regexp-quote "192.168.0.26") "remote-shell" "sh"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2013-02-16 18:38:37 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
where @samp{192.168.0.26} is the Android device's IP address.
|
2013-06-19 15:21:15 +02:00
|
|
|
|
(@pxref{Predefined connection information}).
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@item
|
2022-08-15 19:35:43 +02:00
|
|
|
|
On the Android device the directory names are prefixed with an
|
|
|
|
|
application specific prefix, which is
|
|
|
|
|
@file{/data/data/com.termux/files/usr/bin} instead of @file{/usr/bin}
|
|
|
|
|
in the @code{Termux} case. You must adapt the file names in
|
|
|
|
|
@code{tramp-remote-path}, for example via connection-local
|
|
|
|
|
@ifinfo
|
|
|
|
|
settings (@pxref{Connection Variables, , , emacs}):
|
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
settings:
|
|
|
|
|
@end ifnotinfo
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2022-08-15 19:35:43 +02:00
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'tramp-connection-local-termux-profile
|
|
|
|
|
`((tramp-remote-path
|
|
|
|
|
. ,(mapcar
|
|
|
|
|
(lambda (x)
|
|
|
|
|
(if (stringp x) (concat "/data/data/com.termux/files" x) x))
|
|
|
|
|
(copy-tree tramp-remote-path)))))
|
|
|
|
|
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "192.168.0.26")
|
|
|
|
|
'tramp-connection-local-termux-profile)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2013-02-16 18:38:37 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When the Android device is not @samp{rooted}, specify a writable
|
|
|
|
|
directory for temporary files:
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
2022-08-15 19:35:43 +02:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
|
|
|
|
(list (regexp-quote "192.168.0.26")
|
|
|
|
|
"tmpdir" "/data/data/com.termux/files/home/tmp"))
|
2013-02-16 18:38:37 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@item
|
2016-01-24 11:40:26 -08:00
|
|
|
|
Open a remote connection with the command @kbd{C-x C-f
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@trampfn{ssh,192.168.0.26#2222,} @key{RET}}, where @command{sshd} is
|
|
|
|
|
listening on port @samp{2222}.
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To add a corresponding entry to the @file{~/.ssh/config} file
|
|
|
|
|
(recommended), use this:
|
2013-02-20 15:49:52 +01:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2013-02-20 15:49:52 +01:00
|
|
|
|
Host android
|
|
|
|
|
HostName 192.168.0.26
|
|
|
|
|
User root
|
|
|
|
|
Port 2222
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2013-02-20 15:49:52 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To use the host name @samp{android} instead of the IP address shown in
|
|
|
|
|
the previous example, fix the connection properties as follows:
|
2013-02-20 15:49:52 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2013-02-20 15:49:52 +01:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
2020-12-17 18:52:23 +01:00
|
|
|
|
(list (regexp-quote "android") "remote-shell" "sh"))
|
2022-08-15 19:35:43 +02:00
|
|
|
|
(add-to-list 'tramp-connection-properties
|
|
|
|
|
(list (regexp-quote "android")
|
|
|
|
|
"tmpdir" "/data/data/com.termux/files/home/tmp"))
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "android")
|
|
|
|
|
'tramp-connection-local-termux-profile)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2013-02-20 15:49:52 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2022-08-15 19:35:43 +02:00
|
|
|
|
Open a remote connection with the more concise command @kbd{C-x C-f
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@trampfn{ssh,android,} @key{RET}}.
|
2017-06-30 18:38:32 +02:00
|
|
|
|
@end itemize
|
2013-02-20 15:49:52 +01:00
|
|
|
|
|
2013-02-16 18:38:37 +01:00
|
|
|
|
|
2023-06-28 16:53:01 +02:00
|
|
|
|
@node Kubernetes setup
|
|
|
|
|
@section Kubernetes setup hints
|
|
|
|
|
|
|
|
|
|
With the @option{kubernetes} method, containers in Kubernetes pods can
|
|
|
|
|
be accessed. The host name is a pod name returned by @samp{kubectl
|
|
|
|
|
get pods}, or @samp{@var{container}.@var{pod}} if an explicit
|
|
|
|
|
container name shall be used. Otherwise, the first container in a pod
|
|
|
|
|
is used.
|
|
|
|
|
|
|
|
|
|
Sometimes, asynchronous processes for a host without a dedicated
|
|
|
|
|
container name show a warning like @samp{Defaulted container
|
|
|
|
|
"container1" out of: container1, container2}. This can be mitigated
|
|
|
|
|
by setting the pod annotation
|
|
|
|
|
@samp{kubectl.kubernetes.io/default-container} to a proper value
|
|
|
|
|
(@samp{container1} in this example).
|
|
|
|
|
|
|
|
|
|
@vindex tramp-kubernetes-context
|
|
|
|
|
@vindex tramp-kubernetes-namespace
|
|
|
|
|
@value{tramp} uses the default Kubernetes context and namespace. If
|
|
|
|
|
another context or namespace shall be used, configure the user options
|
|
|
|
|
@code{tramp-kubernetes-context} and @code{tramp-kubernetes-namespace}.
|
|
|
|
|
|
|
|
|
|
|
2021-07-09 18:14:19 +02:00
|
|
|
|
@node Auto-save File Lock and Backup
|
|
|
|
|
@section Auto-save, File Lock and Backup configuration
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex auto-save
|
2021-07-09 18:14:19 +02:00
|
|
|
|
@cindex file-lock
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@cindex backup
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@vindex backup-directory-alist
|
2016-01-31 13:50:23 +01:00
|
|
|
|
To avoid @value{tramp} from saving backup files owned by @samp{root}
|
|
|
|
|
to locations accessible to others, default backup settings in
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{backup-directory-alist} have to be altered.
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
|
|
|
|
|
Here's a scenario where files could be inadvertently exposed. Emacs
|
|
|
|
|
by default writes backup files to the same directory as the original
|
|
|
|
|
files unless changed to another location, such as
|
|
|
|
|
@file{~/.emacs.d/backups/}. Such a directory will also be used by
|
|
|
|
|
default by @value{tramp} when using, say, a restricted file
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@file{@trampfn{su,root@@localhost,/etc/secretfile}}. The backup file
|
|
|
|
|
of the secretfile is now owned by the user logged in from
|
|
|
|
|
@value{tramp} and not @samp{root}.
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
When @code{backup-directory-alist} is @code{nil} (the default), such
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
problems do not occur.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-07-26 11:54:33 +02:00
|
|
|
|
To ``turn off'' the backup feature for remote files and stop
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} from saving to the backup directory, use this:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'backup-directory-alist
|
|
|
|
|
(cons tramp-file-name-regexp nil))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@noindent
|
2016-01-31 13:50:23 +01:00
|
|
|
|
Disabling backups can be targeted to just the @option{su} and
|
2009-11-08 10:49:06 +00:00
|
|
|
|
@option{sudo} methods:
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-11-08 10:49:06 +00:00
|
|
|
|
(setq backup-enable-predicate
|
|
|
|
|
(lambda (name)
|
|
|
|
|
(and (normal-backup-enable-predicate name)
|
|
|
|
|
(not
|
|
|
|
|
(let ((method (file-remote-p name 'method)))
|
|
|
|
|
(when (stringp method)
|
|
|
|
|
(member method '("su" "sudo"))))))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-11-08 10:49:06 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-backup-directory-alist
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Another option is to create better backup file naming with user and
|
|
|
|
|
host names prefixed to the file name. For example, transforming
|
|
|
|
|
@file{/etc/secretfile} to
|
|
|
|
|
@file{~/.emacs.d/backups/!su:root@@localhost:!etc!secretfile}, set the
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@value{tramp} user option @code{tramp-backup-directory-alist} from
|
|
|
|
|
the existing user option @code{backup-directory-alist}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
Then @value{tramp} backs up to a file name that is transformed with a
|
|
|
|
|
prefix consisting of the DIRECTORY name. This file name prefixing
|
|
|
|
|
happens only when the DIRECTORY is an absolute local file name.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'backup-directory-alist
|
|
|
|
|
(cons "." "~/.emacs.d/backups/"))
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable
|
|
|
|
|
'tramp-backup-directory-alist backup-directory-alist)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2016-01-24 11:40:26 -08:00
|
|
|
|
The backup file name of
|
|
|
|
|
@file{@trampfn{su,root@@localhost,/etc/secretfile}} would be
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@ifset unified
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@file{@trampfn{su,root@@localhost,~/.emacs.d/backups/!su:root@@localhost:!etc!secretfile~}}.
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@end ifset
|
|
|
|
|
@ifset separate
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@file{@trampfn{su,root@@localhost,~/.emacs.d/backups/![su!root@@localhost]!etc!secretfile~}}.
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@end ifset
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex auto-save-file-name-transforms
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Just as for backup files, similar issues of file naming affect
|
2018-07-26 11:54:33 +02:00
|
|
|
|
auto-saving remote files. Auto-saved files are saved in the directory
|
|
|
|
|
specified by the user option @code{auto-save-file-name-transforms}.
|
|
|
|
|
By default this is set to the local temporary directory. But in some
|
|
|
|
|
versions of Debian GNU/Linux, this points to the source directory
|
|
|
|
|
where the Emacs was compiled. Reset such values to a valid directory.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Set @code{auto-save-file-name-transforms} to @code{nil} to save
|
2015-12-29 15:33:54 +01:00
|
|
|
|
auto-saved files to the same directory as the original file.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-auto-save-directory
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Alternatively, set the user option @code{tramp-auto-save-directory}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
to direct all auto saves to that location.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2023-03-23 17:09:52 +01:00
|
|
|
|
@c Since Emacs 30.
|
|
|
|
|
@vindex remote-file-name-inhibit-auto-save
|
|
|
|
|
If you want to suppress auto-saving of remote files at all, set user
|
|
|
|
|
option @code{remote-file-name-inhibit-auto-save} to non-@code{nil}.
|
|
|
|
|
|
2022-07-05 21:19:51 +02:00
|
|
|
|
@c Since Emacs 29.
|
|
|
|
|
@vindex remote-file-name-inhibit-auto-save-visited
|
|
|
|
|
An alternative to @code{auto-save-mode} is
|
|
|
|
|
@code{auto-save-visited-mode}. In this mode, auto-saving is identical
|
|
|
|
|
to explicit saving. If you want to disable this behavior for remote
|
|
|
|
|
files, set user option
|
|
|
|
|
@code{remote-file-name-inhibit-auto-save-visited} to non-@code{nil}.
|
|
|
|
|
|
2021-07-09 18:14:19 +02:00
|
|
|
|
@vindex lock-file-name-transforms
|
|
|
|
|
And still more issues to handle. Since @w{Emacs 28}, file locks use a
|
|
|
|
|
similar user option as auto-save files, called
|
|
|
|
|
@code{lock-file-name-transforms}. By default this user option is
|
|
|
|
|
@code{nil}, meaning to keep file locks in the same directory as the
|
|
|
|
|
original file.
|
|
|
|
|
|
|
|
|
|
If you change @code{lock-file-name-transforms} in order to keep file
|
2022-01-12 10:23:31 -08:00
|
|
|
|
locks for remote files somewhere else, you will lose Emacs's feature
|
2021-07-09 18:14:19 +02:00
|
|
|
|
to warn you, if a file is changed in parallel from different Emacs
|
|
|
|
|
sessions, or via different remote connections. Be careful with such
|
|
|
|
|
settings.
|
|
|
|
|
|
2021-07-13 19:50:05 +02:00
|
|
|
|
@vindex remote-file-name-inhibit-locks
|
|
|
|
|
Setting @code{remote-file-name-inhibit-locks} to non-@code{nil}
|
|
|
|
|
prevents the creation of remote lock files at all.
|
|
|
|
|
|
2021-06-14 11:25:13 +02:00
|
|
|
|
@vindex tramp-allow-unsafe-temporary-files
|
|
|
|
|
Per default, @value{tramp} asks for confirmation if a
|
2021-07-13 19:50:05 +02:00
|
|
|
|
@samp{root}-owned remote backup, auto-save or lock file has to be
|
|
|
|
|
written to your local temporary directory. If you want to suppress
|
|
|
|
|
this confirmation question, set user option
|
2021-06-14 11:25:13 +02:00
|
|
|
|
@code{tramp-allow-unsafe-temporary-files} to @code{t}.
|
|
|
|
|
|
2020-06-10 19:36:53 +02:00
|
|
|
|
|
|
|
|
|
@node Keeping files encrypted
|
|
|
|
|
@section Protect remote files by encryption
|
|
|
|
|
@cindex Encrypt remote directories
|
|
|
|
|
|
2020-06-12 20:17:02 +02:00
|
|
|
|
@strong{Note}: File encryption in @value{tramp} is experimental, don't
|
|
|
|
|
use it in production systems!
|
|
|
|
|
|
2020-06-10 19:36:53 +02:00
|
|
|
|
Sometimes, it is desirable to protect files located on remote
|
|
|
|
|
directories, like cloud storages. In order to do this, you might
|
|
|
|
|
instruct @value{tramp} to encrypt all files copied to a given remote
|
|
|
|
|
directory, and to decrypt such files when accessing. This includes
|
|
|
|
|
both file contents and file names.
|
|
|
|
|
|
|
|
|
|
@value{tramp} does this transparently. Although both files and file
|
|
|
|
|
names are encrypted on the remote side, they are accessible inside
|
|
|
|
|
Emacs as they wouldn't be transformed as such.
|
|
|
|
|
|
|
|
|
|
@cindex @command{encfs}
|
|
|
|
|
@cindex @command{encfsctl}
|
|
|
|
|
Internally, @value{tramp} uses the @command{encfs} package.
|
|
|
|
|
Therefore, this feature is available only if this package is installed
|
|
|
|
|
on the local host. @value{tramp} does not keep and @samp{encfs
|
|
|
|
|
mountpoint} permanently. Instead, it encrypts / decrypts files and
|
|
|
|
|
file names on the fly, using @command{encfsctl}.
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-crypt-add-directory name
|
|
|
|
|
This command marks the existing remote directory @var{name} for
|
|
|
|
|
encryption. Files in that directory and all subdirectories will be
|
|
|
|
|
encrypted before copying to, and decrypted after copying from that
|
|
|
|
|
directory. File and directory names will be also encrypted.
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@defopt tramp-crypt-encfs-option
|
|
|
|
|
If a remote directory is marked for encryption, it is initialized via
|
|
|
|
|
@command{encfs} the very first time a file in this directory is
|
|
|
|
|
accessed. This user option controls, which default @command{encfs}
|
|
|
|
|
configuration option will be selected, it can be @t{"--standard"}
|
|
|
|
|
or @t{"--paranoia"}. See the @samp{encfs(1)} man page for details.
|
|
|
|
|
|
|
|
|
|
However, @value{tramp} must adapt these configuration sets. The
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@option{chainedNameIV} configuration option must be disabled; otherwise
|
2020-06-10 19:36:53 +02:00
|
|
|
|
@value{tramp} couldn't handle file name encryption transparently.
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
A password protected @option{encfs} configuration file is created the
|
|
|
|
|
very first time you access an encrypted remote directory. It is kept
|
|
|
|
|
in your @code{user-emacs-directory} with the url-encoded directory
|
|
|
|
|
name as part of the basename, and @file{encfs6.xml} as suffix. If
|
|
|
|
|
you, for example, mark the remote directory
|
|
|
|
|
@file{@trampfn{nextcloud,user@@host,/path/to/dir}} for encryption, the
|
|
|
|
|
configuration file is saved as
|
|
|
|
|
@file{tramp-%2Fnextcloud%3Auser%40host%3A%2Fpath%2Fto%2Fdir%2F.encfs6.xml}
|
2022-01-12 10:23:31 -08:00
|
|
|
|
in @code{user-emacs-directory}. Do not lose this file and the
|
2020-06-10 19:36:53 +02:00
|
|
|
|
corresponding password; otherwise there is no way to decrypt your
|
|
|
|
|
encrypted files.
|
|
|
|
|
|
|
|
|
|
@defopt tramp-crypt-save-encfs-config-remote
|
2020-09-24 10:17:03 +02:00
|
|
|
|
If this user option is non-@code{nil} (the default), the @option{encfs}
|
2020-06-10 19:36:53 +02:00
|
|
|
|
configuration file @file{.encfs6.xml} is also kept in the encrypted
|
|
|
|
|
remote directory. It depends on you, whether you regard the password
|
|
|
|
|
protection of this file as sufficient. The advantage would be, that
|
|
|
|
|
such a remote directory could be accessed by different Emacs sessions,
|
|
|
|
|
different users, without presharing the configuration file between the
|
|
|
|
|
users.
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
The command @command{encfsctl}, the workhorse for encryption /
|
|
|
|
|
decryption, needs the configuration file password every call.
|
|
|
|
|
Therefore, it is recommend to cache this password in Emacs. This can
|
2024-05-13 10:31:13 +02:00
|
|
|
|
be done using @code{auth-sources}, @pxref{Using an authentication file}.
|
2020-06-10 19:36:53 +02:00
|
|
|
|
An entry needs the url-encoded directory name as machine, your local
|
|
|
|
|
user name as user, and the password. The port is optional, if given
|
|
|
|
|
it must be the string @t{"crypt"}. The example above would require
|
|
|
|
|
the following entry in the authentication file (@t{"yourname"} is the
|
|
|
|
|
result of @code{(user-login-name)}):
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
machine %2Fnextcloud%3Auser%40host%3A%2Fpath%2Fto%2Fdir%2F \
|
|
|
|
|
login yourname port crypt password geheim
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
If you use a remote file name with a quoted localname part, this
|
|
|
|
|
localname and the corresponding file will not be encrypted /
|
|
|
|
|
decrypted. If you have an encrypted remote directory
|
|
|
|
|
@file{@trampfn{nextcloud,user@@host,/path/to/dir}}, the command
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@kbd{C-x d @trampfn{nextcloud,user@@host,/path/to/dir}}
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
|
will show the directory listing with the plain file names, and the
|
|
|
|
|
command
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@kbd{C-x d @trampfn{nextcloud,user@@host,/:/path/to/dir}}
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
|
will show the directory listing with the encrypted file names, and
|
|
|
|
|
visiting a file will show its encrypted contents. However, it is
|
|
|
|
|
highly discouraged to mix encrypted and not encrypted files in the
|
|
|
|
|
same directory.
|
|
|
|
|
|
2021-02-04 11:24:13 +01:00
|
|
|
|
@deffn Command tramp-crypt-remove-directory name
|
|
|
|
|
This command should be used to indicate that files in @code{name}
|
|
|
|
|
should no longer be encrypted. Existing encrypted files and
|
|
|
|
|
subdirectories will remain encrypted.
|
2020-06-10 19:36:53 +02:00
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Usage
|
|
|
|
|
@chapter Using @value{tramp}
|
|
|
|
|
@cindex using @value{tramp}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} operates transparently, accessing remote files as if
|
|
|
|
|
they are local. However, @value{tramp} employs a formalized remote
|
|
|
|
|
file naming syntax to perform its functions transparently. This
|
|
|
|
|
syntax consists of many parts specifying access methods,
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
authentication, host names, and file names. Ange FTP uses a similar
|
|
|
|
|
syntax.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@cindex type-ahead
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Unlike opening local files in Emacs, which are instantaneous, opening
|
|
|
|
|
remote files in @value{tramp} is slower at first. Sometimes there is
|
2016-01-31 13:50:23 +01:00
|
|
|
|
a noticeable delay before the prompts for passwords or authentication
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
appear in the minibuffer. Hitting @kbd{@key{RET}} or other keys
|
|
|
|
|
during this gap will be processed by Emacs. This type-ahead facility
|
|
|
|
|
is a feature of Emacs that may cause missed prompts when using
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@menu
|
2017-04-09 13:28:24 +02:00
|
|
|
|
* File name syntax:: @value{tramp} file name conventions.
|
|
|
|
|
@ifset unified
|
|
|
|
|
* Change file name syntax:: Alternative file name syntax.
|
|
|
|
|
@end ifset
|
2014-01-12 16:19:07 +01:00
|
|
|
|
* File name completion:: File name completion.
|
2012-06-11 15:03:39 +02:00
|
|
|
|
* Ad-hoc multi-hops:: Declaring multiple hops in the file name.
|
2022-03-10 12:31:22 +01:00
|
|
|
|
* Home directories:: Expanding @file{~} to home directory.
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
* Remote processes:: Integration with other Emacs packages.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
* Cleanup remote connections:: Cleanup remote connections.
|
2019-11-20 13:45:30 +01:00
|
|
|
|
* Renaming remote files:: Renaming remote files.
|
2017-12-09 14:34:30 +01:00
|
|
|
|
* Archive file names:: Access to files in file archives.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
|
|
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@node File name syntax
|
2014-01-12 16:19:07 +01:00
|
|
|
|
@section @value{tramp} file name conventions
|
|
|
|
|
@cindex file name syntax
|
|
|
|
|
@cindex file name examples
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@file{@trampfn{method,host,/path/to/file}} opens file @var{/path/to/file}
|
|
|
|
|
on the remote host @var{host}, using the method @var{method}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@c We cannot use @trampfn{} in @item.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@table @file
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @value{prefix}ssh@value{postfixhop}melancholia@value{postfix}.emacs
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For the file @file{.emacs} located in the home directory, on the host
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@samp{melancholia}, using method @option{ssh}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @value{prefix}ssh@value{postfixhop}melancholia.danann.net@value{postfix}.emacs
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For the file @file{.emacs} specified using the fully qualified domain name of
|
2014-01-12 16:19:07 +01:00
|
|
|
|
the host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @value{prefix}ssh@value{postfixhop}melancholia@value{postfix}~/.emacs
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For the file @file{.emacs} specified using the @file{~}, which is expanded.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @value{prefix}ssh@value{postfixhop}melancholia@value{postfix}~daniel/.emacs
|
2024-05-12 19:40:08 +02:00
|
|
|
|
For the file @file{.emacs} located in @samp{daniel}'s home directory
|
|
|
|
|
on the host, @samp{melancholia}. The @file{~<user>} construct is
|
2015-12-29 15:33:54 +01:00
|
|
|
|
expanded to the home directory of that user on the remote host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@item @value{prefix}ssh@value{postfixhop}melancholia@value{postfix}/etc/squid.conf
|
2024-05-12 19:40:08 +02:00
|
|
|
|
For the file @file{/etc/squid.conf} on the host @samp{melancholia}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@var{host} can take IPv4 or IPv6 address, as in
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@file{@trampfn{ssh,127.0.0.1,.emacs}} or
|
|
|
|
|
@file{@trampfn{ssh,@value{ipv6prefix}::1@value{ipv6postfix},.emacs}}.
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@ifset unified
|
2009-01-03 14:51:55 +00:00
|
|
|
|
For syntactical reasons, IPv6 addresses must be embedded in square
|
|
|
|
|
brackets @file{@value{ipv6prefix}} and @file{@value{ipv6postfix}}.
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@end ifset
|
2009-01-03 14:51:55 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
By default, @value{tramp} will use the current local user name as the
|
2022-01-22 17:12:14 +01:00
|
|
|
|
remote user name for log in to the remote host. Specifying a
|
|
|
|
|
different name using the proper syntax will override this default
|
|
|
|
|
behavior: @file{@trampfn{method,user@@host,path/to/file}}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@file{@trampfn{ssh,daniel@@melancholia,.emacs}} is for file
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{.emacs} in @samp{daniel}'s home directory on the host,
|
|
|
|
|
@samp{melancholia}, accessing via method @option{ssh}.
|
2013-03-18 14:07:16 +01:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For specifying port numbers, affix @file{#<port>} to the host
|
2016-01-24 11:40:26 -08:00
|
|
|
|
name. For example: @file{@trampfn{ssh,daniel@@melancholia#42,.emacs}}.
|
2010-07-10 11:49:41 +02:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
All method, user name, host name, port number and local name parts are
|
|
|
|
|
optional, @xref{Default Method}, @xref{Default User}, @xref{Default Host}.
|
|
|
|
|
@ifset unified
|
|
|
|
|
For syntactical reasons, the default method must be indicated by the
|
|
|
|
|
pseudo method @file{-}.
|
|
|
|
|
@end ifset
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@ifset unified
|
|
|
|
|
@node Change file name syntax
|
|
|
|
|
@section Alternative file name syntax
|
|
|
|
|
@cindex change file name syntax
|
|
|
|
|
@cindex alternative file name syntax
|
|
|
|
|
|
|
|
|
|
The syntax described in @ref{File name syntax} is the @code{default}
|
|
|
|
|
syntax, which is active after Emacs startup. However, this can be
|
|
|
|
|
changed.
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-change-syntax syntax
|
|
|
|
|
This command changes the syntax @value{tramp} uses for remote file
|
|
|
|
|
names. Beside the @code{default} value, @var{syntax} can be
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@cindex simplified syntax
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{simplified}
|
2017-04-09 13:28:24 +02:00
|
|
|
|
|
2022-08-09 22:35:35 +02:00
|
|
|
|
This remote file name syntax is similar to the syntax used by Ange FTP@.
|
2017-04-09 13:28:24 +02:00
|
|
|
|
A remote file name has the form
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{@value{prefix}user@@host@value{postfix}path/to/file}. The
|
|
|
|
|
@samp{user@@} part is optional, and the method is determined by
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@ref{Default Method}.
|
|
|
|
|
|
|
|
|
|
@cindex separate syntax
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @code{separate}
|
2017-04-09 13:28:24 +02:00
|
|
|
|
|
|
|
|
|
@clear unified
|
|
|
|
|
@set separate
|
|
|
|
|
@include trampver.texi
|
2022-08-09 22:35:35 +02:00
|
|
|
|
This remote file name syntax originated in the XEmacs text editor.
|
2017-04-09 13:28:24 +02:00
|
|
|
|
A remote file name has the form
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{@trampfn{method,user@@host,path/to/file}}. The @samp{method}
|
|
|
|
|
and @samp{user@@} parts are optional.
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@clear separate
|
|
|
|
|
@set unified
|
|
|
|
|
@include trampver.texi
|
|
|
|
|
@end itemize
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@defvar tramp-file-name-regexp
|
|
|
|
|
This variable keeps a regexp which matches the selected remote file
|
2018-10-20 13:38:31 +02:00
|
|
|
|
name syntax. Its value changes after every call of
|
|
|
|
|
@code{tramp-change-syntax}. However, it is not recommended to use
|
|
|
|
|
this variable in external packages, a call of @code{file-remote-p} is
|
|
|
|
|
much more appropriate.
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@ifinfo
|
2019-04-07 10:10:52 +02:00
|
|
|
|
@pxref{Magic File Names, , , elisp}.
|
2017-04-09 13:28:24 +02:00
|
|
|
|
@end ifinfo
|
|
|
|
|
@end defvar
|
|
|
|
|
@end ifset
|
|
|
|
|
|
|
|
|
|
|
2014-01-12 16:19:07 +01:00
|
|
|
|
@node File name completion
|
|
|
|
|
@section File name completion
|
|
|
|
|
@cindex file name completion
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} can complete the following @value{tramp} file name
|
|
|
|
|
components: method names, user names, host names, and file names
|
2023-02-06 18:13:22 +01:00
|
|
|
|
located on remote hosts.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-06-13 15:20:43 +02:00
|
|
|
|
For example, type @kbd{C-x C-f @value{prefixwithspace} s @key{TAB}},
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} completion choices show up as
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@multitable @columnfractions .2 .2 .2 .2 .2
|
|
|
|
|
@item @c
|
|
|
|
|
sbin/ @tab @c
|
|
|
|
|
@value{prefixhop}scp@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}scpx@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}sftp@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}sg@value{postfix}
|
|
|
|
|
@item @c
|
|
|
|
|
@value{prefixhop}smb@value{postfix} @tab @c
|
|
|
|
|
srv/ @tab @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}sshx@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}su@value{postfix}
|
|
|
|
|
@item @c
|
|
|
|
|
@value{prefixhop}sudo@value{postfix} @tab @c
|
|
|
|
|
sys/
|
2009-01-03 14:51:55 +00:00
|
|
|
|
@end multitable
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@samp{@value{prefixhop}ssh@value{postfixhop}} is a possible
|
|
|
|
|
completion for the respective method, and @samp{sbin/} stands for the
|
|
|
|
|
directory @file{/sbin} on your local host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
Type @kbd{s h @value{postfixhop}} for the minibuffer completion to
|
|
|
|
|
@samp{@value{prefix}ssh@value{postfixhop}}. Typing @kbd{@key{TAB}}
|
|
|
|
|
shows host names @value{tramp} extracts from @file{~/.ssh/config}
|
2023-02-06 18:13:22 +01:00
|
|
|
|
file, for example:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2013-02-24 18:58:55 +01:00
|
|
|
|
@multitable @columnfractions .5 .5
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@item @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}127.0.0.1@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}192.168.0.1@value{postfix}
|
|
|
|
|
@item @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}@value{ipv6prefix}::1@value{ipv6postfix}@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}localhost@value{postfix}
|
|
|
|
|
@item @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}melancholia.danann.net@value{postfix} @tab @c
|
|
|
|
|
@value{prefixhop}ssh@value{postfixhop}melancholia@value{postfix}
|
2009-01-03 14:51:55 +00:00
|
|
|
|
@end multitable
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Choose a host from the above list and then continue to complete file
|
|
|
|
|
names on that host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When the configuration (@pxref{Customizing Completion}) includes user
|
|
|
|
|
names, then the completion lists will account for the user names as well.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-10-31 20:04:04 +01:00
|
|
|
|
@vindex tramp-completion-use-auth-sources
|
|
|
|
|
Results from @code{auth-sources} search (@pxref{Using an
|
|
|
|
|
authentication file}) are added to the completion candidates. This
|
|
|
|
|
search could be annoying, for example due to a passphrase request of
|
|
|
|
|
the @file{~/.authinfo.gpg} authentication file. The user option
|
|
|
|
|
@code{tramp-completion-use-auth-sources} controls, whether such a
|
|
|
|
|
search is performed during completion.
|
|
|
|
|
|
2022-10-25 16:34:42 +02:00
|
|
|
|
@vindex tramp-completion-use-cache
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Remote hosts previously visited or hosts whose connections are kept
|
|
|
|
|
persistently (@pxref{Connection caching}) will be included in the
|
2022-10-25 16:34:42 +02:00
|
|
|
|
completion lists. If you want to suppress this completion because
|
|
|
|
|
there are invalid entries in the persistency file, for example if the
|
|
|
|
|
host configuration changes often, or if you plug your laptop to
|
|
|
|
|
different networks frequently, you can set the user option
|
Fix some Texinfo markup in manuals
* doc/emacs/macos.texi (Mac / GNUstep Customization):
* doc/lispintro/emacs-lisp-intro.texi (condition-case):
* doc/lispref/control.texi (pcase Macro):
* doc/lispref/debugging.texi (Internals of Debugger):
* doc/lispref/internals.texi (Building Emacs):
* doc/lispref/modes.texi (Imenu):
(Parser-based Font Lock, Parser-based Indentation):
* doc/lispref/parsing.texi (Retrieving Nodes, Tree-sitter C API):
* doc/lispref/processes.texi (Network, Bindat Types):
* doc/lispref/searching.texi (Rx Functions):
* doc/lispref/text.texi (Replacing):
* doc/lispref/windows.texi (Textual Scrolling):
* doc/misc/calc.texi (Killing From Stack, Customizing Calc):
* doc/misc/cc-mode.texi (Misc Font Locking, List Line-Up):
* doc/misc/ede.texi (ede-cpp-root-project)
(ede-proj-target-makefile, ede-sourcecode):
* doc/misc/ert.texi (Running Tests in Batch Mode):
* doc/misc/eudc.texi (Emacs-only Configuration, The Server Hotlist):
* doc/misc/eww.texi (Advanced):
* doc/misc/flymake.texi (Starting Flymake)
(Proc customization variables):
* doc/misc/tramp.texi (File name completion):
* doc/misc/gnus.texi (Summary Buffer Lines, Gnus Registry Setup)
(Fancy splitting to parent, Customizing the IMAP Connection)
(Mail Source Specifiers, Agent as Cache): Consistently mark up nil
and t as @code. Also fix the markup and wording of some surrounding
text (bug#64016).
* doc/lispref/display.texi (SVG Images, Icons):
* doc/lispref/modes.texi (Customizing Keywords): Prefer ASCII
apostrophe over Unicode right single quotation mark.
2023-06-12 14:42:31 +01:00
|
|
|
|
@code{tramp-completion-use-cache} to @code{nil}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
After remote host name completion comes completion of file names on
|
2016-01-31 13:50:23 +01:00
|
|
|
|
the remote host. It works the same as with local host file completion
|
|
|
|
|
except that killing with double-slash @file{//} kills only the file
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
name part of the @value{tramp} file name syntax. A triple-slash
|
|
|
|
|
stands for the default behavior.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@xref{Minibuffer File, , , emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2007-11-18 10:26:50 +00:00
|
|
|
|
@noindent
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@kbd{C-x C-f @trampfn{ssh,melancholia,/usr/local/bin//etc} @key{TAB}}
|
|
|
|
|
@print{} @trampfn{ssh,melancholia,/etc}
|
2007-11-18 10:26:50 +00:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@kbd{C-x C-f @trampfn{ssh,melancholia,//etc} @key{TAB}}
|
2018-02-05 14:02:49 +01:00
|
|
|
|
@print{} @trampfn{ssh,melancholia,/etc}
|
2007-11-18 10:26:50 +00:00
|
|
|
|
|
2017-03-16 16:23:07 +01:00
|
|
|
|
@kbd{C-x C-f @trampfn{ssh,melancholia,/usr/local/bin///etc} @key{TAB}}
|
2007-11-18 10:26:50 +00:00
|
|
|
|
@print{} /etc
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-11-18 10:26:50 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@node Ad-hoc multi-hops
|
|
|
|
|
@section Declaring multiple hops in the file name
|
|
|
|
|
@cindex multi-hop, ad-hoc
|
|
|
|
|
@cindex proxy hosts, ad-hoc
|
|
|
|
|
|
2018-10-20 13:38:31 +02:00
|
|
|
|
@value{tramp} file name syntax can accommodate ad-hoc specification of
|
2018-05-29 12:42:17 +02:00
|
|
|
|
multiple proxies without using @code{tramp-default-proxies-alist}
|
2018-10-20 13:38:31 +02:00
|
|
|
|
configuration setup (@pxref{Multi-hops}).
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Each proxy is specified using the same syntax as the remote host
|
|
|
|
|
specification minus the file name part. Each hop is separated by a
|
|
|
|
|
@samp{|}. Chain the proxies from the starting host to the destination
|
|
|
|
|
remote host name and file name. For example, hopping over a single
|
|
|
|
|
proxy @samp{bird@@bastion} to a remote file on @samp{you@@remotehost}:
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
|
|
|
|
@example
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@c @kbd{C-x C-f @trampfn{ssh@value{postfixhop}bird@@bastion|ssh,you@@remotehost,/path} @key{RET}}
|
|
|
|
|
@kbd{C-x C-f @value{prefix}ssh@value{postfixhop}bird@@bastion|@c
|
|
|
|
|
ssh@value{postfixhop}you@@remotehost@value{postfix}/path @key{RET}}
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@end example
|
|
|
|
|
|
2018-12-09 09:55:29 +01:00
|
|
|
|
Each involved method must be an inline method (@pxref{Inline methods}).
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} adds the ad-hoc definitions on the fly to
|
2023-12-07 14:02:49 +01:00
|
|
|
|
@code{tramp-default-proxies-alist} and is available for reuse during
|
2018-12-31 12:18:41 +01:00
|
|
|
|
that Emacs session. Subsequent @value{tramp} connections to the same
|
|
|
|
|
remote host can then use the shortcut form:
|
2023-06-21 18:25:32 +02:00
|
|
|
|
@samp{@trampfn{ssh,you@@remotehost,/path}}.
|
|
|
|
|
|
|
|
|
|
@defopt tramp-show-ad-hoc-proxies
|
|
|
|
|
If this user option is non-@code{nil}, ad-hoc definitions are kept in
|
|
|
|
|
remote file names instead of showing the shortcuts.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-show-ad-hoc-proxies t)
|
|
|
|
|
@end lisp
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
Ad-hoc definitions are removed from @code{tramp-default-proxies-alist}
|
|
|
|
|
via the command @kbd{M-x tramp-cleanup-all-connections @key{RET}}
|
|
|
|
|
(@pxref{Cleanup remote connections}).
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
|
|
|
|
@defopt tramp-save-ad-hoc-proxies
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For ad-hoc definitions to be saved automatically in
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-default-proxies-alist} for future Emacs sessions, set
|
|
|
|
|
@code{tramp-save-ad-hoc-proxies} to non-@code{nil}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'tramp-save-ad-hoc-proxies t)
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@end lisp
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@end defopt
|
|
|
|
|
|
2018-10-20 13:38:31 +02:00
|
|
|
|
Ad-hoc proxies can take patterns @code{%h} or @code{%u} like in
|
|
|
|
|
@code{tramp-default-proxies-alist}. The following file name expands
|
2021-06-14 11:25:13 +02:00
|
|
|
|
to user @samp{root} on host @samp{remotehost}, starting with an
|
|
|
|
|
@option{ssh} session on host @samp{remotehost}:
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{@trampfn{ssh@value{postfixhop}%h|su,remotehost,}}.
|
2018-10-20 13:38:31 +02:00
|
|
|
|
|
2022-01-22 17:12:14 +01:00
|
|
|
|
On the other hand, if a trailing hop does not specify a host name, the
|
|
|
|
|
host name of the previous hop is reused. Therefore, the following
|
2018-10-20 13:38:31 +02:00
|
|
|
|
file name is equivalent to the previous example:
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{@trampfn{ssh@value{postfixhop}remotehost|su,,}}.
|
2018-10-20 13:38:31 +02:00
|
|
|
|
|
2023-09-04 11:43:18 +02:00
|
|
|
|
@defopt tramp-completion-multi-hop-methods
|
|
|
|
|
When this list includes the last method in a multi-hop connection, the
|
|
|
|
|
remote host will be queried for a list of completion candidates. This
|
|
|
|
|
can, for example, provide a list of running docker or podman
|
|
|
|
|
containers on the remote host.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-completion-multi-hop-methods
|
|
|
|
|
`(,tramp-docker-method ,tramp-podman-method))
|
|
|
|
|
@end lisp
|
|
|
|
|
@end defopt
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2023-09-11 13:51:58 +02:00
|
|
|
|
A common use case for ad-hoc specifications is to visit a file or a
|
|
|
|
|
directory with proper permissions, for example with the @option{sudo}
|
|
|
|
|
method. The command @code{tramp-revert-buffer-with-sudo} supports
|
|
|
|
|
this.
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-revert-buffer-with-sudo
|
|
|
|
|
This command shows the current buffer with @option{sudo} permissions.
|
|
|
|
|
The buffer must either visit a file, or a directory
|
|
|
|
|
(@code{dired-mode}).
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@defopt tramp-file-name-with-method
|
|
|
|
|
The method @code{tramp-revert-buffer-with-sudo} shows an alternate
|
2024-05-12 19:40:08 +02:00
|
|
|
|
buffer. It defaults to @option{sudo}, other valid methods are
|
|
|
|
|
@option{su}, @option{doas}, @option{run0}, and @option{ksu}.
|
2023-09-11 13:51:58 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-file-name-with-method "doas")
|
|
|
|
|
@end lisp
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
These methods apply the user @samp{root} as default. If another user
|
|
|
|
|
shall be taken, add a proper rule to the user option
|
|
|
|
|
@code{tramp-default-user-alist} (@pxref{Default User}):
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(add-to-list 'tramp-default-user-alist '("sudo" "remotehost" "admin"))
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2022-03-10 12:31:22 +01:00
|
|
|
|
@node Home directories
|
|
|
|
|
@section Expanding @file{~} to home directory
|
|
|
|
|
|
|
|
|
|
Home directories on remote hosts can be typed as tilde @file{~}. If
|
|
|
|
|
possible, they are expanded to the remote user's home directory on the
|
|
|
|
|
remote host. Example:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
@trampfn{ssh,user@@host,~}
|
|
|
|
|
@result{} @trampfn{ssh,user@@host,/home/user}
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
This works in general for @option{ssh}-like methods, and for
|
|
|
|
|
@option{sudoedit}. These methods allow also the home directory
|
|
|
|
|
expansion for another user, like
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
@trampfn{sudoedit,,~otheruser}
|
|
|
|
|
@result{} @trampfn{sudoedit,root@@localhost,/home/otheruser}
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
For other methods, a home directory can be expanded only if supported.
|
|
|
|
|
This happens for example for the @option{sftp} method. Methods, which
|
|
|
|
|
require a share directory in the remote file name (@option{afp},
|
|
|
|
|
@option{smb}), use the value of this share directory as home
|
|
|
|
|
directory:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
@trampfn{smb,user@@host,~}
|
|
|
|
|
@result{} @trampfn{smb,user@@host,/share}
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
2022-11-29 17:00:02 +01:00
|
|
|
|
Since @value{tramp} cannot know in advance which share directory is
|
|
|
|
|
intended to use, this expansion can be applied only when a share
|
|
|
|
|
directory has been used already.
|
2022-03-10 12:31:22 +01:00
|
|
|
|
|
|
|
|
|
The methods @option{adb}, @option{rclone} and @option{sshfs} do not
|
|
|
|
|
support home directory expansion at all. However, @value{tramp} keeps
|
2024-11-13 17:10:57 +01:00
|
|
|
|
the home directory in the cache. Therefore, those methods can be
|
2022-03-10 12:31:22 +01:00
|
|
|
|
configured to expand a home directory via a connection property,
|
|
|
|
|
@xref{Predefined connection information}. Example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(add-to-list 'tramp-connection-properties
|
|
|
|
|
(list (regexp-quote "@trampfn{sshfs,user@@randomhost.your.domain,}")
|
|
|
|
|
"~user" "/home/user"))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
When your remote file name does not contain a @samp{user} part, the
|
|
|
|
|
connection property @t{"~"} must be used instead.
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Remote processes
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@section Integration with other Emacs packages
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @code{compile}
|
|
|
|
|
@cindex @code{recompile}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} supports starting new running processes on the remote
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
host for discovering remote file names. Emacs packages on the remote
|
|
|
|
|
host need no specific modifications for @value{tramp}'s use.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
This type of integration does not work with the @option{ftp} method,
|
|
|
|
|
and does not support the pty association as specified in
|
|
|
|
|
@code{start-file-process}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2010-12-14 21:37:49 +01:00
|
|
|
|
@code{process-file} and @code{start-file-process} work on the remote
|
2011-02-05 11:11:32 +01:00
|
|
|
|
host when the variable @code{default-directory} is remote:
|
2010-12-14 21:37:49 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2010-12-14 21:37:49 +01:00
|
|
|
|
(let ((default-directory "/ssh:remote.host:"))
|
|
|
|
|
(start-file-process "grep" (get-buffer-create "*grep*")
|
|
|
|
|
"/bin/sh" "-c" "grep -e tramp *"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2010-12-14 21:37:49 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2020-05-16 14:04:07 +02:00
|
|
|
|
@vindex process-file-return-signal-string
|
2021-02-23 14:21:26 +01:00
|
|
|
|
For a local process, @code{process-file} returns either the exit code
|
|
|
|
|
of the process, or a string describing a signal, when the process has
|
|
|
|
|
been interrupted. Since it cannot be determined reliably whether a
|
|
|
|
|
remote process has been interrupted, @code{process-file} will always
|
|
|
|
|
returns the exit code for it. When the user option
|
2020-09-24 10:17:03 +02:00
|
|
|
|
@code{process-file-return-signal-string} is non-@code{nil},
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@code{process-file} treats all exit codes greater than 128 as an
|
2020-05-16 14:04:07 +02:00
|
|
|
|
indication that the process has been interrupted, and returns a
|
2021-02-23 14:21:26 +01:00
|
|
|
|
corresponding string.
|
2020-05-16 14:04:07 +02:00
|
|
|
|
|
2021-11-24 17:28:45 +01:00
|
|
|
|
This remote process handling does not apply to @acronym{GVFS}
|
2021-12-04 20:02:07 +01:00
|
|
|
|
(@pxref{GVFS-based methods}) because the remote file system is mounted
|
|
|
|
|
on the local host and @value{tramp} accesses it by changing the
|
2019-08-22 14:50:38 +02:00
|
|
|
|
@code{default-directory}.
|
2009-07-01 15:09:50 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} starts a remote process when a command is executed in a
|
|
|
|
|
remote file or directory buffer. As of now, these packages have been
|
2020-05-16 14:04:07 +02:00
|
|
|
|
integrated to work with @value{tramp}: @file{shell.el},
|
|
|
|
|
@file{eshell.el}, @file{compile.el} (commands like @code{compile} and
|
|
|
|
|
@code{grep}) and @file{gud.el} (@code{gdb} or @code{perldb}).
|
|
|
|
|
|
|
|
|
|
@vindex INSIDE_EMACS@r{, environment variable}
|
|
|
|
|
@value{tramp} always modifies the @env{INSIDE_EMACS} environment
|
2021-02-23 14:21:26 +01:00
|
|
|
|
variable for remote processes. By default, this environment variable
|
2020-05-16 14:04:07 +02:00
|
|
|
|
shows the Emacs version. @value{tramp} adds its own version string,
|
2020-11-30 13:44:44 +01:00
|
|
|
|
so it looks like @samp{27.2,tramp:2.4.5.1}. However, other packages
|
2020-05-16 14:04:07 +02:00
|
|
|
|
might also add their name to this environment variable, like
|
2020-11-30 13:44:44 +01:00
|
|
|
|
@samp{27.2,comint,tramp:2.4.5.1}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For @value{tramp} to find the command on the remote, it must be
|
|
|
|
|
accessible through the default search path as setup by @value{tramp}
|
|
|
|
|
upon first connection. Alternatively, use an absolute path or extend
|
2021-11-24 17:28:45 +01:00
|
|
|
|
@code{tramp-remote-path} (@pxref{Remote programs}):
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-to-list 'tramp-remote-path "~/bin")
|
|
|
|
|
(add-to-list 'tramp-remote-path "/appli/pub/bin")
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-02-11 09:20:29 -05:00
|
|
|
|
@vindex tramp-remote-process-environment
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Customize user option @code{tramp-remote-process-environment} to
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
suit the remote program's environment for the remote host.
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-process-environment} is a list of strings
|
2015-12-29 15:33:54 +01:00
|
|
|
|
structured similar to @code{process-environment}, where each element
|
|
|
|
|
is a string of the form @samp{ENVVARNAME=VALUE}.
|
|
|
|
|
|
2016-08-09 11:50:13 +02:00
|
|
|
|
To avoid any conflicts with local host environment variables set
|
|
|
|
|
through local configuration files, such as @file{~/.profile}, use
|
|
|
|
|
@samp{ENVVARNAME=} to unset them for the remote environment.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Use @code{add-to-list} to add entries:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(add-to-list 'tramp-remote-process-environment "JAVA_HOME=/opt/java")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex HISTORY@r{, environment variable}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Modifying or deleting already existing values in the
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-process-environment} list may not be feasible on
|
2015-12-29 15:33:54 +01:00
|
|
|
|
restricted remote hosts. For example, some system administrators
|
2016-08-09 11:50:13 +02:00
|
|
|
|
disallow changing @env{HISTORY} environment variable. To accommodate
|
|
|
|
|
such restrictions when using @value{tramp}, fix the
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-process-environment} by the following code in the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
local @file{.emacs} file:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(let ((process-environment tramp-remote-process-environment))
|
|
|
|
|
(setenv "HISTORY" nil)
|
|
|
|
|
(setq tramp-remote-process-environment process-environment))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex ENV@r{, environment variable}
|
2016-08-09 11:50:13 +02:00
|
|
|
|
Setting the @env{ENV} environment variable instructs some shells to
|
2021-02-23 14:21:26 +01:00
|
|
|
|
read an initialization file. By default, @value{tramp} disables
|
|
|
|
|
this. You can override this behavior by evaluating
|
2016-08-09 11:50:13 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2016-08-09 11:50:13 +02:00
|
|
|
|
(let ((process-environment tramp-remote-process-environment))
|
|
|
|
|
(setenv "ENV" "$HOME/.profile")
|
|
|
|
|
(setq tramp-remote-process-environment process-environment))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2016-08-09 11:50:13 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
In addition to @code{tramp-remote-process-environment}, you can set
|
2018-02-13 14:52:20 -08:00
|
|
|
|
environment variables for individual remote process calls by
|
|
|
|
|
let-binding @code{process-environment}. @value{tramp} applies any
|
|
|
|
|
entries not present in the global default value of
|
2018-02-11 09:20:29 -05:00
|
|
|
|
@code{process-environment} (overriding
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-remote-process-environment} settings, if they conflict).
|
2018-02-11 09:20:29 -05:00
|
|
|
|
For example:
|
2014-11-23 12:33:45 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2014-11-23 12:33:45 +01:00
|
|
|
|
(let ((process-environment (cons "HGPLAIN=1" process-environment)))
|
|
|
|
|
(process-file @dots{}))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2014-11-23 12:33:45 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex HGPLAIN@r{, environment variable}
|
2018-02-11 09:20:29 -05:00
|
|
|
|
Let-binding in this way works regardless of whether the process to be
|
|
|
|
|
called is local or remote, since @value{tramp} would add just the
|
|
|
|
|
@env{HGPLAIN} setting and local processes would take whole value of
|
|
|
|
|
@code{process-environment} along with the new value of @env{HGPLAIN}.
|
2014-11-23 12:33:45 +01:00
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
For integrating other Emacs packages so @value{tramp} can execute
|
|
|
|
|
remotely, please file a bug report. @xref{Bug Reports}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@subsection Running remote programs that create local X11 windows
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex DISPLAY@r{, environment variable}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To allow a remote program to create an X11 window on the local host,
|
|
|
|
|
set the @env{DISPLAY} environment variable for the remote host as
|
|
|
|
|
follows in the local @file{.emacs} file:
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-06-22 21:39:28 +00:00
|
|
|
|
(add-to-list 'tramp-remote-process-environment
|
|
|
|
|
(format "DISPLAY=%s" (getenv "DISPLAY")))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-06-22 21:39:28 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{(getenv "DISPLAY")} should return a recognizable name for the
|
|
|
|
|
local host that the remote host can redirect X11 window
|
|
|
|
|
interactions. If querying for a recognizable name is not possible for
|
|
|
|
|
whatever reason, then replace @code{(getenv "DISPLAY")} with a
|
2024-05-12 19:40:08 +02:00
|
|
|
|
hard-coded, fixed name. Note that using @samp{:0} for X11 display name
|
2015-12-29 15:33:54 +01:00
|
|
|
|
here will not work as expected.
|
|
|
|
|
|
Some Tramp adaptions, mainly direct async processes
* doc/misc/tramp.texi (Firewalls, Remote processes)
(Frequently Asked Questions): Add @vindex.
(Predefined connection information): Precise precondition or direct
async processes.
(Remote shell setup): Ban ssh RemoteCommand option.
(Frequently Asked Questions): Adapt quoting.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.5.1-pre".
* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-direct-async'
parameter.
(tramp-adb-handle-make-process): Adapt docstring.
* lisp/net/tramp-sh.el (tramp-methods) <scp, scpx, rsync, ssh, sshx>:
Add `tramp-direct-async' parameter.
(tramp-sh-handle-insert-directory): Simplify merkers.
(tramp-sh-handle-make-process): Adapt docstring.
* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-debug-message): Suppress lockfiles.
(tramp-test-message): New defun.
(tramp-direct-async-process-p): Check also for `tramp-direct-async'.
(tramp-handle-make-process): Do not check for `tramp-direct-async-args'.
* test/lisp/net/tramp-tests.el (all): Replace `string-match' by
`string-match-p'.
(dired-copy-dereference): Declare.
(tramp-test-temporary-file-directory):
Remove `tramp-direct-async-args` for mock method.
(tramp-test15-copy-directory, tramp-test40-special-characters)
(tramp-test40-special-characters-with-stat)
(tramp-test40-special-characters-with-perl)
(tramp-test40-special-characters-with-ls, tramp-test41-utf8)
(tramp-test41-utf8-with-stat, tramp-test41-utf8-with-perl)
(tramp-test41-utf8-with-ls): Skip for tramp-rclone.el.
(tramp--test--deftest-direct-async-process): Do not skip for mock
method.
(tramp-test32-shell-command): Adapt test for direct async processes.
(tramp-test36-vc-registered, tramp--test-hpux-p, tramp--test-ksh-p):
Use `tramp-test-vec'.
2021-01-15 11:32:12 +01:00
|
|
|
|
@vindex ForwardX11@r{, ssh option}
|
|
|
|
|
@vindex ForwardX11Trusted@r{, ssh option}
|
2020-09-24 10:17:03 +02:00
|
|
|
|
An alternate approach is specify @option{ForwardX11 yes} or
|
|
|
|
|
@option{ForwardX11Trusted yes} in @file{~/.ssh/config} on the local
|
2024-05-11 10:03:45 +02:00
|
|
|
|
host. Furthermore, set @code{tramp-use-connection-share} to
|
|
|
|
|
@code{nil} (@pxref{Using ssh connection sharing}), in order to avoid
|
|
|
|
|
unwanted side effects.
|
2009-06-22 21:39:28 +00:00
|
|
|
|
|
|
|
|
|
|
2024-06-02 19:30:12 +02:00
|
|
|
|
@anchor{Managing remote shell history}
|
|
|
|
|
@subsection Managing remote shell history
|
|
|
|
|
@cindex shell history
|
|
|
|
|
@vindex tramp-histfile-override
|
|
|
|
|
@vindex HISTFILE@r{, environment variable}
|
|
|
|
|
@vindex HISTFILESIZE@r{, environment variable}
|
|
|
|
|
@vindex HISTSIZE@r{, environment variable}
|
|
|
|
|
|
|
|
|
|
Due to the remote shell saving tilde expansions triggered by
|
|
|
|
|
@value{tramp}, the shell history file is probably growing rapidly.
|
|
|
|
|
@value{tramp} can suppress this behavior with the user option
|
|
|
|
|
@code{tramp-histfile-override}. When set to @code{t}, environment
|
|
|
|
|
variable @env{HISTFILE} is unset, and environment variables
|
|
|
|
|
@env{HISTFILESIZE} and @env{HISTSIZE} are set to 0. Don't use this
|
2024-11-13 17:10:57 +01:00
|
|
|
|
with @command{bash} 5.0.0@: that version has a bug which
|
|
|
|
|
causes @command{bash} to die.
|
2024-06-02 19:30:12 +02:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
Alternatively, @code{tramp-histfile-override} can be a string.
|
|
|
|
|
The environment variable @env{HISTFILE} is then set to this file name. Be
|
|
|
|
|
careful if using @file{/dev/null}; this might result in undesired
|
|
|
|
|
results when using @command{bash} as remote shell.
|
2024-06-02 19:30:12 +02:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
Another approach is to completely disable @value{tramp}'s handling of
|
|
|
|
|
the @env{HISTFILE} by setting @code{tramp-histfile-override} to
|
|
|
|
|
@code{nil}. In this case, saving history can be turned off by putting
|
|
|
|
|
this shell code in @file{.bashrc} or @file{.kshrc}:
|
2024-06-02 19:30:12 +02:00
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
if [ -f $HOME/.sh_history ] ; then
|
|
|
|
|
/bin/rm $HOME/.sh_history
|
|
|
|
|
fi
|
|
|
|
|
if [ "$@{HISTFILE-unset@}" != "unset" ] ; then
|
|
|
|
|
unset HISTFILE
|
|
|
|
|
fi
|
|
|
|
|
if [ "$@{HISTSIZE-unset@}" != "unset" ] ; then
|
|
|
|
|
unset HISTSIZE
|
|
|
|
|
fi
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
For @option{ssh}-based method, add the following line to your
|
|
|
|
|
@file{~/.ssh/environment}:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
HISTFILE=/dev/null
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
|
2011-03-14 17:39:58 +01:00
|
|
|
|
@subsection Running @code{shell} on a remote host
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @code{shell}
|
2024-06-02 19:30:12 +02:00
|
|
|
|
@vindex explicit-shell-file-name
|
|
|
|
|
@vindex shell-history-file-name
|
2011-03-14 17:39:58 +01:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Set @code{explicit-shell-file-name} to the appropriate shell name
|
2015-12-29 15:33:54 +01:00
|
|
|
|
when using @value{tramp} between two hosts with different operating
|
|
|
|
|
systems, such as @samp{windows-nt} and @samp{gnu/linux}. This option
|
|
|
|
|
ensures the correct name of the remote shell program.
|
2011-03-14 17:39:58 +01:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
When @code{explicit-shell-file-name} is equal to @code{nil}, calling
|
2017-05-26 16:25:18 +02:00
|
|
|
|
@code{shell} interactively will prompt for a shell name.
|
2011-03-14 17:39:58 +01:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
You can use connection-local variables for setting different values
|
Remove Emacs 25 compatibility from Tramp
* doc/misc/tramp.texi (Remote programs, Remote processes)
(Frequently Asked Questions): Adapt Emacs versions.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.6.0-pre".
* lisp/net/tramp-adb.el (top): Don't use `tramp-compat-funcall' for
connection-local functions.
* lisp/net/tramp-compat.el (tramp-unload-file-name-handlers)
(tramp-handle-temporary-file-directory)
(tramp-compat-temporary-file-directory-function)
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-access-time)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-status-change-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes, tramp-file-missing)
(tramp-compat-file-missing, tramp-compat-file-local-name): Remove.
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote)
(tramp-compat-progress-reporter-update)
(tramp-compat-file-modes, tramp-compat-set-file-modes)
(tramp-compat-set-file-times, tramp-compat-directory-files)
(tramp-compat-directory-files-and-attributes): Adapt implementation.
* lisp/net/tramp.el:
* lisp/net/tramp-adb.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-crypt.el:
* lisp/net/tramp-fuse.el:
* lisp/net/tramp-gvfs.el:
* lisp/net/tramp-rclone.el:
* lisp/net/tramp-sh.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-sudoedit.el: Adapt callees.
* lisp/net/tramp-crypt.el (tramp-crypt-config-file-name):
Expand file name.
* lisp/net/tramp-fuse.el (tramp-fuse-handle-file-readable-p): Remove.
* lisp/net/tramp-gvfs.el (tramp-gvfs-enabled): Don't check Emacs version.
(tramp-gvfs-handler-mounted-unmounted): Use `make-tramp-file-name'.
* lisp/net/tramp-integration.el (rfn-eshadow-overlay):
Remove declaration.
(top): Don't use `tramp-compat-funcall' for connection-local functions.
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
Use `tramp-rclone-handle-file-readable-p'.
(tramp-rclone-handle-file-readable-p): New defun.
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.
* lisp/net/tramp.el (tramp-temp-name-prefix, tramp-lookup-syntax):
Adapt docstring.
(tramp-set-connection-local-variables)
(tramp-set-connection-local-variables-for-buffer): Don't use
`tramp-compat-funcall' for connection-local functions.
(tramp-file-name-for-operation): Reorder list.
(tramp-handle-make-symbolic-link): Don't handle TARGET and
OK-IF-ALREADY-EXISTS.
(tramp-read-passwd): Don't use `read-passwd' any longer.
(top): Don't check for `interrupt-process-functions'.
* test/lisp/net/tramp-archive-tests.el (tramp-archive--test-emacs26-p):
Remove.
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-archive-test46-auto-load)
(tramp-archive-test46-delay-load): Rename.
* test/lisp/net/tramp-tests.el (dired-aux, seq): Require them.
(dired-compress, connection-local-criteria-alist)
(connection-local-profile-alist, async-shell-command-width):
Don't declare.
(all): Replace Emacs 26 compatibility functions with their
original name.
(tramp-test04-substitute-in-file-name)
(tramp-test10-write-region, tramp-test11-copy-file)
(tramp-test12-rename-file, tramp-test15-copy-directory)
(tramp-test17-insert-directory)
(tramp-test17-dired-with-wildcards, tramp-test21-file-links)
(tramp-test31-interrupt-process)
(tramp-test34-connection-local-variables)
(tramp-test34-explicit-shell-file-name)
(tramp-test40-make-nearby-temp-file)
(tramp-test41-special-characters, tramp-test42-utf8)
(tramp-test46-delay-load, tramp-test46-remote-load-path)
(tramp-test47-unload): Don't check for Emacs 26 special features.
(tramp--test-emacs26-p): Remove.
(tramp--test-emacs29-p): New defun.
(tramp-test45-dired-compress-file)
(tramp-test45-dired-compress-dir): Use it.
(tramp-test44-asynchronous-requests): Use `seq-random-elt'.
2021-11-12 18:17:32 +01:00
|
|
|
|
of @code{explicit-shell-file-name} for different remote hosts.
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@ifinfo
|
2019-04-06 12:57:44 -07:00
|
|
|
|
@xref{Connection Variables, , , emacs}.
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'remote-bash
|
|
|
|
|
'((explicit-shell-file-name . "/bin/bash")
|
|
|
|
|
(explicit-bash-args . ("-i"))))
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'remote-ksh
|
|
|
|
|
'((explicit-shell-file-name . "/bin/ksh")
|
|
|
|
|
(explicit-ksh-args . ("-i"))))
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'(:application tramp :protocol "ssh" :machine "localhost")
|
|
|
|
|
'remote-bash)
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
2024-06-18 14:40:20 +02:00
|
|
|
|
`(:application tramp :protocol "sudo"
|
|
|
|
|
:user "root" :machine ,(system-name))
|
|
|
|
|
'remote-ksh)
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2024-06-02 19:30:12 +02:00
|
|
|
|
The command @code{shell} reads the remote history file in order to to
|
|
|
|
|
initialize the history input ring. You can set the user option
|
|
|
|
|
@code{shell-history-file-name} in order to specify which remote
|
|
|
|
|
history file is taken, or whether to suppress this at all. It accepts
|
|
|
|
|
the same values as @code{tramp-histfile-override}, see @pxref{Managing
|
|
|
|
|
remote shell history}. @code{shell-history-file-name} accepts also
|
|
|
|
|
connection-local values in @code{shell} buffers.
|
|
|
|
|
|
2011-03-14 17:39:58 +01:00
|
|
|
|
|
|
|
|
|
@subsection Running @code{shell-command} on a remote host
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @code{shell-command}
|
2008-02-05 21:17:26 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{shell-command} executes commands synchronously or asynchronously
|
|
|
|
|
on remote hosts and displays output in buffers on the local
|
|
|
|
|
host. Example:
|
2008-02-05 21:17:26 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@kbd{C-x C-f @trampfn{sudo,,} @key{RET}}
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@kbd{M-& tail -f /var/log/syslog.log @key{RET}}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2008-02-05 21:17:26 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2020-08-09 19:13:53 +03:00
|
|
|
|
@command{tail} command outputs continuously to the local buffer whose
|
|
|
|
|
name is the value of the variable @code{shell-command-buffer-name-async}.
|
2008-02-05 21:17:26 +00:00
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@kbd{M-x auto-revert-tail-mode @key{RET}} runs similarly showing
|
|
|
|
|
continuous output.
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2019-05-05 16:20:14 +02:00
|
|
|
|
@vindex shell-file-name
|
|
|
|
|
@vindex shell-command-switch
|
2020-09-24 10:17:03 +02:00
|
|
|
|
@code{shell-command} uses the user option @code{shell-file-name} and
|
|
|
|
|
the variable @code{shell-command-switch} in order to determine which
|
|
|
|
|
shell to run. For remote hosts, their default values are
|
|
|
|
|
@file{/bin/sh} and @option{-c}, respectively (except for the
|
|
|
|
|
@option{adb} method, which uses @file{/system/bin/sh}). Like the
|
|
|
|
|
variables in the previous section, these variables can be changed via
|
|
|
|
|
connection-local variables.
|
2019-03-09 16:44:24 +01:00
|
|
|
|
|
2019-05-05 22:27:33 +03:00
|
|
|
|
@vindex async-shell-command-width
|
2019-05-05 16:20:14 +02:00
|
|
|
|
@vindex COLUMNS@r{, environment variable}
|
2023-01-06 13:34:33 +01:00
|
|
|
|
@value{tramp} cares about the user option
|
|
|
|
|
@code{async-shell-command-width} for asynchronous shell commands. It
|
|
|
|
|
specifies the number of display columns for command output. For
|
|
|
|
|
synchronous shell commands, a similar effect can be achieved by adding
|
|
|
|
|
the environment variable @env{COLUMNS} to
|
|
|
|
|
@code{tramp-remote-process-environment}.
|
2019-05-05 16:20:14 +02:00
|
|
|
|
|
2008-02-05 21:17:26 +00:00
|
|
|
|
|
2011-03-14 17:39:58 +01:00
|
|
|
|
@subsection Running @code{eshell} on a remote host
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @code{eshell}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} is integrated into @file{eshell.el}, which enables
|
|
|
|
|
interactive eshell sessions on remote hosts at the command prompt.
|
2019-07-08 16:46:29 +02:00
|
|
|
|
You must add the module @code{eshell-tramp} to
|
|
|
|
|
@code{eshell-modules-list}. Here's a sample interaction after opening
|
|
|
|
|
@kbd{M-x eshell @key{RET}} on a remote host:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{~ $} cd @trampfn{sudo,,/etc} @key{RET}
|
|
|
|
|
@b{@trampfn{sudo,root@@host,/etc} $} hostname @key{RET}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
host
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{@trampfn{sudo,root@@host,/etc} $} id @key{RET}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
uid=0(root) gid=0(root) groups=0(root)
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{@trampfn{sudo,root@@host,/etc} $} find-file shadow @key{RET}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
#<buffer shadow>
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{@trampfn{sudo,root@@host,/etc} $}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2017-04-02 11:02:54 +02:00
|
|
|
|
@code{eshell} added custom @code{su} and @code{sudo} commands that set
|
|
|
|
|
the default directory correctly for the @file{*eshell*} buffer.
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@value{tramp} silently updates @code{tramp-default-proxies-alist}
|
2017-04-02 11:02:54 +02:00
|
|
|
|
with an entry for this directory (@pxref{Multi-hops}):
|
2009-11-29 20:40:51 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{~ $} cd @trampfn{ssh,user@@remotehost,/etc} @key{RET}
|
|
|
|
|
@b{@trampfn{ssh,user@@remotehost,/etc} $} find-file shadow @key{RET}
|
|
|
|
|
File is not readable: @trampfn{ssh,user@@remotehost,/etc/shadow}
|
|
|
|
|
@b{@trampfn{ssh,user@@remotehost,/etc} $} sudo find-file shadow @key{RET}
|
2009-11-29 20:40:51 +00:00
|
|
|
|
#<buffer shadow>
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-12-09 10:10:18 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{@trampfn{ssh,user@@remotehost,/etc} $} su - @key{RET}
|
|
|
|
|
@b{@trampfn{su,root@@remotehost,/root} $} id @key{RET}
|
2009-11-29 20:40:51 +00:00
|
|
|
|
uid=0(root) gid=0(root) groups=0(root)
|
2016-01-24 11:40:26 -08:00
|
|
|
|
@b{@trampfn{su,root@@remotehost,/root} $}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-11-29 20:40:51 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@anchor{Running a debugger on a remote host}
|
|
|
|
|
@subsection Running a debugger on a remote host
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{gud.el}
|
|
|
|
|
@cindex @code{gdb}
|
|
|
|
|
@cindex @code{perldb}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-02-21 10:24:56 +01:00
|
|
|
|
@file{gud.el} provides a unified interface to symbolic
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
2021-02-21 10:24:56 +01:00
|
|
|
|
debuggers (@pxref{Debuggers, , , emacs}).
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
2021-02-21 10:24:56 +01:00
|
|
|
|
@ifnotinfo
|
|
|
|
|
debuggers.
|
|
|
|
|
@end ifnotinfo
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} can run debug on remote hosts by calling @code{gdb}
|
|
|
|
|
with a remote file name:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@kbd{M-x gdb @key{RET}}
|
2016-08-22 15:17:55 +02:00
|
|
|
|
@b{Run gdb (like this):} gdb -i=mi @trampfn{ssh,host,~/myprog} @key{RET}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2016-08-22 15:17:55 +02:00
|
|
|
|
Since the remote @code{gdb} and @code{gdb-inferior} processes do not
|
|
|
|
|
belong to the same process group on the remote host, there will be a
|
|
|
|
|
warning, which can be ignored:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
|
|
|
|
|
@end example
|
|
|
|
|
|
2018-01-08 16:43:46 +01:00
|
|
|
|
@noindent
|
|
|
|
|
As consequence, there will be restrictions in I/O of the process to be
|
|
|
|
|
debugged.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Relative file names are based on the remote default directory. When
|
2016-01-31 13:50:23 +01:00
|
|
|
|
@file{myprog.pl} exists in @file{@trampfn{ssh,host,/home/user}}, valid
|
|
|
|
|
calls include:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@kbd{M-x perldb @key{RET}}
|
|
|
|
|
@b{Run perldb (like this):} perl -d myprog.pl @key{RET}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
Just the local part of a remote file name, such as @command{perl -d
|
2015-12-29 15:33:54 +01:00
|
|
|
|
/home/user/myprog.pl}, is not possible.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Arguments of the program to be debugged must be literal, can take
|
|
|
|
|
relative or absolute paths, but not remote paths.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@subsection Running remote processes on MS Windows hosts
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @command{winexe}
|
|
|
|
|
@cindex @command{powershell}
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
@command{winexe} runs processes on a remote MS Windows host, and
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} can use it for @code{process-file} and
|
|
|
|
|
@code{start-file-process}.
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{tramp-smb-winexe-program} specifies the local @command{winexe}
|
|
|
|
|
command. Powershell V2.0 on the remote host is required to run
|
|
|
|
|
processes triggered from @value{tramp}.
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{explicit-shell-file-name} and @code{explicit-*-args} have to
|
2018-02-14 09:28:33 +01:00
|
|
|
|
be set properly so @kbd{M-x shell @key{RET}} can open a proper remote
|
|
|
|
|
shell on a MS Windows host. To open @command{cmd}, set it as follows:
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2012-06-11 15:03:39 +02:00
|
|
|
|
(setq explicit-shell-file-name "cmd"
|
|
|
|
|
explicit-cmd-args '("/q"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To open @command{powershell} as a remote shell, use this:
|
2012-06-11 15:03:39 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2012-06-11 15:03:39 +02:00
|
|
|
|
(setq explicit-shell-file-name "powershell"
|
|
|
|
|
explicit-powershell-args '("-file" "-"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2021-08-12 20:09:48 +02:00
|
|
|
|
@subsection Remote process connection type
|
|
|
|
|
@vindex process-connection-type
|
2023-12-07 14:02:49 +01:00
|
|
|
|
@vindex tramp-process-connection-type
|
2021-08-12 20:09:48 +02:00
|
|
|
|
|
2021-09-24 13:31:32 +02:00
|
|
|
|
Asynchronous processes behave differently based on whether they use a
|
|
|
|
|
pseudo tty or not. This is controlled by the variable
|
2021-08-12 20:09:48 +02:00
|
|
|
|
@code{process-connection-type}, which can be @code{t} or @code{pty}
|
2021-09-24 13:31:32 +02:00
|
|
|
|
(use a pseudo tty), or @code{nil} or @code{pipe} (don't use one).
|
2021-08-12 20:09:48 +02:00
|
|
|
|
@value{tramp} is based on running shells on the remote host, which
|
2021-09-24 13:31:32 +02:00
|
|
|
|
requires a pseudo tty. Therefore, it declares the variable
|
2021-08-12 20:09:48 +02:00
|
|
|
|
@code{tramp-process-connection-type}, which carries this information
|
2021-09-24 13:31:32 +02:00
|
|
|
|
for remote processes. Its default value is @code{t}, and there is no
|
|
|
|
|
need to change it. The name of the remote pseudo tty is returned by
|
|
|
|
|
the function @code{process-tty-name}.
|
2021-08-12 20:09:48 +02:00
|
|
|
|
|
2021-09-24 13:31:32 +02:00
|
|
|
|
If a remote process, started by @code{start-file-process}, should
|
|
|
|
|
@emph{not} use a pseudo tty, this can be requested by setting
|
2021-08-24 21:42:42 +02:00
|
|
|
|
@code{process-connection-type} to @code{nil} or @code{pipe}. There is
|
|
|
|
|
still a pseudo tty for the started process, but some terminal
|
|
|
|
|
properties are changed, like suppressing translation of carriage
|
|
|
|
|
return characters into newline.
|
2021-08-12 20:09:48 +02:00
|
|
|
|
|
2021-09-24 13:31:32 +02:00
|
|
|
|
The function @code{make-process} allows controlling this explicitly by
|
|
|
|
|
using the @code{:connection-type} keyword. If this keyword is not
|
|
|
|
|
used, the value of @code{process-connection-type} is applied instead.
|
2021-08-12 20:09:48 +02:00
|
|
|
|
|
|
|
|
|
|
2022-03-29 19:36:28 +02:00
|
|
|
|
@subsection Process properties of asynchronous remote processes
|
|
|
|
|
@cindex Asynchronous remote processes
|
|
|
|
|
|
|
|
|
|
When available, @value{tramp} adds process properties to process
|
|
|
|
|
objects of asynchronous properties. However, it is not guaranteed
|
|
|
|
|
that all these properties are set.
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item @code{remote-tty}
|
|
|
|
|
|
|
|
|
|
This is the name of the terminal a @var{process} uses on the remote
|
|
|
|
|
host, i.e., it reads and writes on.
|
|
|
|
|
|
|
|
|
|
@item @code{remote-pid}
|
|
|
|
|
|
|
|
|
|
The process id of the command executed on the remote host. This is
|
|
|
|
|
used when sending signals remotely.
|
|
|
|
|
|
|
|
|
|
@item @code{remote-command}
|
|
|
|
|
|
|
|
|
|
The remote command which has been invoked via @code{make-process} or
|
|
|
|
|
@code{start-file-process}, a list of strings (program and its
|
|
|
|
|
arguments). This does not show the additional shell sugar
|
|
|
|
|
@value{tramp} makes around the commands, in order to see this you must
|
|
|
|
|
inspect @value{tramp} @ref{Traces and Profiles, traces}.
|
|
|
|
|
@end itemize
|
|
|
|
|
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@findex list-system-processes
|
|
|
|
|
@findex process-attributes
|
|
|
|
|
The functions @code{list-system-processes} and
|
2022-04-13 16:40:32 +02:00
|
|
|
|
@code{process-attributes} return information about system processes on
|
|
|
|
|
the respective remote host. In order to retrieve this information,
|
|
|
|
|
they use the command @command{ps}, driven by the following constants:
|
2022-04-05 17:08:03 +02:00
|
|
|
|
|
|
|
|
|
@defvr Constant tramp-process-attributes-ps-args
|
|
|
|
|
This is a list of arguments (strings) @command{ps} is called with.
|
|
|
|
|
The default value is appropriate for GNU/Linux remote hosts.
|
|
|
|
|
@end defvr
|
|
|
|
|
|
|
|
|
|
@defvr Constant tramp-process-attributes-ps-format
|
|
|
|
|
This is a list of cons cells @code{(@var{key} . @var{type})} for
|
|
|
|
|
interpretation of the @command{ps} output. @var{key} is a key used in
|
|
|
|
|
the @code{process-attributes} output plus the key @code{pid}, and
|
|
|
|
|
@var{type} is the respective value returned by @command{ps}. It can
|
|
|
|
|
be
|
|
|
|
|
|
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@multitable {@bullet{} @code{numberp}} {--- a string of @var{number} width, can contain spaces}
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@item @bullet{} @code{numberp} @tab --- a number
|
|
|
|
|
@item @bullet{} @code{stringp} @tab --- a string without spaces
|
|
|
|
|
@item @bullet{} @var{number}
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@tab --- a string of @var{number} width, can contain spaces
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@item @bullet{} @code{nil} @tab --- a string until end of line
|
|
|
|
|
@end multitable
|
|
|
|
|
|
|
|
|
|
The default value is appropriate for GNU/Linux remote hosts.
|
|
|
|
|
@end defvr
|
|
|
|
|
|
|
|
|
|
If, for example, @code{tramp-process-attributes-ps-args} is declared
|
|
|
|
|
as @code{("-eww" "-o" "pid,euid,euser,egid,egroup,comm:40,state")},
|
|
|
|
|
the output of the respective @command{ps} command would look like
|
|
|
|
|
|
|
|
|
|
@smallexample
|
|
|
|
|
@group
|
|
|
|
|
PID EUID EUSER EGID EGROUP COMMAND S
|
|
|
|
|
1 0 root 0 root systemd S
|
|
|
|
|
1610 0 root 0 root NFSv4 callback S
|
|
|
|
|
@dots{}
|
|
|
|
|
@end group
|
|
|
|
|
@end smallexample
|
|
|
|
|
|
|
|
|
|
The corresponding @code{tramp-process-attributes-ps-format} has the value
|
|
|
|
|
|
|
|
|
|
@smallexample
|
|
|
|
|
@group
|
|
|
|
|
@code{((pid . numberp) (euid . numberp) (user . stringp)
|
|
|
|
|
(egid . numberp) (group . stringp) (comm . 40) (state . stringp))}
|
|
|
|
|
@end group
|
|
|
|
|
@end smallexample
|
|
|
|
|
|
|
|
|
|
@vindex tramp-adb-connection-local-default-ps-profile
|
|
|
|
|
@vindex tramp-adb-connection-local-default-ps-variables
|
|
|
|
|
@vindex tramp-connection-local-bsd-ps-profile
|
|
|
|
|
@vindex tramp-connection-local-bsd-ps-variables
|
|
|
|
|
@vindex tramp-connection-local-busybox-ps-profile
|
|
|
|
|
@vindex tramp-connection-local-busybox-ps-variables
|
2022-04-12 09:41:11 +02:00
|
|
|
|
@vindex tramp-connection-local-darwin-ps-profile
|
|
|
|
|
@vindex tramp-connection-local-darwin-ps-variables
|
2022-04-05 17:08:03 +02:00
|
|
|
|
The default values for @code{tramp-process-attributes-ps-args} and
|
|
|
|
|
@code{tramp-process-attributes-ps-format} can be overwritten by
|
|
|
|
|
connection-local variables.
|
|
|
|
|
@ifinfo
|
|
|
|
|
@xref{Connection Variables, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
This is already done by @value{tramp} for the @option{adb} method, see
|
|
|
|
|
@code{tramp-adb-connection-local-default-ps-profile} and
|
|
|
|
|
@code{tramp-adb-connection-local-default-ps-variables}.
|
|
|
|
|
|
2022-04-12 09:41:11 +02:00
|
|
|
|
There are three further predefined sets of connection-local variables
|
|
|
|
|
for remote BSD systems, for remote macOS systems, and for a remote
|
|
|
|
|
@command{ps} command implemented with @command{busybox}. These are
|
|
|
|
|
called @code{tramp-connection-local-*-ps-profile} and
|
|
|
|
|
@code{tramp-connection-local-*-ps-variables}. Use them like
|
2022-04-05 17:08:03 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "mybsdhost")
|
|
|
|
|
'tramp-connection-local-bsd-ps-profile)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2023-12-07 14:02:49 +01:00
|
|
|
|
@cindex @code{proced}
|
2022-04-05 17:08:03 +02:00
|
|
|
|
@vindex proced-show-remote-processes
|
|
|
|
|
If you want to see a listing of remote system processes when calling
|
|
|
|
|
@code{proced}, set user option @code{proced-show-remote-processes} to
|
|
|
|
|
non-@code{nil}, or invoke that command with a negative argument like
|
|
|
|
|
@kbd{C-u - M-x proced @key{RET}} when your buffer has a remote
|
|
|
|
|
@code{default-directory}.
|
|
|
|
|
|
2022-03-29 19:36:28 +02:00
|
|
|
|
|
2020-08-04 14:19:51 +02:00
|
|
|
|
@anchor{Improving performance of asynchronous remote processes}
|
|
|
|
|
@subsection Improving performance of asynchronous remote processes
|
|
|
|
|
@cindex Asynchronous remote processes
|
|
|
|
|
@findex make-process
|
|
|
|
|
@findex start-file-process
|
|
|
|
|
|
|
|
|
|
@value{tramp}'s implementation of @code{make-process} and
|
|
|
|
|
@code{start-file-process} requires a serious overhead for
|
|
|
|
|
initialization, every process invocation. This is needed for handling
|
2022-11-18 13:06:55 +01:00
|
|
|
|
interactive dialogs when connecting the remote host (like providing
|
2020-08-04 14:19:51 +02:00
|
|
|
|
a password), and initial environment setup.
|
|
|
|
|
|
|
|
|
|
Sometimes, this is not needed. Instead of starting a remote shell and
|
|
|
|
|
running the command afterwards, it is sufficient to run the command
|
|
|
|
|
directly. @value{tramp} supports this by an alternative
|
|
|
|
|
implementation of @code{make-process} and @code{start-file-process}.
|
2024-05-19 14:13:03 +02:00
|
|
|
|
This is triggered by the connection-local variable
|
|
|
|
|
@code{tramp-direct-async-process},
|
|
|
|
|
@ifinfo
|
|
|
|
|
@xref{Connection Variables, , , emacs},
|
|
|
|
|
@end ifinfo
|
2020-08-04 14:19:51 +02:00
|
|
|
|
which must be set to a non-@code{nil} value. Example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
2024-05-19 14:13:03 +02:00
|
|
|
|
(connection-local-set-profile-variables
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'remote-direct-async-process
|
|
|
|
|
'((tramp-direct-async-process . t)))
|
2024-05-19 14:13:03 +02:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "remotehost")
|
|
|
|
|
'remote-direct-async-process)
|
2020-08-04 14:19:51 +02:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2024-11-03 15:48:19 +01:00
|
|
|
|
This enables direct async processes for the host @samp{remotehost}.
|
|
|
|
|
If you want to enable direct async processes for all remote hosts
|
|
|
|
|
connected via the same method (e.g., @option{ssh}), use instead
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :protocol "ssh")
|
|
|
|
|
'remote-direct-async-process)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2020-08-12 12:45:45 +02:00
|
|
|
|
Using direct asynchronous processes in @value{tramp} is not possible,
|
|
|
|
|
if the remote host is connected via multiple hops
|
2020-08-23 13:30:43 +02:00
|
|
|
|
(@pxref{Multi-hops}). In this case, @value{tramp} falls back to its
|
|
|
|
|
classical implementation.
|
2020-08-12 12:45:45 +02:00
|
|
|
|
|
|
|
|
|
Furthermore, this approach has the following limitations:
|
2020-08-04 14:19:51 +02:00
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item
|
2022-11-21 14:49:54 +01:00
|
|
|
|
It works only for some connection methods defined in
|
|
|
|
|
@file{tramp-adb.el}, @file{tramp-container.el}, @file{tramp-sh.el} and
|
|
|
|
|
@file{tramp-sshfs.el}.
|
2020-08-04 14:19:51 +02:00
|
|
|
|
|
|
|
|
|
@item
|
2020-08-23 13:30:43 +02:00
|
|
|
|
It does not support interactive user authentication. With
|
|
|
|
|
@option{ssh}-based methods, this can be avoided by using a password
|
|
|
|
|
agent like @command{ssh-agent}, using public key authentication, or
|
2020-09-24 10:17:03 +02:00
|
|
|
|
using @option{ControlMaster} options.
|
2020-08-04 14:19:51 +02:00
|
|
|
|
|
2021-01-22 17:39:52 +01:00
|
|
|
|
@item
|
|
|
|
|
It cannot be applied for @option{ssh}-based methods, which use the
|
|
|
|
|
@option{RemoteCommand} option.
|
|
|
|
|
|
2020-08-04 14:19:51 +02:00
|
|
|
|
@item
|
|
|
|
|
It cannot be killed via @code{interrupt-process}.
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
It does not report the remote terminal name via @code{process-tty-name}.
|
|
|
|
|
|
2020-08-23 13:30:43 +02:00
|
|
|
|
@item
|
|
|
|
|
It does not set process property @code{remote-pid}.
|
2024-07-17 17:57:20 +02:00
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
It fails, when the command is too long. This can happen on
|
|
|
|
|
directories with a long directory name, or when the remote @env{PATH}
|
|
|
|
|
and/or other environment variables, which must be set, are too long.
|
2020-08-04 14:19:51 +02:00
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
In order to gain even more performance, it is recommended to bind
|
|
|
|
|
@code{tramp-verbose} to 0 when running @code{make-process} or
|
2020-08-12 12:45:45 +02:00
|
|
|
|
@code{start-file-process}. Furthermore, you might set
|
2023-03-19 13:11:06 +01:00
|
|
|
|
@code{tramp-use-connection-share} to @code{nil} in order to bypass
|
|
|
|
|
@value{tramp}'s handling of the @option{ControlMaster} options, and
|
2024-05-13 10:31:13 +02:00
|
|
|
|
use your own settings in @file{~/.ssh/config}, @pxref{Using ssh
|
2023-03-06 13:35:49 +01:00
|
|
|
|
connection sharing}.
|
2020-08-04 14:19:51 +02:00
|
|
|
|
|
2024-05-19 14:13:03 +02:00
|
|
|
|
@c Since Emacs 30.
|
|
|
|
|
@strong{Note}: In previous @value{tramp} versions this was triggered
|
|
|
|
|
by the connection property @t{"direct-async-process"}. This is still
|
|
|
|
|
supported but deprecated, and it will be removed in a future
|
|
|
|
|
@value{tramp} version.
|
|
|
|
|
|
2020-08-04 14:19:51 +02:00
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@node Cleanup remote connections
|
2012-06-11 15:03:39 +02:00
|
|
|
|
@section Cleanup remote connections
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@cindex cleanup
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} provides several ways to flush remote connections.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2019-11-20 13:45:30 +01:00
|
|
|
|
@deffn Command tramp-cleanup-connection vec &optional keep-debug keep-password
|
|
|
|
|
This command flushes all connection related objects. @var{vec} is the
|
|
|
|
|
internal representation of a remote connection. When called
|
2015-12-29 15:33:54 +01:00
|
|
|
|
interactively, this command lists active remote connections in the
|
2016-01-24 11:40:26 -08:00
|
|
|
|
minibuffer. Each connection is of the format
|
2019-07-01 23:44:05 +02:00
|
|
|
|
@file{@trampfn{method,user@@host,}}.
|
|
|
|
|
|
|
|
|
|
Flushing remote connections also cleans the password cache
|
|
|
|
|
(@pxref{Password handling}), file cache, connection cache
|
2021-02-21 10:24:56 +01:00
|
|
|
|
(@pxref{Connection caching}), and recentf
|
|
|
|
|
@ifinfo
|
|
|
|
|
cache (@pxref{File Conveniences, , , emacs}).
|
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
cache.
|
|
|
|
|
@end ifnotinfo
|
|
|
|
|
It also deletes session timers (@pxref{Predefined connection
|
|
|
|
|
information}) and connection buffers.
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
|
|
|
|
If @var{keep-debug} is non-@code{nil}, the debug buffer is kept. A
|
|
|
|
|
non-@code{nil} @var{keep-password} preserves the password cache.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@end deffn
|
|
|
|
|
|
2011-07-04 14:31:55 +02:00
|
|
|
|
@deffn Command tramp-cleanup-this-connection
|
2019-11-20 13:45:30 +01:00
|
|
|
|
Flushes the current buffer's remote connection objects, the same as in
|
|
|
|
|
@code{tramp-cleanup-connection}.
|
2011-07-04 14:31:55 +02:00
|
|
|
|
@end deffn
|
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@deffn Command tramp-cleanup-all-connections
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Flushes all active remote connection objects, the same as in
|
2018-12-31 12:18:41 +01:00
|
|
|
|
@code{tramp-cleanup-connection}. This command removes also ad-hoc
|
|
|
|
|
proxy definitions (@pxref{Ad-hoc multi-hops}).
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-cleanup-all-buffers
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Just as for @code{tramp-cleanup-all-connections}, all remote
|
2018-12-31 12:18:41 +01:00
|
|
|
|
connections and ad-hoc proxy definition are cleaned up in addition to
|
2019-07-01 23:44:05 +02:00
|
|
|
|
killing all buffers related to remote connections.
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@end deffn
|
|
|
|
|
|
2023-04-26 18:06:39 +02:00
|
|
|
|
@deffn Command tramp-cleanup-some-buffers
|
|
|
|
|
Similar to @code{tramp-cleanup-all-buffers}, where all remote
|
|
|
|
|
connections and ad-hoc proxy definition are cleaned up. However,
|
|
|
|
|
additional buffers are killed only if one of the functions in
|
|
|
|
|
@code{tramp-cleanup-some-buffers-hook} returns @code{t}.
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@defopt tramp-cleanup-some-buffers-hook
|
|
|
|
|
The functions in this hook determine, whether a remote buffer is
|
|
|
|
|
killed when @code{tramp-cleanup-some-buffers} is called. Per default,
|
|
|
|
|
remote buffers which are linked to a remote file, remote @code{dired}
|
|
|
|
|
buffers, and buffers related to a remote process are cleaned up.
|
|
|
|
|
@end defopt
|
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2019-11-20 13:45:30 +01:00
|
|
|
|
@node Renaming remote files
|
|
|
|
|
@section Renaming remote files
|
|
|
|
|
@cindex save remote files
|
|
|
|
|
|
|
|
|
|
Sometimes, it is desirable to safe file contents of buffers visiting a
|
|
|
|
|
given remote host. This could happen for example, if the local host
|
|
|
|
|
changes its network integration, and the remote host is not reachable
|
|
|
|
|
anymore.
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-rename-files source target
|
|
|
|
|
Replace in all buffers the visiting file name from @var{source} to
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@var{target}. @var{source} is a remote directory name, which can
|
2019-11-20 13:45:30 +01:00
|
|
|
|
contain also a localname part. @var{target} is the directory name
|
|
|
|
|
@var{source} is replaced with. Often, @var{target} is a remote
|
|
|
|
|
directory name on another host, but it can also be a local directory
|
|
|
|
|
name. If @var{target} has no local part, the local part from
|
|
|
|
|
@var{source} is used.
|
|
|
|
|
|
|
|
|
|
If @var{target} is @code{nil}, it is selected according to the first
|
|
|
|
|
match in @code{tramp-default-rename-alist}. If called interactively,
|
|
|
|
|
this match is offered as initial value for selection.
|
|
|
|
|
|
|
|
|
|
On all buffers, which have a @code{buffer-file-name} matching
|
|
|
|
|
@var{source}, this name is modified by replacing @var{source} with
|
|
|
|
|
@var{target}. This is applied by calling
|
|
|
|
|
@code{set-visited-file-name}. The new @code{buffer-file-name} is
|
|
|
|
|
prompted for modification in the minibuffer. The buffers are marked
|
|
|
|
|
modified, and must be saved explicitly.
|
|
|
|
|
|
2020-09-24 10:17:03 +02:00
|
|
|
|
If user option @code{tramp-confirm-rename-file-names} is @code{nil},
|
|
|
|
|
changing the file name happens without confirmation. This requires a
|
2019-11-20 13:45:30 +01:00
|
|
|
|
matching entry in @code{tramp-default-rename-alist}.
|
|
|
|
|
|
|
|
|
|
Remote buffers related to the remote connection identified by
|
|
|
|
|
@var{source}, which are not visiting files, or which are visiting
|
|
|
|
|
files not matching @var{source}, are not modified.
|
|
|
|
|
|
|
|
|
|
Interactively, @var{target} is selected from
|
|
|
|
|
@code{tramp-default-rename-alist} without confirmation if the prefix
|
|
|
|
|
argument is non-@code{nil}.
|
|
|
|
|
|
|
|
|
|
The remote connection identified by @var{source} is flushed by
|
|
|
|
|
@code{tramp-cleanup-connection}.
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@deffn Command tramp-rename-these-files target
|
|
|
|
|
Replace visiting file names to @var{target}. The current buffer must
|
|
|
|
|
be related to a remote connection. In all buffers, which are visiting
|
|
|
|
|
a file with the same directory name, the buffer file name is changed.
|
|
|
|
|
|
|
|
|
|
Interactively, @var{target} is selected from
|
|
|
|
|
@code{tramp-default-rename-alist} without confirmation if the prefix
|
|
|
|
|
argument is non-@code{nil}.
|
|
|
|
|
@end deffn
|
|
|
|
|
|
|
|
|
|
@defopt tramp-default-rename-alist
|
|
|
|
|
The default target for renaming remote buffer file names. This is an
|
|
|
|
|
alist of cons cells @code{(source . target)}. The first matching item
|
|
|
|
|
specifies the target to be applied for renaming buffer file names from
|
|
|
|
|
source via @code{tramp-rename-files}. @code{source} is a regular
|
2024-11-13 17:10:57 +01:00
|
|
|
|
expression, which is used to match a remote file name. @code{target}
|
|
|
|
|
must be a directory name, which can be remote (including remote
|
|
|
|
|
directories which @value{tramp} infers by default, such as
|
|
|
|
|
@file{@trampfn{method,user@@host,}}).
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@code{target} can contain the format specifiers @code{%m}, @code{%u},
|
|
|
|
|
or @code{%h}, which are replaced by the method name, user name, or host
|
|
|
|
|
name of @code{source} respectively when calling @code{tramp-rename-files}.
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@code{source} can also be a Lisp form, which is evaluated. The result
|
|
|
|
|
must be a string (which is used as a regular expression to match) or
|
|
|
|
|
@code{nil}, which is interpreted as a regular expression which always
|
|
|
|
|
matches.
|
2019-11-20 13:45:30 +01:00
|
|
|
|
|
|
|
|
|
Example entries:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
("@trampfn{ssh,badhost,/path/to/dir/}"
|
|
|
|
|
. "@trampfn{ssh,goodhost,/path/to/another/dir/}")
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
would trigger renaming of buffer file names on @samp{badhost} to
|
|
|
|
|
@samp{goodhost}, including changing the directory name.
|
|
|
|
|
|
|
|
|
|
@lisp
|
2022-01-22 17:12:14 +01:00
|
|
|
|
("@trampfn{ssh,.+\\\\.company\\\\.org,}" @c
|
|
|
|
|
. "@value{prefix}ssh@value{postfixhop}multi.hop|@c
|
|
|
|
|
ssh@value{postfixhop}%h@value{postfix}")
|
2019-11-20 13:45:30 +01:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
routes all connections to a host in @samp{company.org} via
|
2024-05-12 19:40:08 +02:00
|
|
|
|
@file{@trampfn{ssh,multi.hop,}}, which might be useful when using
|
2019-11-20 13:45:30 +01:00
|
|
|
|
Emacs outside the company network.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(nil . "~/saved-files/%m:%u@@%h/")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
saves all remote files locally, with a directory name including method
|
|
|
|
|
name, user name and host name of the remote connection.
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
@defopt tramp-confirm-rename-file-names
|
|
|
|
|
Whether renaming a buffer file name by @code{tramp-rename-files} or
|
|
|
|
|
@code{tramp-rename-these-files} must be confirmed.
|
|
|
|
|
@end defopt
|
|
|
|
|
|
|
|
|
|
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@node Archive file names
|
|
|
|
|
@section Archive file names
|
|
|
|
|
@cindex file archives
|
|
|
|
|
@cindex archive file names
|
|
|
|
|
@cindex method archive
|
|
|
|
|
@cindex archive method
|
|
|
|
|
|
|
|
|
|
@value{tramp} offers also transparent access to files inside file
|
2019-11-20 13:45:30 +01:00
|
|
|
|
archives. This is possible only on hosts which have installed
|
2024-05-13 10:31:13 +02:00
|
|
|
|
@acronym{GVFS, the GNOME Virtual File System}, @pxref{GVFS-based
|
2019-08-22 14:50:38 +02:00
|
|
|
|
methods}. Internally, file archives are mounted via the
|
|
|
|
|
@acronym{GVFS} @option{archive} method.
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
|
|
|
|
A file archive is a regular file of kind @file{/path/to/dir/file.EXT}.
|
2022-02-05 07:26:24 +01:00
|
|
|
|
The extension @samp{.EXT} identifies the type of the file archive. To
|
|
|
|
|
examine the contents of an archive with Dired, open file name as if it
|
|
|
|
|
were a directory (i.e., open @file{/path/to/dir/file.EXT/}). A file
|
|
|
|
|
inside a file archive, called archive file name, has the name
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@file{/path/to/dir/file.EXT/dir/file}.
|
|
|
|
|
|
|
|
|
|
Most of the @ref{Magic File Names, , magic file name operations,
|
|
|
|
|
elisp}, are implemented for archive file names, exceptions are all
|
|
|
|
|
operations which write into a file archive, and process related
|
|
|
|
|
operations. Therefore, functions like
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(copy-file "/path/to/dir/file.tar/dir/file" "/somewhere/else")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@noindent
|
|
|
|
|
work out of the box. This is also true for file name completion, and
|
|
|
|
|
for libraries like @code{dired} or @code{ediff}, which accept archive
|
|
|
|
|
file names as well.
|
|
|
|
|
|
|
|
|
|
@vindex tramp-archive-suffixes
|
|
|
|
|
File archives are identified by the file name extension @samp{.EXT}.
|
2019-08-22 14:50:38 +02:00
|
|
|
|
Since @acronym{GVFS} uses internally the library @code{libarchive(3)},
|
|
|
|
|
all suffixes, which are accepted by this library, work also for
|
|
|
|
|
archive file names. Accepted suffixes are listed in the constant
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@code{tramp-archive-suffixes}. They are
|
|
|
|
|
|
|
|
|
|
@itemize
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{7z} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{7z}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.7z} ---
|
|
|
|
|
7-Zip archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{apk} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{apk}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.apk} ---
|
|
|
|
|
Android package kits
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{ar} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{ar}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.ar} ---
|
|
|
|
|
UNIX archiver formats
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{cab} file archive suffix
|
|
|
|
|
@cindex @file{CAB} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{cab}
|
|
|
|
|
@cindex file archive suffix @file{CAB}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.cab}, @samp{.CAB} ---
|
|
|
|
|
Microsoft Windows cabinets
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{cpio} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{cpio}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.cpio} ---
|
|
|
|
|
CPIO archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2021-12-04 20:02:07 +01:00
|
|
|
|
@cindex @file{crate} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{crate}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.crate} ---
|
|
|
|
|
Cargo (Rust) packages
|
2021-12-04 20:02:07 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{deb} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{deb}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.deb} ---
|
|
|
|
|
Debian packages
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{depot} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{depot}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.depot} ---
|
|
|
|
|
HP-UX SD depots
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2022-05-24 12:15:41 +02:00
|
|
|
|
@cindex @file{epub} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{epub}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.epub} ---
|
|
|
|
|
Electronic publications
|
2022-05-24 12:15:41 +02:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{exe} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{exe}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.exe} ---
|
|
|
|
|
Self extracting Microsoft Windows EXE files
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{iso} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{iso}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.iso} ---
|
|
|
|
|
ISO 9660 images
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{jar} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{jar}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.jar} ---
|
|
|
|
|
Java archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{lzh} file archive suffix
|
|
|
|
|
@cindex @file{LZH} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{lzh}
|
|
|
|
|
@cindex file archive suffix @file{LZH}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.lzh}, @samp{.LZH} ---
|
|
|
|
|
Microsoft Windows compressed LHA archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-02-27 15:26:09 +01:00
|
|
|
|
@cindex @file{msu} file archive suffix
|
|
|
|
|
@cindex @file{MSU} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{msu}
|
|
|
|
|
@cindex file archive suffix @file{MSU}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.msu}, @samp{.MSU} ---
|
|
|
|
|
Microsoft Windows Update packages
|
2018-02-27 15:26:09 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{mtree} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{mtree}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.mtree} ---
|
|
|
|
|
BSD mtree format
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-03-08 14:09:38 +01:00
|
|
|
|
@cindex @file{odb} file archive suffix
|
|
|
|
|
@cindex @file{odf} file archive suffix
|
|
|
|
|
@cindex @file{odg} file archive suffix
|
|
|
|
|
@cindex @file{odp} file archive suffix
|
|
|
|
|
@cindex @file{ods} file archive suffix
|
|
|
|
|
@cindex @file{odt} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{odb}
|
|
|
|
|
@cindex file archive suffix @file{odf}
|
|
|
|
|
@cindex file archive suffix @file{odg}
|
|
|
|
|
@cindex file archive suffix @file{odp}
|
|
|
|
|
@cindex file archive suffix @file{ods}
|
|
|
|
|
@cindex file archive suffix @file{odt}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.odb}, @samp{.odf}, @samp{.odg}, @samp{.odp}, @samp{.ods},
|
|
|
|
|
@samp{.odt} ---
|
|
|
|
|
OpenDocument formats
|
2018-03-08 14:09:38 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{pax} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{pax}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.pax} ---
|
|
|
|
|
Posix archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{rar} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{rar}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.rar} ---
|
|
|
|
|
RAR archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{rpm} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{rpm}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.rpm} ---
|
|
|
|
|
Red Hat packages
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{shar} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{shar}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.shar} ---
|
|
|
|
|
Shell archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{tar} file archive suffix
|
|
|
|
|
@cindex @file{tbz} file archive suffix
|
|
|
|
|
@cindex @file{tgz} file archive suffix
|
|
|
|
|
@cindex @file{tlz} file archive suffix
|
|
|
|
|
@cindex @file{txz} file archive suffix
|
2019-06-24 15:57:33 +02:00
|
|
|
|
@cindex @file{tzst} file archive suffix
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex file archive suffix @file{tar}
|
|
|
|
|
@cindex file archive suffix @file{tbz}
|
|
|
|
|
@cindex file archive suffix @file{tgz}
|
|
|
|
|
@cindex file archive suffix @file{tlz}
|
|
|
|
|
@cindex file archive suffix @file{txz}
|
2019-06-24 15:57:33 +02:00
|
|
|
|
@cindex file archive suffix @file{tzst}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.tar}, @samp{.tbz}, @samp{.tgz}, @samp{.tlz}, @samp{.txz},
|
|
|
|
|
@samp{.tzst} ---
|
|
|
|
|
(Compressed) tape archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{warc} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{warc}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.warc} ---
|
|
|
|
|
Web archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{xar} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{xar}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.xar} ---
|
|
|
|
|
macOS XAR archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-02-19 19:44:57 +01:00
|
|
|
|
@cindex @file{xpi} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{xpi}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.xpi} ---
|
|
|
|
|
XPInstall Mozilla addons
|
2018-02-19 19:44:57 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{xps} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{xps}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.xps} ---
|
|
|
|
|
Open XML Paper Specification (OpenXPS) documents
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2018-01-20 13:30:20 +01:00
|
|
|
|
@cindex @file{zip} file archive suffix
|
|
|
|
|
@cindex @file{ZIP} file archive suffix
|
|
|
|
|
@cindex file archive suffix @file{zip}
|
|
|
|
|
@cindex file archive suffix @file{ZIP}
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item @samp{.zip}, @samp{.ZIP} ---
|
|
|
|
|
ZIP archives
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
@vindex tramp-archive-compression-suffixes
|
|
|
|
|
File archives could also be compressed, identified by an additional
|
|
|
|
|
compression suffix. Valid compression suffixes are listed in the
|
|
|
|
|
constant @code{tramp-archive-compression-suffixes}. They are
|
|
|
|
|
@samp{.bz2}, @samp{.gz}, @samp{.lrz}, @samp{.lz}, @samp{.lz4},
|
2019-06-24 15:57:33 +02:00
|
|
|
|
@samp{.lzma}, @samp{.lzo}, @samp{.uu}, @samp{.xz}, @samp{.Z}, and
|
|
|
|
|
@samp{.zst}. A valid archive file name would be
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@file{/path/to/dir/file.tar.gz/dir/file}. Even several suffixes in a
|
|
|
|
|
row are possible, like @file{/path/to/dir/file.tar.gz.uu/dir/file}.
|
|
|
|
|
|
|
|
|
|
@vindex tramp-archive-all-gvfs-methods
|
2024-11-13 17:10:57 +01:00
|
|
|
|
An archive file name can be a remote file name, as in
|
2020-11-30 13:44:44 +01:00
|
|
|
|
@file{/ftp:anonymous@@ftp.gnu.org:/gnu/tramp/tramp-2.4.5.tar.gz/INSTALL}.
|
2019-08-22 14:50:38 +02:00
|
|
|
|
Since all file operations are mapped internally to @acronym{GVFS}
|
|
|
|
|
operations, remote file names supported by @code{tramp-gvfs} perform
|
|
|
|
|
better, because no local copy of the file archive must be downloaded
|
|
|
|
|
first. For example, @samp{/sftp:user@@host:...} performs better than
|
|
|
|
|
the similar @samp{/scp:user@@host:...}. See the constant
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@code{tramp-archive-all-gvfs-methods} for a complete list of
|
|
|
|
|
@code{tramp-gvfs} supported method names.
|
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
If @code{url-handler-mode} is enabled, archives can be visited via
|
2018-02-03 13:22:56 +01:00
|
|
|
|
URLs, like
|
2020-11-30 13:44:44 +01:00
|
|
|
|
@file{https://ftp.gnu.org/gnu/tramp/tramp-2.4.5.tar.gz/INSTALL}. This
|
2017-12-10 10:48:34 +01:00
|
|
|
|
allows complex file operations like
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
2017-12-10 10:48:34 +01:00
|
|
|
|
(progn
|
|
|
|
|
(url-handler-mode 1)
|
|
|
|
|
(ediff-directories
|
2020-11-30 13:44:44 +01:00
|
|
|
|
"https://ftp.gnu.org/gnu/tramp/tramp-2.4.4.tar.gz/tramp-2.4.4"
|
|
|
|
|
"https://ftp.gnu.org/gnu/tramp/tramp-2.4.5.tar.gz/tramp-2.4.5" ""))
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
It is even possible to access file archives in file archives, as
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
2018-02-03 13:22:56 +01:00
|
|
|
|
(progn
|
|
|
|
|
(url-handler-mode 1)
|
|
|
|
|
(find-file
|
2022-01-22 17:12:14 +01:00
|
|
|
|
"https://ftp.debian.org/debian/pool/main/c/coreutils/\
|
|
|
|
|
coreutils_8.28-1_amd64.deb/control.tar.gz/control"))
|
2017-12-09 14:34:30 +01:00
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2020-03-25 19:24:06 +01:00
|
|
|
|
@vindex tramp-archive-enabled
|
2024-11-13 17:10:57 +01:00
|
|
|
|
In order to disable file archives, you can add the following form to
|
2020-03-25 19:24:06 +01:00
|
|
|
|
your init file:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-archive-enabled nil)
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2017-12-09 14:34:30 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Bug Reports
|
|
|
|
|
@chapter Reporting Bugs and Problems
|
|
|
|
|
@cindex bug reports
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}'s development team is actively engaged in solving bugs
|
|
|
|
|
and problems and looks to feature requests and suggestions.
|
|
|
|
|
|
|
|
|
|
@value{tramp}'s mailing list is the place for more advice and
|
|
|
|
|
information on working with @value{tramp}, solving problems,
|
|
|
|
|
discussing, and general discussions about @value{tramp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}'s mailing list is moderated but even non-subscribers can
|
|
|
|
|
post for moderator approval. Sometimes this approval step may take as
|
|
|
|
|
long as 48 hours due to public holidays.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-10-04 09:46:14 +02:00
|
|
|
|
@email{@value{tramp-bug-report-address}} is the mailing list.
|
|
|
|
|
Messages sent to this address go to all the subscribers. This is
|
|
|
|
|
@emph{not} the address to send subscription requests to.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To subscribe to the mailing list, visit:
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@uref{https://lists.gnu.org/mailman/listinfo/tramp-devel/, the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} Mail Subscription Page}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-06-18 14:40:20 +02:00
|
|
|
|
There is also a @acronym{Gmane} group, mirroring the mailing list.
|
|
|
|
|
Its name is @samp{gmane.emacs.tramp}.
|
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
@ifset installchapter
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Before sending a bug report, run the test suite first @ref{Testing}.
|
2013-12-12 10:57:56 +01:00
|
|
|
|
@end ifset
|
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@findex tramp-bug
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Check if the bug or problem is already addressed in @xref{Frequently
|
2007-09-06 05:07:05 +00:00
|
|
|
|
Asked Questions}.
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
Run @kbd{M-x tramp-bug @key{RET}} to generate a buffer with details of
|
|
|
|
|
the system along with the details of the @value{tramp} installation.
|
|
|
|
|
Please include these details with the bug report.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
The bug report must describe in as excruciating detail as possible the
|
|
|
|
|
steps required to reproduce the problem. These details must include
|
|
|
|
|
the setup of the remote host and any special or unique conditions that
|
|
|
|
|
exist.
|
|
|
|
|
|
|
|
|
|
Include a minimal test case that reproduces the problem. This will
|
|
|
|
|
help the development team find the best solution and avoid unrelated
|
|
|
|
|
detours.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To exclude cache-related problems, flush all caches before running the
|
2024-05-13 10:31:13 +02:00
|
|
|
|
test, @pxref{Cleanup remote connections}. Alternatively, and often
|
2020-01-22 09:25:58 +01:00
|
|
|
|
better for analysis, reproduce the problem in a clean Emacs session
|
|
|
|
|
started with @command{emacs -Q}. Then, @value{tramp} does not load
|
|
|
|
|
the persistency file (@pxref{Connection caching}), and it does not use
|
2021-07-26 09:55:30 +02:00
|
|
|
|
passwords from @file{auth-source.el} (@pxref{Password handling}). The
|
|
|
|
|
latter does not happen for the @option{sudoedit} method, otherwise it
|
|
|
|
|
would be unusable.
|
2012-09-12 18:39:10 +02:00
|
|
|
|
|
2021-10-11 10:16:06 +02:00
|
|
|
|
If you use the GNU ELPA version of @value{tramp}, you must load it
|
|
|
|
|
explicitly, because @command{emacs -Q} ignores installed ELPA
|
|
|
|
|
packages. Call (version number adapted)
|
|
|
|
|
|
|
|
|
|
@example
|
2021-10-13 18:59:10 +02:00
|
|
|
|
$ emacs -Q -l ~/.emacs.d/elpa/tramp-2.4.5.1/tramp-autoloads
|
2021-10-11 10:16:06 +02:00
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When including @value{tramp}'s messages in the bug report, increase
|
|
|
|
|
the verbosity level to 6 (@pxref{Traces and Profiles, Traces}) in the
|
|
|
|
|
@file{~/.emacs} file before repeating steps to the bug. Include the
|
|
|
|
|
contents of the @file{*tramp/foo*} and @file{*debug tramp/foo*}
|
2024-11-13 17:10:57 +01:00
|
|
|
|
buffers with the bug report. Since those buffers could contain
|
2018-08-11 09:51:27 +02:00
|
|
|
|
non-@acronym{ASCII} characters which are relevant for analysis, append
|
2024-11-13 17:10:57 +01:00
|
|
|
|
the buffers as attachments to the bug report rather than placing them
|
|
|
|
|
inline. This is also needed in order to avoid line breaks getting added
|
|
|
|
|
or deleted during mail transfer.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
If you send the message from Emacs, you are asked whether to append
|
2021-10-13 18:59:10 +02:00
|
|
|
|
these buffers to the bug report. If you use an external mail program,
|
|
|
|
|
you must save these buffers to files, and append them with that mail
|
|
|
|
|
program.
|
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@strong{Note} that a verbosity level greater than 6 is not necessary at
|
|
|
|
|
this stage. Also note that with a verbosity level of 6 or greater, the
|
|
|
|
|
contents of files and directories will be included in the debug buffer.
|
|
|
|
|
Passwords typed in @value{tramp} will never be included there.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node Frequently Asked Questions
|
|
|
|
|
@chapter Frequently Asked Questions
|
|
|
|
|
@cindex frequently asked questions
|
|
|
|
|
@cindex FAQ
|
|
|
|
|
|
|
|
|
|
@itemize @bullet
|
2022-02-22 14:45:59 +01:00
|
|
|
|
@item
|
|
|
|
|
What is the official name - ``Tramp'' or ``@value{tramp}''?
|
|
|
|
|
|
|
|
|
|
The official name is ``Tramp''. This is used in comments, docstrings,
|
|
|
|
|
and everywhere speaking about @value{tramp}.
|
|
|
|
|
|
|
|
|
|
However, for historical reasons this is formatted as ``@@sc@{Tramp@}''
|
2022-02-22 14:08:07 +00:00
|
|
|
|
in the @value{tramp} manual.
|
|
|
|
|
@ifinfo
|
|
|
|
|
@pxref{Smallcaps, , , texinfo}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
So it looks different there.
|
2022-02-22 14:45:59 +01:00
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Where is the latest @value{tramp}?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} is available at the GNU URL:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@uref{https://ftp.gnu.org/gnu/tramp/}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp}'s GNU project page is located here:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@noindent
|
2017-07-02 17:11:12 +02:00
|
|
|
|
@uref{https://savannah.gnu.org/projects/tramp/}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
Which systems does it work on?
|
|
|
|
|
|
2023-01-06 13:34:33 +01:00
|
|
|
|
The package works successfully on @w{Emacs 27}, @w{Emacs 28}, @w{Emacs
|
|
|
|
|
29}, and @w{Emacs 30}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
While Unix and Unix-like systems are the primary remote targets,
|
|
|
|
|
@value{tramp} has equal success connecting to other platforms, such as
|
2017-04-02 11:02:54 +02:00
|
|
|
|
MS Windows 7/8/10.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
How to speed up @value{tramp}?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} does many things in the background, some of which
|
|
|
|
|
depends on network speeds, response speeds of remote hosts, and
|
|
|
|
|
authentication delays. During these operations, @value{tramp}'s
|
|
|
|
|
responsiveness slows down. Some suggestions within the scope of
|
|
|
|
|
@value{tramp}'s settings include:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@itemize @minus
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Use an external method, such as @option{scp}, which are faster than
|
2022-08-20 08:44:57 +02:00
|
|
|
|
internal methods for large files.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@item
|
2018-05-29 12:42:17 +02:00
|
|
|
|
Keep the file @code{tramp-persistency-file-name}, which is where
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} caches remote information about hosts and files. Caching
|
|
|
|
|
is enabled by default. Don't disable it.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2018-04-19 11:04:01 +02:00
|
|
|
|
@vindex remote-file-name-inhibit-cache
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Set @code{remote-file-name-inhibit-cache} to @code{nil} if remote
|
|
|
|
|
files are not independently updated outside @value{tramp}'s control.
|
|
|
|
|
That cache cleanup will be necessary if the remote directories or
|
|
|
|
|
files are updated independent of @value{tramp}.
|
|
|
|
|
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Disable version control to avoid delays:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-06-22 21:39:28 +00:00
|
|
|
|
(setq vc-ignore-dir-regexp
|
|
|
|
|
(format "\\(%s\\)\\|\\(%s\\)"
|
|
|
|
|
vc-ignore-dir-regexp
|
|
|
|
|
tramp-file-name-regexp))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2017-09-18 18:00:07 +02:00
|
|
|
|
If this is too radical, because you want to use version control
|
|
|
|
|
remotely, trim @code{vc-handled-backends} to just those you care
|
|
|
|
|
about, for example:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(setq vc-handled-backends '(SVN Git))
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@vindex remote-file-name-inhibit-locks
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2022-08-20 08:44:57 +02:00
|
|
|
|
Disable file locks. Set @code{remote-file-name-inhibit-locks} to
|
|
|
|
|
@code{t} if you know that different Emacs sessions are not modifying
|
|
|
|
|
the same remote file.
|
|
|
|
|
|
2023-03-23 17:09:52 +01:00
|
|
|
|
@vindex remote-file-name-inhibit-auto-save
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2023-03-23 17:09:52 +01:00
|
|
|
|
Keep auto-save files local. This is already the default configuration
|
|
|
|
|
in Emacs, don't change it. If you want to disable auto-saving for
|
|
|
|
|
remote files at all, set @code{remote-file-name-inhibit-auto-save} to
|
|
|
|
|
@code{t}, but think about the consequences!
|
|
|
|
|
|
|
|
|
|
If you want to disable auto-saving just for selected connections, for
|
|
|
|
|
example due to security considerations, use connection-local variables
|
|
|
|
|
in order to set @code{buffer-auto-save-file-name}. If you, for
|
|
|
|
|
example, want to disable auto-saving for all @option{sudo}
|
|
|
|
|
connections, apply the following code.
|
|
|
|
|
@ifinfo
|
|
|
|
|
@xref{Connection Variables, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'my-auto-save-profile
|
|
|
|
|
'((buffer-auto-save-file-name . nil)))
|
2023-03-23 17:09:52 +01:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :protocol "sudo")
|
|
|
|
|
'my-auto-save-profile)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2024-06-02 19:30:12 +02:00
|
|
|
|
@item
|
|
|
|
|
Use direct asynchronous processes if possible.
|
|
|
|
|
|
|
|
|
|
@item
|
|
|
|
|
Suppress reading the remote history file in @code{shell}. Set
|
|
|
|
|
@code{shell-history-file-name} to @code{t}.
|
|
|
|
|
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Disable excessive traces. Set @code{tramp-verbose} to 3 or lower,
|
|
|
|
|
default being 3. Increase trace levels temporarily when hunting for
|
|
|
|
|
bugs.
|
2022-08-20 08:44:57 +02:00
|
|
|
|
@end itemize
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
|
|
|
|
@value{tramp} does not connect to the remote host
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Three main reasons for why @value{tramp} does not connect to the remote host:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@itemize @minus
|
|
|
|
|
@item
|
|
|
|
|
Unknown characters in the prompt
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} needs a clean recognizable prompt on the remote host for
|
|
|
|
|
accurate parsing. Shell prompts that contain escape sequences for
|
|
|
|
|
coloring cause parsing problems. @ref{Remote shell setup} for
|
|
|
|
|
customizing prompt detection using regular expressions.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To check if the remote host's prompt is being recognized, use this
|
|
|
|
|
test: switch to @value{tramp} connection buffer @file{*tramp/foo*},
|
|
|
|
|
put the cursor at the top of the buffer, and then apply the following
|
|
|
|
|
expression:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@kbd{M-: (re-search-forward (concat tramp-shell-prompt-pattern "$")) @key{RET}}
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
If the cursor has not moved to the prompt at the bottom of the buffer,
|
|
|
|
|
then @value{tramp} has failed to recognize the prompt.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When using zsh on remote hosts, disable zsh line editor because zsh
|
|
|
|
|
uses left-hand side and right-hand side prompts in parallel. Add the
|
|
|
|
|
following line to @file{~/.zshrc}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
2018-05-29 12:28:01 +02:00
|
|
|
|
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2019-10-18 19:44:49 +02:00
|
|
|
|
This uses the default value of @code{tramp-terminal-type}, @t{"dumb"},
|
|
|
|
|
as value of the @env{TERM} environment variable. If you want to use
|
|
|
|
|
another value for @env{TERM}, change @code{tramp-terminal-type} and
|
|
|
|
|
this line accordingly.
|
2018-05-29 19:45:23 +02:00
|
|
|
|
|
2024-11-13 17:10:57 +01:00
|
|
|
|
Alternatively, you can set the remote login shell explicitly. See
|
2019-09-20 17:29:08 +02:00
|
|
|
|
@ref{Remote shell setup} for discussion of this technique,
|
2019-09-20 11:27:49 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When using fish shell on remote hosts, disable fancy formatting by
|
|
|
|
|
adding the following to @file{~/.config/fish/config.fish}:
|
2014-03-24 09:09:42 +01:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2014-03-24 09:09:42 +01:00
|
|
|
|
function fish_prompt
|
|
|
|
|
if test $TERM = "dumb"
|
|
|
|
|
echo "\$ "
|
|
|
|
|
else
|
|
|
|
|
@dots{}
|
|
|
|
|
end
|
|
|
|
|
end
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2014-03-24 09:09:42 +01:00
|
|
|
|
@end example
|
|
|
|
|
|
2016-10-20 14:57:17 +02:00
|
|
|
|
When using WinSSHD on remote hosts, @value{tramp} does not recognize
|
|
|
|
|
the strange prompt settings.
|
|
|
|
|
|
|
|
|
|
A similar problem exist with the iTerm2 shell integration, which sends
|
|
|
|
|
proprietary escape codes when starting a shell. This can be
|
|
|
|
|
suppressed by changing the respective integration snippet in your
|
|
|
|
|
@file{~/.profile} like this:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
[ $TERM = "dumb" ] || \
|
|
|
|
|
test -e "$@{HOME@}/.iterm2_shell_integration.bash" && \
|
|
|
|
|
source "$@{HOME@}/.iterm2_shell_integration.bash"
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
2011-02-05 11:11:32 +01:00
|
|
|
|
|
2018-07-26 11:54:33 +02:00
|
|
|
|
And finally, bash's readline should not use key bindings like
|
|
|
|
|
@samp{C-j} to commands. Disable this in your @file{~/.inputrc}:
|
2018-07-25 20:26:22 +02:00
|
|
|
|
|
|
|
|
|
@example
|
2018-07-26 11:54:33 +02:00
|
|
|
|
@group
|
|
|
|
|
$if term=dumb
|
|
|
|
|
# Don't bind Control-J or it messes up @value{tramp}.
|
|
|
|
|
$else
|
|
|
|
|
"\C-j": next-history
|
|
|
|
|
$endif
|
|
|
|
|
@end group
|
2018-07-25 20:26:22 +02:00
|
|
|
|
@end example
|
|
|
|
|
|
2010-07-17 11:42:59 +02:00
|
|
|
|
@item
|
|
|
|
|
Echoed characters after login
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} suppresses echos from remote hosts with the
|
|
|
|
|
@command{stty -echo} command. But sometimes it is too late to suppress
|
|
|
|
|
welcome messages from the remote host containing harmful control
|
|
|
|
|
characters. Using @option{sshx} or @option{scpx} methods can avoid
|
|
|
|
|
this problem because they allocate a pseudo tty. @xref{Inline
|
|
|
|
|
methods}.
|
2010-07-17 11:42:59 +02:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} stops transferring strings longer than 500 characters
|
|
|
|
|
|
|
|
|
|
Set @code{tramp-chunksize} to 500 to get around this problem, which is
|
|
|
|
|
related to faulty implementation of @code{process-send-string} on
|
|
|
|
|
HP-UX, FreeBSD and Tru64 Unix systems. Consult the documentation for
|
|
|
|
|
@code{tramp-chunksize} to see when this is necessary.
|
|
|
|
|
|
|
|
|
|
Set @code{file-precious-flag} to @code{t} for files accessed by
|
|
|
|
|
@value{tramp} so the file contents are checked using checksum by
|
|
|
|
|
first saving to a temporary file.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
2019-04-07 10:10:52 +02:00
|
|
|
|
@pxref{Saving Buffers, , , elisp}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-hook
|
2012-10-23 11:06:07 -04:00
|
|
|
|
'find-file-hook
|
|
|
|
|
(lambda ()
|
|
|
|
|
(when (file-remote-p default-directory)
|
|
|
|
|
(set (make-local-variable 'file-precious-flag) t))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
|
2018-04-19 11:04:01 +02:00
|
|
|
|
@item
|
|
|
|
|
@value{tramp} fails in a chrooted environment
|
|
|
|
|
|
|
|
|
|
@vindex tramp-local-host-regexp
|
|
|
|
|
When connecting to a local host, @value{tramp} uses some internal
|
2020-10-07 04:41:29 +02:00
|
|
|
|
optimizations. They fail when Emacs runs in a chrooted environment.
|
|
|
|
|
In order to disable those optimizations, set user option
|
2018-05-29 12:55:04 +02:00
|
|
|
|
@code{tramp-local-host-regexp} to @code{nil}.
|
2018-04-19 11:04:01 +02:00
|
|
|
|
|
|
|
|
|
|
2023-07-03 18:24:11 +02:00
|
|
|
|
@item
|
|
|
|
|
@value{tramp} blocks Emacs at startup
|
|
|
|
|
|
|
|
|
|
@vindex remote-file-name-access-timeout
|
|
|
|
|
Some packages, like @file{desktop.el} or @file{recentf.el}, access
|
2023-07-04 18:58:22 +02:00
|
|
|
|
remote files when loaded. If the requested file is not accessible,
|
2023-07-03 18:24:11 +02:00
|
|
|
|
@value{tramp} could block. In order to check whether this could
|
|
|
|
|
happen, add a test via @code{access-file} with a proper timeout prior
|
2023-07-04 18:58:22 +02:00
|
|
|
|
to loading these packages:
|
2023-07-03 18:24:11 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(let ((remote-file-name-access-timeout 10))
|
|
|
|
|
(access-file "@file{@trampfn{method,user@@host,/path/to/file}}" "error"))
|
|
|
|
|
@result{} nil
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
The result @code{nil} means success. If the file is not accessible,
|
|
|
|
|
or if the underlying operations last too long, @code{access-file}
|
|
|
|
|
returns with an error.
|
|
|
|
|
|
|
|
|
|
The value of the timeout (10 seconds in the example) depends on your
|
|
|
|
|
preference and on the quality of the connection to the remote host.
|
|
|
|
|
If the connection to the remote host isn't established yet, and if
|
|
|
|
|
this requires an interactive password, the timeout check doesn't work
|
|
|
|
|
properly.
|
|
|
|
|
|
2023-07-04 15:27:03 +02:00
|
|
|
|
@c Since Emacs 30.
|
2023-07-04 18:58:22 +02:00
|
|
|
|
@strong{Note}: In recent versions of Emacs, both packages already
|
|
|
|
|
apply this check. You just need to customize
|
|
|
|
|
@code{remote-file-name-access-timeout} to the desired timeout (in
|
|
|
|
|
seconds).
|
2023-07-04 15:27:03 +02:00
|
|
|
|
|
2023-07-03 18:24:11 +02:00
|
|
|
|
|
2021-08-08 16:18:59 +02:00
|
|
|
|
@item
|
|
|
|
|
Does @value{tramp} support @acronym{SSH} security keys?
|
|
|
|
|
|
|
|
|
|
Yes. @command{OpenSSH} has added support for @acronym{FIDO} hardware
|
|
|
|
|
devices via special key types @option{*-sk}. @value{tramp} supports
|
|
|
|
|
the additional handshaking messages for them. This requires at least
|
2024-02-09 11:21:05 +01:00
|
|
|
|
@command{OpenSSH} 8.2, and a @acronym{FIDO} @acronym{U2F} or
|
|
|
|
|
@acronym{FIDO2} compatible security key, like yubikey, solokey,
|
|
|
|
|
nitrokey, or titankey.
|
|
|
|
|
@c @uref{https://docs.fedoraproject.org/en-US/quick-docs/using-yubikeys/}
|
|
|
|
|
|
2024-02-14 17:27:43 +01:00
|
|
|
|
@strong{Note} that there are reports on problems of handling FIDO2
|
|
|
|
|
(residential) keys by @command{ssh-agent}. As workaround, you might
|
2024-02-09 11:21:05 +01:00
|
|
|
|
disable @command{ssh-agent} for such keys.
|
2021-08-08 16:18:59 +02:00
|
|
|
|
|
2020-04-22 11:16:31 +02:00
|
|
|
|
@item
|
|
|
|
|
@value{tramp} does not connect to Samba or MS Windows hosts running
|
2020-09-24 10:17:03 +02:00
|
|
|
|
SMB1 connection protocol
|
2020-04-22 11:16:31 +02:00
|
|
|
|
|
|
|
|
|
@vindex tramp-smb-options
|
|
|
|
|
Recent versions of @command{smbclient} do not support old connection
|
|
|
|
|
protocols by default. In order to connect to such a host, add a
|
|
|
|
|
respective option:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(add-to-list 'tramp-smb-options "client min protocol=NT1")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@strong{Note} that using a deprecated connection protocol raises
|
|
|
|
|
security problems, you should do it only if absolutely necessary.
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
|
|
|
|
File name completion does not work with @value{tramp}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@acronym{ANSI} escape sequences from the remote shell may cause errors
|
|
|
|
|
in @value{tramp}'s parsing of remote buffers.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To test if this is the case, open a remote shell and check if the output
|
|
|
|
|
of @command{ls} is in color.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To disable @acronym{ANSI} escape sequences from the remote hosts,
|
2016-07-10 17:03:48 +02:00
|
|
|
|
disable @samp{--color=yes} or @samp{--color=auto} in the remote host's
|
|
|
|
|
@file{.bashrc} or @file{.profile}. Turn this alias on and off to see
|
|
|
|
|
if file name completion works.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
File name completion does not work in directories with large number of
|
|
|
|
|
files
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
This may be related to globbing, which is the use of shell's ability
|
|
|
|
|
to expand wild card specifications, such as @samp{*.c}. For
|
|
|
|
|
directories with large number of files, globbing might exceed the
|
|
|
|
|
shell's limit on length of command lines and hang. @value{tramp} uses
|
|
|
|
|
globbing.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To test if globbing hangs, open a shell on the remote host and then
|
2016-07-10 17:03:48 +02:00
|
|
|
|
run @command{ls -d * ..?* > /dev/null}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
When testing, ensure the remote shell is the same shell
|
|
|
|
|
(@command{/bin/sh}, @command{ksh} or @command{bash}), that
|
|
|
|
|
@value{tramp} uses when connecting to that host.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
How to get notified after @value{tramp} completes file transfers?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Make Emacs beep after reading from or writing to the remote host with
|
2018-07-26 11:54:33 +02:00
|
|
|
|
the following code in @file{~/.emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2023-09-07 15:03:42 +02:00
|
|
|
|
@vindex tramp-handle-write-region-hook
|
|
|
|
|
@vindex tramp-handle-file-local-copy-hook
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@lisp
|
2023-09-07 15:03:42 +02:00
|
|
|
|
(add-hook 'tramp-handle-write-region-hook 'beep)
|
|
|
|
|
(add-hook 'tramp-handle-file-local-copy-hook 'beep)
|
2007-11-07 20:43:59 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2016-02-18 13:58:12 +01:00
|
|
|
|
How to get a Visual Warning when working with @samp{root} privileges?
|
|
|
|
|
Host indication in the mode line?
|
2007-11-07 20:43:59 +00:00
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@cindex @value{tramp} theme
|
2018-02-13 08:35:50 +01:00
|
|
|
|
@vindex tramp-theme-face-remapping-alist
|
Sync with Tramp 2.5.0-pre
* doc/misc/tramp.texi: Protext Tramp x.y and Emacs x.y by @w{}.
(GVFS-based methods): Move "GNOME Online Accounts" index.
(Customizing Methods, Android shell setup, File name completion)
(Frequently Asked Questions): Fix typos.
* doc/misc/trampver.texi: Change version to "2.5.0-pre".
* lisp/net/trampver.el: Change version to "2.5.0-pre".
(inhibit-message): Don't declare.
* lisp/net/tramp.el: Bump version to 2.5.0-pre. Require Emacs 25.1.
(tramp-debug-message): Simplify.
(tramp-message): Don't use `tramp-message-show-message'.
(tramp-with-demoted-errors, with-parsed-tramp-file-name)
(with-tramp-file-property, with-tramp-connection-property):
Adapt `declare' form.
(with-tramp-progress-reporter): Suppress progress reporter when
noninteractive.
(tramp-completion-mode, tramp-completion-mode-p): Remove.
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(format-message): Remove compatibility code.
(tramp-compat-directory-name-p)
(tramp-compat-tramp-file-name-slots): Remove.
* lisp/net/tramp.el (tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-with-buffer)
(tramp-user-error, tramp-with-demoted-errors)
(tramp-signal-hook-function):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
* lisp/net/tramp-gvfs.el (tramp-dbus-function):
Add `tramp-suppress-trace' property.
* lisp/net/tramp.el (tramp-get-method-parameter)
(tramp-dissect-file-name, tramp-error, tramp-error-with-buffer)
(tramp-user-error, with-parsed-tramp-file-name)
(with-tramp-progress-reporter, tramp-file-name-handler)
(tramp-completion-file-name-handler, tramp-autoload-file-name-handler)
(tramp-register-file-name-handlers, tramp-connectable-p)
(tramp-handle-file-modes, tramp-handle-file-regular-p)
(tramp-handle-file-truename, tramp-handle-insert-directory)
(tramp-handle-load, tramp-set-file-uid-gid):
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler)
(tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-archive.el (with-parsed-tramp-archive-file-name):
* lisp/net/tramp-cache.el (tramp-get-file-property, tramp-cache-print):
* lisp/net/tramp-compat.el (tramp-compat-process-running-p)
(tramp-compat-exec-path):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
(tramp-gvfs-dbus-byte-array-to-string)
(tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler)
(tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
(tramp-sh-handle-copy-directory, tramp-do-copy-or-rename-file)
(tramp-sh-handle-insert-directory, tramp-sh-file-name-handler)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler)
(tramp-smb-handle-copy-file, tramp-smb-handle-copy-directory)
(tramp-smb-handle-copy-file, tramp-smb-handle-insert-directory)
(tramp-smb-handle-rename-file, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler)
(tramp-sudoedit-do-copy-or-rename-file)
(tramp-sudoedit-handle-file-truename):
Use `if-let', `when-let', `directory-name-p', `inhibit-message',
`non-essential and `cl-struct-slot-info'. Don't use `seconds-to-time'.
* test/lisp/net/tramp-archive-tests.el (tramp-message-show-message):
Don't set.
* test/lisp/net/tramp-tests.el (inhibit-message): Don't declare.
(tramp-message-show-message): Don't set.
(tramp-test06-directory-file-name): Use `non-essential'.
(tramp-test10-write-region): Use `inhibit-message'.
(tramp-test36-vc-registered): No special handling for old Emacsen.
(tramp--test-emacs25-p): Remove.
(tramp-test45-unload): Special case of `tramp-completion-mode'.
2020-01-19 14:11:07 +01:00
|
|
|
|
Install @file{tramp-theme} from GNU ELPA via Emacs's Package Manager.
|
2018-02-14 09:28:33 +01:00
|
|
|
|
Enable it via @kbd{M-x load-theme @key{RET} tramp @key{RET}}. Further
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
customization is explained in user option
|
2018-05-29 12:42:17 +02:00
|
|
|
|
@code{tramp-theme-face-remapping-alist}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Remote host does not understand default options for directory listing
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2023-12-10 12:26:38 +01:00
|
|
|
|
@vindex dired-listing-switches
|
|
|
|
|
Emacs computes the @command{dired} options based on the local host.
|
|
|
|
|
Since @w{Emacs 30}, these options can be set connection-local.
|
|
|
|
|
@ifinfo
|
|
|
|
|
@xref{Connection Variables, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
2024-06-18 14:40:20 +02:00
|
|
|
|
'my-dired-profile
|
|
|
|
|
'((dired-listing-switches . "-ahl")))
|
2023-12-10 12:26:38 +01:00
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "remotehost")
|
|
|
|
|
'my-dired-profile)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@vindex dired-actual-switches
|
|
|
|
|
In older Emacsen, you can set the @command{dired} options with a hook
|
|
|
|
|
as follows:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-hook
|
|
|
|
|
'dired-before-readin-hook
|
2012-10-23 11:06:07 -04:00
|
|
|
|
(lambda ()
|
2023-12-10 12:26:38 +01:00
|
|
|
|
(when (string-equal
|
|
|
|
|
(file-remote-p default-directory 'host) "remotehost")
|
|
|
|
|
(setq dired-actual-switches "-ahl"))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2024-06-16 16:03:41 +02:00
|
|
|
|
@item
|
|
|
|
|
@value{tramp} does not show directories or files although they are
|
|
|
|
|
readable
|
|
|
|
|
|
|
|
|
|
@vindex tramp-use-file-attributes
|
|
|
|
|
Internally, @value{tramp} uses commands like @command{ls} or
|
2024-06-18 14:40:20 +02:00
|
|
|
|
@command{stat} in order to determine file permissions. When
|
|
|
|
|
@acronym{NFS4_ACL} is enabled on the remote host, more fine-grained
|
|
|
|
|
information is used which cannot be reflected by the permission string
|
|
|
|
|
returned from those commands. Set the user option
|
|
|
|
|
@code{tramp-use-file-attributes} to @code{nil} in such a case. This
|
|
|
|
|
can also be set host-wise, like in:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'my-file-attributes-profile
|
|
|
|
|
'((tramp-use-file-attributes . nil)))
|
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
'(:application tramp :machine "remotehost")
|
|
|
|
|
'my-file-attributes-profile)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
2024-06-16 16:03:41 +02:00
|
|
|
|
|
|
|
|
|
|
2020-11-01 12:42:29 +01:00
|
|
|
|
@item
|
|
|
|
|
Where are remote files trashed to?
|
|
|
|
|
|
2023-03-23 17:09:52 +01:00
|
|
|
|
@vindex remote-file-name-inhibit-delete-by-moving-to-trash
|
2024-04-23 13:54:09 +02:00
|
|
|
|
Emacs can trash files instead of deleting
|
2021-02-21 10:24:56 +01:00
|
|
|
|
@ifinfo
|
2024-05-13 10:31:13 +02:00
|
|
|
|
them, @pxref{Misc File Ops, Trashing , , emacs}.
|
2021-02-21 10:24:56 +01:00
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
them.
|
|
|
|
|
@end ifnotinfo
|
2023-01-08 19:24:17 +01:00
|
|
|
|
Remote files are always trashed to the local trash, except the user
|
|
|
|
|
option @code{remote-file-name-inhibit-delete-by-moving-to-trash} is
|
|
|
|
|
non-@code{nil}, or it is a remote encrypted file (@pxref{Keeping files
|
|
|
|
|
encrypted}), which are deleted anyway.
|
2020-11-01 12:42:29 +01:00
|
|
|
|
|
2024-04-23 13:54:09 +02:00
|
|
|
|
@c Since Emacs 30.
|
|
|
|
|
@vindex trash-directory
|
|
|
|
|
If you want to trash a remote file into a remote trash directory, you
|
2024-11-13 17:10:57 +01:00
|
|
|
|
can configure the user option @code{trash-directory} to a
|
2024-04-23 13:54:09 +02:00
|
|
|
|
connection-local value.
|
|
|
|
|
@ifinfo
|
|
|
|
|
@xref{Connection Variables, , , emacs}.
|
|
|
|
|
@end ifinfo
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profile-variables
|
|
|
|
|
'remote-trash-directory
|
|
|
|
|
'((trash-directory . "/sudo::~/.local/share/Trash")))
|
|
|
|
|
@end group
|
|
|
|
|
|
|
|
|
|
@group
|
|
|
|
|
(connection-local-set-profiles
|
|
|
|
|
`(:application tramp :protocol "sudo" :machine ,system-name)
|
|
|
|
|
'remote-trash-directory)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2020-11-01 12:42:29 +01:00
|
|
|
|
If Emacs is configured to use the XDG conventions for the trash
|
|
|
|
|
directory, remote files cannot be restored with the respective tools,
|
|
|
|
|
because those conventions don't specify remote paths. Such files must
|
|
|
|
|
be restored by moving them manually from
|
|
|
|
|
@file{$@{XDG_DATA_HOME@}/Trash/files/}, if needed.
|
|
|
|
|
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
|
|
|
|
How to shorten long file names when typing in @value{tramp}?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Adapt several of these approaches to reduce typing. If the full name
|
2016-01-24 11:40:26 -08:00
|
|
|
|
is @file{@trampfn{ssh,news@@news.my.domain,/opt/news/etc}}, then:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@item
|
|
|
|
|
Use simplified syntax:
|
|
|
|
|
|
|
|
|
|
If you always apply the default method (@pxref{Default Method}), you
|
2024-11-13 17:10:57 +01:00
|
|
|
|
can use the simplified @value{tramp} syntax (@pxref{Change file name
|
2018-02-14 09:28:33 +01:00
|
|
|
|
syntax}):
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(customize-set-variable 'tramp-default-method "ssh")
|
|
|
|
|
(tramp-change-syntax 'simplified)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
The reduced typing: @kbd{C-x C-f
|
|
|
|
|
@code{@value{prefix}news@@news.my.domain@value{postfix}/opt/news/etc}
|
|
|
|
|
@key{RET}}.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
|
|
|
|
Use default values for method name and user name:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
You can define default methods and user names for hosts,
|
|
|
|
|
(@pxref{Default Method}, @pxref{Default User}):
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
|
|
|
|
(custom-set-variables
|
2017-11-05 20:07:12 +01:00
|
|
|
|
'(tramp-default-method "ssh")
|
|
|
|
|
'(tramp-default-user "news"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
The reduced typing: @kbd{C-x C-f
|
|
|
|
|
@trampfn{-,news.my.domain,/opt/news/etc} @key{RET}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@strong{Note} that there are some useful shortcuts already. Accessing
|
|
|
|
|
your local host as @samp{root} user, is possible just by @kbd{C-x C-f
|
2018-02-14 09:28:33 +01:00
|
|
|
|
@trampfn{su,,} @key{RET}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
|
|
|
|
Use configuration options of the access method:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Programs used for access methods already offer powerful configurations
|
|
|
|
|
(@pxref{Customizing Completion}). For @option{ssh}, configure the
|
|
|
|
|
file @file{~/.ssh/config}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
Host xy
|
|
|
|
|
HostName news.my.domain
|
|
|
|
|
User news
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
The reduced typing: @kbd{C-x C-f @trampfn{ssh,xy,/opt/news/etc} @key{RET}}.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
|
|
|
|
|
Depending on the number of files in the directories, host names
|
|
|
|
|
completion can further reduce key strokes: @kbd{C-x C-f
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@value{prefix}ssh@value{postfixhop}x @key{TAB}}.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
2020-09-24 10:17:03 +02:00
|
|
|
|
Use environment variables to expand long strings:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For long file names, set up environment variables that are expanded in
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
the minibuffer. Environment variables are set either outside Emacs or
|
|
|
|
|
inside Emacs with Lisp:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
2016-01-24 11:40:26 -08:00
|
|
|
|
(setenv "xy" "@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}")
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The reduced typing: @kbd{C-x C-f $xy @key{RET}}.
|
|
|
|
|
|
|
|
|
|
@strong{Note} that file name cannot be edited here because the
|
2007-09-06 05:07:05 +00:00
|
|
|
|
environment variables are not expanded during editing in the
|
|
|
|
|
minibuffer.
|
|
|
|
|
|
|
|
|
|
@item Define own keys:
|
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Redefine another key sequence in Emacs for @kbd{C-x C-f}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(global-set-key
|
|
|
|
|
[(control x) (control y)]
|
|
|
|
|
(lambda ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(find-file
|
|
|
|
|
(read-file-name
|
2017-07-10 15:36:23 +02:00
|
|
|
|
"Find @value{tramp} file: "
|
2016-01-24 11:40:26 -08:00
|
|
|
|
"@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}"))))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Simply typing @kbd{C-x C-y} would prepare minibuffer editing of file
|
|
|
|
|
name.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2016-09-02 10:07:09 +02:00
|
|
|
|
See @uref{https://www.emacswiki.org/emacs/TrampMode, the Emacs Wiki}
|
|
|
|
|
for a more comprehensive example.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
|
|
|
|
Define own abbreviation (1):
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Abbreviation list expansion can be used to reduce typing long file names:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2020-08-04 14:19:51 +02:00
|
|
|
|
(add-to-list 'directory-abbrev-alist
|
|
|
|
|
'("^/xy" . "@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The reduced typing: @kbd{C-x C-f /xy @key{RET}}.
|
|
|
|
|
|
|
|
|
|
@strong{Note} that file name cannot be edited here because the
|
2018-06-13 09:34:35 +02:00
|
|
|
|
abbreviations are not expanded during editing in the minibuffer.
|
2018-06-13 10:28:39 +02:00
|
|
|
|
Furthermore, the abbreviation is not expanded during @key{TAB}
|
|
|
|
|
completion.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
|
|
|
|
Define own abbreviation (2):
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The @code{abbrev-mode} gives additional flexibility for editing in the
|
2007-09-06 05:07:05 +00:00
|
|
|
|
minibuffer:
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(define-abbrev-table 'my-tramp-abbrev-table
|
2016-01-24 11:40:26 -08:00
|
|
|
|
'(("xy" "@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}")))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(add-hook
|
|
|
|
|
'minibuffer-setup-hook
|
2012-10-23 11:06:07 -04:00
|
|
|
|
(lambda ()
|
|
|
|
|
(abbrev-mode 1)
|
|
|
|
|
(setq local-abbrev-table my-tramp-abbrev-table)))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2023-09-07 15:03:42 +02:00
|
|
|
|
(advice-add 'minibuffer-complete
|
|
|
|
|
:before 'expand-abbrev)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The reduced typing: @kbd{C-x C-f xy @key{TAB}}.
|
|
|
|
|
|
|
|
|
|
The minibuffer expands for further editing.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item Use bookmarks:
|
|
|
|
|
|
2017-07-10 15:36:23 +02:00
|
|
|
|
Use bookmarks to save @value{tramp} file names.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@pxref{Bookmarks, , , emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Upon visiting a location with @value{tramp}, save it as a bookmark with
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@kbd{@key{menu-bar} @key{edit} @key{bookmarks} @key{set}}.
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To revisit that bookmark:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@kbd{@key{menu-bar} @key{edit} @key{bookmarks} @key{jump}}.
|
|
|
|
|
|
|
|
|
|
@item Use recent files:
|
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@file{recentf} remembers visited places.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@pxref{File Conveniences, , , emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Keep remote file names in the recent list without have to check for
|
|
|
|
|
their accessibility through remote access:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(recentf-mode 1)
|
|
|
|
|
@end lisp
|
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Reaching recently opened files: @kbd{@key{menu-bar} @key{file}
|
|
|
|
|
@key{Open Recent}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item Use filecache:
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Since @file{filecache} remembers visited places, add the remote
|
|
|
|
|
directory to the cache:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2019-06-28 16:32:12 +02:00
|
|
|
|
(with-eval-after-load 'filecache
|
|
|
|
|
(file-cache-add-directory
|
2016-05-01 10:14:05 +02:00
|
|
|
|
"@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}"))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Then use directory completion in the minibuffer with @kbd{C-x C-f
|
|
|
|
|
C-@key{TAB}}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@item Use bbdb:
|
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@file{bbdb} has a built-in feature for Ange FTP files, which also
|
|
|
|
|
works for @value{tramp} file names.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@pxref{bbdb-ftp, Storing FTP sites in the BBDB, , bbdb}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Load @file{bbdb} in Emacs:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(require 'bbdb)
|
|
|
|
|
(bbdb-initialize)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-02-14 09:28:33 +01:00
|
|
|
|
Create a BBDB entry with @kbd{M-x bbdb-create-ftp-site @key{RET}}.
|
|
|
|
|
Then specify a method and user name where needed. Examples:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@kbd{M-x bbdb-create-ftp-site @key{RET}}
|
|
|
|
|
@b{Ftp Site:} news.my.domain @key{RET}
|
|
|
|
|
@b{Ftp Directory:} /opt/news/etc/ @key{RET}
|
|
|
|
|
@b{Ftp Username:} ssh@value{postfixhop}news @key{RET}
|
|
|
|
|
@b{Company:} @key{RET}
|
|
|
|
|
@b{Additional Comments:} @key{RET}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
Fix use of @key in Texinfo manuals
* doc/misc/efaq-w32.texi (Location of init file):
* doc/misc/org.texi (Editing source code, Export settings)
(Closing items, Drawers, Structure editing):
* doc/misc/gnus.texi (Spam and Ham Processors, Terminology):
* doc/misc/calc.texi (Keypad Functions Menu, Keypad Binary Menu)
(Keypad Vectors Menu, Keypad Main Menu, Basic Arithmetic)
(Symbolic Mode):
* doc/misc/sc.texi (Electric References):
* doc/misc/info.texi (Help-^L):
* doc/misc/reftex.texi (Reference Styles):
* doc/misc/idlwave.texi (Troubleshooting, Examining Variables)
(Lesson III---User Catalog, Using the Shell):
* doc/misc/eshell.texi (Bugs and ideas):
* doc/misc/ada-mode.texi (Automatic Casing):
* doc/misc/ediff.texi (Selective Browsing):
* doc/misc/vip.texi (Customizing Constants):
* doc/misc/pcl-cvs.texi (Selected files):
* doc/misc/efaq.texi (Replying to the sender of a message)
(Basic keys, No Meta key, Matching parentheses)
(Origin of the term Emacs, Installing Texinfo documentation)
(Learning how to do something, Emacs manual, Extended commands):
* doc/misc/viper.texi (Rudimentary Changes):
* doc/misc/tramp.texi (Frequently Asked Questions):
* doc/emacs/kmacro.texi (Basic Keyboard Macro):
* doc/emacs/frames.texi (Frame Commands):
* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/search.texi (Query Replace):
* doc/lispintro/emacs-lisp-intro.texi (Keybindings)
(Note for Novices):
* doc/lispref/tips.texi (Key Binding Conventions): Fix use of
@key. For the details, see
http://lists.gnu.org/archive/html/emacs-devel/2018-04/msg00390.html.
2018-04-19 12:21:06 +03:00
|
|
|
|
In BBDB buffer, access an entry by pressing the key @kbd{F}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@end enumerate
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Thanks to @value{tramp} users for contributing to these recipes.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2021-03-08 12:05:29 +01:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@item
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
Why saved multi-hop file names do not work in a new Emacs session?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
When saving ad-hoc multi-hop @value{tramp} file names (@pxref{Ad-hoc
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
multi-hops}) via bookmarks, recent files, filecache, bbdb, or another
|
|
|
|
|
package, use the full ad-hoc file name including all hops, like
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@file{@trampfn{ssh,bird@@bastion|ssh@value{postfixhop}@c
|
|
|
|
|
news.my.domain,/opt/news/etc}}.
|
2015-09-04 20:56:32 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Alternatively, when saving abbreviated multi-hop file names
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@file{@trampfn{ssh,news@@news.my.domain,/opt/news/etc}}, the user
|
2018-05-29 12:42:17 +02:00
|
|
|
|
option @code{tramp-save-ad-hoc-proxies} must be set non-@code{nil}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
value.
|
2015-09-04 20:56:32 +02:00
|
|
|
|
|
|
|
|
|
|
2009-09-03 13:21:15 +00:00
|
|
|
|
@item
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
How to connect to a remote Emacs session using @value{tramp}?
|
2009-09-03 13:21:15 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Configure Emacs Client
|
2009-09-03 13:21:15 +00:00
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
(@pxref{Emacs Server, , , emacs}).
|
2009-09-03 13:21:15 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Then on the remote host, start the Emacs Server:
|
2009-09-03 13:21:15 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-09-03 13:21:15 +00:00
|
|
|
|
(require 'server)
|
|
|
|
|
(setq server-host (system-name)
|
|
|
|
|
server-use-tcp t)
|
|
|
|
|
(server-start)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-09-03 13:21:15 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
If @code{(system-name)} of the remote host cannot be resolved on the
|
|
|
|
|
local host, use IP address instead.
|
|
|
|
|
|
|
|
|
|
Copy from the remote host the resulting file
|
|
|
|
|
@file{~/.emacs.d/server/server} to the local host, to the same
|
|
|
|
|
location.
|
2009-09-03 13:21:15 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Then start Emacs Client from the command line:
|
2009-09-03 13:21:15 +00:00
|
|
|
|
|
|
|
|
|
@example
|
2021-10-13 18:59:10 +02:00
|
|
|
|
$ emacsclient @trampfn{ssh,user@@host,/file/to/edit}
|
2009-09-03 13:21:15 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{user} and @code{host} refer to the local host.
|
2009-09-03 15:21:47 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To make Emacs Client an editor for other programs, use a wrapper
|
|
|
|
|
script @file{emacsclient.sh}:
|
2009-09-03 15:21:47 +00:00
|
|
|
|
|
|
|
|
|
@example
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-09-03 15:21:47 +00:00
|
|
|
|
#!/bin/sh
|
2016-01-24 11:40:26 -08:00
|
|
|
|
emacsclient @trampfn{ssh,$(whoami)@@$(hostname --fqdn),$1}
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-09-03 15:21:47 +00:00
|
|
|
|
@end example
|
|
|
|
|
|
2018-05-29 12:28:01 +02:00
|
|
|
|
@vindex EDITOR@r{, environment variable}
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Then change the environment variable @env{EDITOR} to point to the
|
|
|
|
|
wrapper script:
|
2009-09-03 15:21:47 +00:00
|
|
|
|
|
|
|
|
|
@example
|
2021-10-13 18:59:10 +02:00
|
|
|
|
$ export EDITOR=/path/to/emacsclient.sh
|
2009-09-03 15:21:47 +00:00
|
|
|
|
@end example
|
2009-09-03 13:21:15 +00:00
|
|
|
|
|
|
|
|
|
|
2018-08-11 09:51:27 +02:00
|
|
|
|
@item
|
2018-11-08 12:48:54 +01:00
|
|
|
|
How to determine whether a buffer is remote?
|
2018-08-11 09:51:27 +02:00
|
|
|
|
|
|
|
|
|
The buffer-local variable @code{default-directory} tells this. If the
|
|
|
|
|
form @code{(file-remote-p default-directory)} returns non-@code{nil},
|
|
|
|
|
the buffer is remote. See the optional arguments of
|
|
|
|
|
@code{file-remote-p} for determining details of the remote connection.
|
|
|
|
|
|
|
|
|
|
|
2019-11-20 13:45:30 +01:00
|
|
|
|
@item
|
|
|
|
|
How to save files when a remote host isn't reachable anymore?
|
|
|
|
|
|
|
|
|
|
If the local machine Emacs is running on changes its network
|
2024-11-13 17:10:57 +01:00
|
|
|
|
integration, remote hosts could become unreachable. This happens, for
|
2019-11-20 13:45:30 +01:00
|
|
|
|
example, if the local machine is moved between your office and your
|
|
|
|
|
home without restarting Emacs.
|
|
|
|
|
|
|
|
|
|
In such cases, the command @code{tramp-rename-files} can be used to
|
|
|
|
|
alter remote buffers’ method, host, and/or directory names. This
|
|
|
|
|
permits saving their contents in the same location via another network
|
|
|
|
|
path, or somewhere else entirely (including locally). @pxref{Renaming
|
|
|
|
|
remote files}.
|
|
|
|
|
|
|
|
|
|
|
2021-04-08 16:35:02 +02:00
|
|
|
|
@item
|
|
|
|
|
How to prevent @value{tramp} from clearing the @code{recentf-list}?
|
|
|
|
|
|
|
|
|
|
When @value{tramp} cleans a connection, it removes the respective
|
|
|
|
|
remote file name(s) from @code{recentf-list}. This is needed, because
|
|
|
|
|
an unresponsive remote host could trigger @code{recentf} to connect
|
|
|
|
|
that host again and again.
|
|
|
|
|
|
|
|
|
|
If you find the cleanup disturbing, because the file names in
|
2024-11-13 17:10:57 +01:00
|
|
|
|
@code{recentf-list} are precious to you, you can add the following
|
|
|
|
|
two forms in your @file{~/.emacs} (after loading the @code{tramp} and
|
|
|
|
|
@code{recentf} packages):
|
2021-04-08 16:35:02 +02:00
|
|
|
|
|
2023-09-07 15:03:42 +02:00
|
|
|
|
@vindex tramp-cleanup-connection-hook
|
|
|
|
|
@vindex tramp-cleanup-all-connections-hook
|
2021-04-08 16:35:02 +02:00
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(remove-hook
|
|
|
|
|
'tramp-cleanup-connection-hook
|
|
|
|
|
#'tramp-recentf-cleanup)
|
|
|
|
|
@end group
|
|
|
|
|
@group
|
|
|
|
|
(remove-hook
|
|
|
|
|
'tramp-cleanup-all-connections-hook
|
|
|
|
|
#'tramp-recentf-cleanup-all)
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2020-10-01 14:23:20 +02:00
|
|
|
|
@item
|
|
|
|
|
I get a warning @samp{Tramp has been compiled with Emacs a.b, this is Emacs c.d}
|
2021-04-19 11:52:48 +02:00
|
|
|
|
@item
|
|
|
|
|
I get an error @samp{tramp-file-name-handler: Invalid function:
|
|
|
|
|
tramp-compat-with-mutex}
|
2020-10-01 14:23:20 +02:00
|
|
|
|
|
|
|
|
|
@value{tramp} comes with compatibility code for different Emacs
|
2021-04-29 15:04:51 +02:00
|
|
|
|
versions. When you see such a message (the text might differ), you
|
2021-10-18 19:53:34 +02:00
|
|
|
|
don't use the Emacs built-in version of @value{tramp}, and you must
|
|
|
|
|
recompile it. In case you have installed @value{tramp} from GNU ELPA,
|
2020-10-01 14:23:20 +02:00
|
|
|
|
@ifset installchapter
|
2021-10-18 19:53:34 +02:00
|
|
|
|
@xref{ELPA Installation}. Otherwise, @xref{Recompilation}.
|
2020-10-01 14:23:20 +02:00
|
|
|
|
@end ifset
|
2021-10-14 11:50:47 +02:00
|
|
|
|
@ifclear installchapter
|
2021-10-18 19:53:34 +02:00
|
|
|
|
see @uref{@value{trampurl}#ELPA-Installation}. Otherwise, see
|
|
|
|
|
@uref{@value{trampurl}#Recompilation}.
|
2021-10-14 11:50:47 +02:00
|
|
|
|
@end ifclear
|
2020-10-01 14:23:20 +02:00
|
|
|
|
|
|
|
|
|
|
2020-12-17 18:52:23 +01:00
|
|
|
|
@item
|
|
|
|
|
I get an error @samp{Remote file error: Forbidden reentrant call of Tramp}
|
|
|
|
|
|
2020-12-20 19:45:11 +01:00
|
|
|
|
@vindex remote-file-error
|
|
|
|
|
@vindex debug-ignored-errors
|
2020-12-17 18:52:23 +01:00
|
|
|
|
Timers, process filters and sentinels, and other event based functions
|
|
|
|
|
can run at any time, when a remote file operation is still running.
|
|
|
|
|
This can cause @value{tramp} to block. When such a situation is
|
2021-02-23 14:21:26 +01:00
|
|
|
|
detected, this error is triggered. It should be fixed in the
|
|
|
|
|
respective function (sending an error report will help), but for the
|
|
|
|
|
time being you can suppress this error by the following code in your
|
2020-12-17 18:52:23 +01:00
|
|
|
|
@file{~/.emacs}:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(setq debug-ignored-errors
|
|
|
|
|
(cons 'remote-file-error debug-ignored-errors))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2021-11-14 14:41:58 +01:00
|
|
|
|
@item
|
|
|
|
|
I get an error @samp{Remote file error: Not a valid Tramp file name
|
|
|
|
|
function `tramp-FOO-file-name-p'}
|
|
|
|
|
|
|
|
|
|
@value{tramp} has changed the signature of an internal function.
|
|
|
|
|
External packages implementing an own @value{tramp} backend must
|
|
|
|
|
follow this change. Please report this problem to the author of that
|
|
|
|
|
package.
|
|
|
|
|
|
|
|
|
|
For the running session, @value{tramp} disables the external package,
|
|
|
|
|
and you can continue to work. If you don't want to see this error
|
|
|
|
|
while activating @value{tramp}, you can suppress it by the same code
|
|
|
|
|
as above in your @file{~/.emacs}:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(setq debug-ignored-errors
|
|
|
|
|
(cons 'remote-file-error debug-ignored-errors))
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2024-04-19 12:15:47 +02:00
|
|
|
|
@item
|
|
|
|
|
How to ignore errors when changing file attributes?
|
|
|
|
|
|
|
|
|
|
@vindex tramp-inhibit-errors-if-setting-file-attributes-fail
|
|
|
|
|
Sometimes, for example while saving remote files, errors appear when
|
|
|
|
|
changing file attributes like permissions, time stamps, or ownership.
|
|
|
|
|
If these errors can be ignored, set user option
|
|
|
|
|
@code{tramp-inhibit-errors-if-setting-file-attributes-fail} to a
|
|
|
|
|
non-@code{nil} value. This transforms the error into a warning.
|
|
|
|
|
|
|
|
|
|
|
2024-04-23 13:54:09 +02:00
|
|
|
|
@item
|
|
|
|
|
How to ignore errors when changing file attributes?
|
|
|
|
|
|
|
|
|
|
@vindex tramp-inhibit-errors-if-setting-file-attributes-fail
|
|
|
|
|
Sometimes, for example while saving remote files, errors appear when
|
|
|
|
|
changing file attributes like permissions, time stamps, or ownership.
|
|
|
|
|
If these errors can be ignored, set user option
|
|
|
|
|
@code{tramp-inhibit-errors-if-setting-file-attributes-fail} to a
|
|
|
|
|
non-@code{nil} value. This transforms the error into a warning.
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
How to disable other packages from calling @value{tramp}?
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
There are packages that call @value{tramp} without the user ever
|
|
|
|
|
entering a remote file name. Even without applying a remote file
|
|
|
|
|
syntax, some packages enable @value{tramp} on their own. How can users
|
|
|
|
|
disable such features.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2008-04-28 19:40:43 +00:00
|
|
|
|
@itemize @minus
|
2011-04-14 21:04:08 +02:00
|
|
|
|
@item
|
|
|
|
|
@file{ido.el}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Disable @value{tramp} file name completion:
|
2011-04-14 21:04:08 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'ido-enable-tramp-completion nil)
|
2011-04-14 21:04:08 +02:00
|
|
|
|
@end lisp
|
2008-04-28 19:40:43 +00:00
|
|
|
|
|
2022-07-12 15:42:17 +02:00
|
|
|
|
@c Obsolete since Emacs 29.1.
|
2008-04-28 19:40:43 +00:00
|
|
|
|
@item
|
2011-04-14 21:04:08 +02:00
|
|
|
|
@file{rlogin.el}
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Disable remote directory tracking mode:
|
2011-04-14 21:04:08 +02:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(rlogin-directory-tracking-mode -1)
|
|
|
|
|
@end lisp
|
|
|
|
|
@end itemize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2015-12-29 15:33:54 +01:00
|
|
|
|
How to disable @value{tramp}?
|
2011-04-14 21:04:08 +02:00
|
|
|
|
|
|
|
|
|
@itemize @minus
|
|
|
|
|
@item
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
To keep Ange FTP as default the remote files access package, set this
|
|
|
|
|
in @file{.emacs}:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
2017-11-05 20:07:12 +01:00
|
|
|
|
(customize-set-variable 'tramp-default-method "ftp")
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2019-12-22 13:47:29 +01:00
|
|
|
|
If you want to enable Ange FTP's syntax, add the following form:
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(tramp-change-syntax 'simplified)
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2018-05-21 19:48:15 +02:00
|
|
|
|
@vindex tramp-ignored-file-name-regexp
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2018-05-21 19:48:15 +02:00
|
|
|
|
To deactivate @value{tramp} for some look-alike remote file names, set
|
|
|
|
|
@code{tramp-ignored-file-name-regexp} to a proper regexp in
|
|
|
|
|
@file{.emacs}. @strong{Note}, that we don't use
|
|
|
|
|
@code{customize-set-variable}, in order to avoid loading
|
|
|
|
|
@value{tramp}.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(setq tramp-ignored-file-name-regexp "\\`/ssh:example\\.com:")
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
This is needed, if you mount for example a virtual file system on your
|
|
|
|
|
local host's root directory as @file{/ssh:example.com:}.
|
|
|
|
|
|
2023-07-22 10:16:04 +02:00
|
|
|
|
@findex inhibit-remote-files
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2023-07-22 10:16:04 +02:00
|
|
|
|
To disable both @value{tramp} (and Ange FTP), type @kbd{M-x
|
|
|
|
|
inhibit-remote-files @key{RET}}. You can also add this to your
|
|
|
|
|
@file{.emacs}.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(inhibit-remote-files)
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
@findex without-remote-files
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2023-07-22 10:16:04 +02:00
|
|
|
|
If you write code, which is intended to run only for local files, you
|
|
|
|
|
can use the @code{without-remote-files} macro.
|
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(without-remote-files @dots{})
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
This improves performance, because many primitive file name operations
|
2024-05-13 10:31:13 +02:00
|
|
|
|
don't check any longer for @value{tramp} file name regexps then.
|
2023-07-22 10:16:04 +02:00
|
|
|
|
|
|
|
|
|
@findex tramp-unload-tramp
|
2024-11-15 10:47:23 +01:00
|
|
|
|
@item
|
2018-02-14 09:28:33 +01:00
|
|
|
|
To unload @value{tramp}, type @kbd{M-x tramp-unload-tramp @key{RET}}.
|
|
|
|
|
Unloading @value{tramp} resets Ange FTP plugins also.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end itemize
|
2022-07-09 16:19:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@item
|
2022-07-10 14:19:55 +02:00
|
|
|
|
What is the difference between Ange FTP and @value{tramp}?
|
2022-07-09 16:19:07 +02:00
|
|
|
|
|
2022-07-10 14:19:55 +02:00
|
|
|
|
The difference is that Ange FTP uses @command{ftp} to transfer files
|
|
|
|
|
between the local and the remote host, whereas @value{tramp} uses a
|
2022-07-12 15:42:17 +02:00
|
|
|
|
combination of @command{ssh} and @command{scp} or other work-alike
|
|
|
|
|
programs.
|
2008-04-28 19:40:43 +00:00
|
|
|
|
@end itemize
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2022-07-05 21:19:51 +02:00
|
|
|
|
@c For the developer.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Files directories and localnames
|
2018-10-02 16:51:51 +02:00
|
|
|
|
@chapter How file names, directories and localnames are mangled and managed
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@menu
|
2023-07-05 16:19:23 +02:00
|
|
|
|
* Temporary directory:: Where temporary files are kept.
|
2015-12-29 15:33:54 +01:00
|
|
|
|
* Localname deconstruction:: Splitting a localname into its component parts.
|
|
|
|
|
* External packages:: Integrating with external Lisp packages.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
|
|
|
2023-07-05 16:19:23 +02:00
|
|
|
|
@node Temporary directory
|
|
|
|
|
@section Where temporary files are kept
|
|
|
|
|
|
|
|
|
|
@vindex temporary-file-directory
|
|
|
|
|
Internally, @value{tramp} uses @t{"~/.cache/emacs"}
|
|
|
|
|
as local temporary directory if it exists. Otherwise, the value of
|
|
|
|
|
@code{temporary-file-directory} is used, which is often @t{"/tmp"}.
|
|
|
|
|
|
|
|
|
|
@vindex tramp-compat-temporary-file-directory
|
|
|
|
|
@vindex <TMP>
|
|
|
|
|
This local temporary directory is kept in the constant
|
|
|
|
|
@code{tramp-compat-temporary-file-directory}. In this manual, we use
|
|
|
|
|
@t{"<TMP>"} for its value.
|
|
|
|
|
|
|
|
|
|
The temporary directory on a remote host is @t{"/data/local/tmp"} for
|
|
|
|
|
the @option{adb} method, @t{"/C$/Temp"} for the @option{smb} method,
|
|
|
|
|
and @t{"/tmp"} otherwise. For some methods, this can be customized.
|
|
|
|
|
|
|
|
|
|
@vindex tramp-temp-name-prefix
|
|
|
|
|
Temporary files have the file name prefix @t{"tramp."}. If you want
|
|
|
|
|
to change this prefix, for example because you want to identify
|
|
|
|
|
temporary files produced by @code{file-local-copy} in your package,
|
|
|
|
|
you can bind the variable @code{tramp-temp-name-prefix} temporarily:
|
|
|
|
|
|
|
|
|
|
@example
|
|
|
|
|
@group
|
|
|
|
|
(let ((tramp-temp-name-prefix "my-prefix."))
|
|
|
|
|
(file-local-copy "@trampfn{ssh,,.emacs}"))
|
|
|
|
|
@result{} "/tmp/my-prefix.HDfgDZ"
|
|
|
|
|
@end group
|
|
|
|
|
@end example
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Localname deconstruction
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@section Splitting a localname into its component parts
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} package redefines lisp functions
|
|
|
|
|
@code{file-name-directory} and @code{file-name-nondirectory} to
|
|
|
|
|
accommodate the unique file naming syntax that @value{tramp} requires.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
The replacements dissect the file name, use the original handler for
|
|
|
|
|
the localname, take that result, and then re-build the @value{tramp}
|
|
|
|
|
file name. By relying on the original handlers for localnames,
|
|
|
|
|
@value{tramp} benefits from platform specific hacks to the original
|
|
|
|
|
handlers.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
2007-10-06 11:55:36 +00:00
|
|
|
|
@node External packages
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@section Integrating with external Lisp packages
|
2021-10-29 14:06:47 +02:00
|
|
|
|
|
|
|
|
|
In general, it is not recommended to use @value{tramp} functions and
|
|
|
|
|
variables not described in this manual. They might change their
|
|
|
|
|
signature and/or semantics without any announcement.
|
|
|
|
|
|
|
|
|
|
|
2020-12-17 18:52:23 +01:00
|
|
|
|
@subsection File name completion
|
2007-10-06 11:55:36 +00:00
|
|
|
|
|
2018-10-01 14:33:51 +02:00
|
|
|
|
@vindex non-essential
|
2017-03-16 16:23:07 +01:00
|
|
|
|
Sometimes, it is not convenient to open a new connection to a remote
|
|
|
|
|
host, including entering the password and alike. For example, this is
|
2019-04-13 12:34:13 +02:00
|
|
|
|
nasty for packages providing file name completion. Such a package
|
2017-03-16 16:23:07 +01:00
|
|
|
|
could signal to @value{tramp}, that they don't want it to establish a
|
|
|
|
|
new connection. Use the variable @code{non-essential} temporarily and
|
|
|
|
|
bind it to non-@code{nil} value.
|
2007-10-06 11:55:36 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2013-10-02 15:52:32 +02:00
|
|
|
|
(let ((non-essential t))
|
2014-06-15 17:09:22 +02:00
|
|
|
|
@dots{})
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-10-06 11:55:36 +00:00
|
|
|
|
@end lisp
|
2009-08-28 14:36:53 +00:00
|
|
|
|
|
|
|
|
|
|
2020-12-17 18:52:23 +01:00
|
|
|
|
@subsection File attributes cache
|
2009-08-28 14:36:53 +00:00
|
|
|
|
|
2020-12-20 19:45:11 +01:00
|
|
|
|
@vindex process-file-side-effects
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Keeping a local cache of remote file attributes in sync with the
|
|
|
|
|
remote host is a time-consuming operation. Flushing and re-querying
|
|
|
|
|
these attributes can tax @value{tramp} to a grinding halt on busy
|
2022-01-22 17:12:14 +01:00
|
|
|
|
remote hosts.
|
2009-08-28 14:36:53 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
To get around these types of slow-downs in @value{tramp}'s
|
|
|
|
|
responsiveness, set the @code{process-file-side-effects} to @code{nil}
|
|
|
|
|
to stop @value{tramp} from flushing the cache. This is helpful in
|
|
|
|
|
situations where callers to @code{process-file} know there are no file
|
|
|
|
|
attribute changes. The let-bind form to accomplish this:
|
2009-08-28 14:36:53 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2009-08-28 14:36:53 +00:00
|
|
|
|
(let (process-file-side-effects)
|
2014-06-15 17:09:22 +02:00
|
|
|
|
@dots{})
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2009-08-28 14:36:53 +00:00
|
|
|
|
@end lisp
|
2010-08-05 15:51:21 +02:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
For asynchronous processes, @value{tramp} uses a process sentinel to
|
|
|
|
|
flush file attributes cache. When callers to @code{start-file-process}
|
|
|
|
|
know beforehand no file attribute changes are expected, then the
|
|
|
|
|
process sentinel should be set to the default state. In cases where
|
|
|
|
|
the caller defines its own process sentinel, @value{tramp}'s process
|
2010-08-05 15:51:21 +02:00
|
|
|
|
sentinel is overwritten. The caller can still flush the file
|
|
|
|
|
attributes cache in its process sentinel with this code:
|
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2010-08-05 15:51:21 +02:00
|
|
|
|
(unless (memq (process-status proc) '(run open))
|
|
|
|
|
(dired-uncache remote-directory))
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2010-08-05 15:51:21 +02:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Since @value{tramp} traverses subdirectories starting with the
|
2021-06-14 11:25:13 +02:00
|
|
|
|
root directory, it is most likely sufficient to make the
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@code{default-directory} of the process buffer as the root directory.
|
2007-10-06 11:55:36 +00:00
|
|
|
|
|
|
|
|
|
|
2020-12-17 18:52:23 +01:00
|
|
|
|
@subsection Timers
|
|
|
|
|
|
2020-12-20 19:45:11 +01:00
|
|
|
|
@vindex remote-file-error
|
2020-12-17 18:52:23 +01:00
|
|
|
|
Timers run asynchronously at any time when Emacs is waiting for
|
|
|
|
|
sending a string to a process, or waiting for process output. They
|
|
|
|
|
can run any remote file operation, which would conflict with the
|
|
|
|
|
already running remote file operation, if the same connection is
|
|
|
|
|
affected. @value{tramp} detects this situation, and raises the
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@code{remote-file-error} error. A timer function should avoid this
|
|
|
|
|
situation. As a minimum, it should protect itself against this error, by
|
|
|
|
|
wrapping the timer function body as follows:
|
2020-12-17 18:52:23 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
@group
|
|
|
|
|
(ignore-error 'remote-file-error
|
|
|
|
|
@dots{})
|
|
|
|
|
@end group
|
|
|
|
|
@end lisp
|
|
|
|
|
|
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Traces and Profiles
|
|
|
|
|
@chapter How to Customize Traces
|
2019-06-05 16:23:03 +02:00
|
|
|
|
@vindex tramp-verbose
|
2020-12-01 13:37:03 +01:00
|
|
|
|
@vindex tramp-debug-to-file
|
Reorganize Tramp's messages
* doc/misc/tramp.texi (Traces and Profiles): Use proper buffer
names. Add tramp-debug-command-messages.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler):
Set `tramp-debug-message-fnh-function'.
* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Wrap code `with-tramp-debug-message'.
* lisp/net/tramp-message.el: New file.
* lisp/net/tramp.el (tramp-message): Require.
(tramp-verbose, tramp-debug-to-file, tramp-debug-buffer-name)
(tramp-debug-outline-regexp, tramp-debug-font-lock-keywords)
(tramp-debug-outline-level)
(tramp-debug-buffer-command-completion-p)
(tramp-setup-debug-buffer, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-trace-buffer-name)
(tramp-trace-functions, tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-show-message-timeout)
(tramp-error-with-buffer, tramp-user-error)
(tramp-with-demoted-errors): Move to tramp-message.el.
(tramp-current-connection, tramp-file-name-user-domain)
(tramp-file-name-host-port): Add ;;;###tramp-autoload cookie.
(tramp-inhibit-progress-reporter): Move down.
(tramp-post-process-creation): Write debug message only when there
is a command.
* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Add ;;;###tramp-autoload cookie.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Don't bind `trace-buffer'.
2023-07-29 13:11:01 +02:00
|
|
|
|
@vindex tramp-debug-command-messages
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
@value{tramp} messages are raised with verbosity levels ranging from 0
|
|
|
|
|
to 10. @value{tramp} does not display all messages; only those with a
|
|
|
|
|
verbosity level less than or equal to @code{tramp-verbose}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2023-10-25 19:25:53 +02:00
|
|
|
|
@noindent
|
2007-09-06 05:07:05 +00:00
|
|
|
|
The verbosity levels are
|
|
|
|
|
|
2023-10-26 15:55:15 +02:00
|
|
|
|
@itemize @w{}
|
|
|
|
|
@item @w{ 0} Silent (no @value{tramp} messages at all)
|
|
|
|
|
@item @w{ 1} Errors
|
|
|
|
|
@item @w{ 2} Warnings
|
2023-10-29 15:29:32 +01:00
|
|
|
|
@item @w{ 3} Connection to remote hosts (default verbosity)
|
2023-10-26 15:55:15 +02:00
|
|
|
|
@item @w{ 4} Activities
|
|
|
|
|
@item @w{ 5} Internal
|
|
|
|
|
@item @w{ 6} Sent and received strings
|
|
|
|
|
@item @w{ 7} Connection properties
|
|
|
|
|
@item @w{ 8} File caching
|
|
|
|
|
@item @w{ 9} Test commands
|
|
|
|
|
@item @w{10} Traces (huge)
|
|
|
|
|
@item @w{11} Call traces (maintainer only)
|
|
|
|
|
@end itemize
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
2015-12-29 15:33:54 +01:00
|
|
|
|
With @code{tramp-verbose} greater than or equal to 4, messages are
|
Reorganize Tramp's messages
* doc/misc/tramp.texi (Traces and Profiles): Use proper buffer
names. Add tramp-debug-command-messages.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler):
Set `tramp-debug-message-fnh-function'.
* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Wrap code `with-tramp-debug-message'.
* lisp/net/tramp-message.el: New file.
* lisp/net/tramp.el (tramp-message): Require.
(tramp-verbose, tramp-debug-to-file, tramp-debug-buffer-name)
(tramp-debug-outline-regexp, tramp-debug-font-lock-keywords)
(tramp-debug-outline-level)
(tramp-debug-buffer-command-completion-p)
(tramp-setup-debug-buffer, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-trace-buffer-name)
(tramp-trace-functions, tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-show-message-timeout)
(tramp-error-with-buffer, tramp-user-error)
(tramp-with-demoted-errors): Move to tramp-message.el.
(tramp-current-connection, tramp-file-name-user-domain)
(tramp-file-name-host-port): Add ;;;###tramp-autoload cookie.
(tramp-inhibit-progress-reporter): Move down.
(tramp-post-process-creation): Write debug message only when there
is a command.
* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Add ;;;###tramp-autoload cookie.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Don't bind `trace-buffer'.
2023-07-29 13:11:01 +02:00
|
|
|
|
also written to the @value{tramp} debug buffer @file{*debug
|
|
|
|
|
tramp/foo*}. Such debug buffers are essential to bug and problem
|
|
|
|
|
analyzes. For @value{tramp} bug reports, set the @code{tramp-verbose}
|
|
|
|
|
level to 6 (@pxref{Bug Reports}).
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
The debug buffer is in
|
|
|
|
|
@ifinfo
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@ref{Outline Mode, , , emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
@ifnotinfo
|
|
|
|
|
Outline Mode.
|
|
|
|
|
@end ifnotinfo
|
2015-12-29 15:33:54 +01:00
|
|
|
|
In this buffer, messages can be filtered by their level. To see
|
|
|
|
|
messages up to verbosity level 5, enter @kbd{C-u 6 C-c C-q}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@ifinfo
|
2015-12-29 15:33:54 +01:00
|
|
|
|
Other navigation keys are described in
|
Remove XEmacs compatibility in Tramp
* doc/misc/tramp.texi: Replace flags by their hard coded name.
Remove unused flags and the enclosed alternative text for XEmacs.
* doc/misc/trampver.texi: Use "Tramp" CamelCase. Rename "emacs"
and "xemacs" flags to "unified" and "separate". Remove flags
"emacsgw", "emacsname", "emacsdir", "ftppackagename",
"emacsothername", "emacsotherdir" and "emacsotherfilename".
(trampver):
* lisp/net/trampver.el (tramp-version): Set to "2.3.0-pre".
* lisp/net/tramp.el (bkup-backup-directory-info)
(directory-sep-char, ls-lisp-use-insert-directory-program)
(outline-regexp, tramp-backup-directory-alist)
(tramp-default-method, tramp-shell-prompt-pattern, tramp-syntax)
(tramp-file-name-regexp-unified)
(tramp-file-name-regexp-separate)
(tramp-completion-file-name-regexp-unified)
(tramp-completion-file-name-regexp-separate, tramp-chunksize)
(tramp-get-method-parameter, tramp-find-method, tramp-find-user)
(tramp-debug-message, tramp-progress-reporter-update)
(with-tramp-progress-reporter)
(tramp-rfn-eshadow-setup-minibuffer)
(rfn-eshadow-setup-minibuffer-hook, tramp-unload-hook)
(tramp-rfn-eshadow-update-overlay)
(rfn-eshadow-update-overlay-hook, tramp-default-file-modes)
(tramp-file-name-for-operation)
(tramp-completion-file-name-handler)
(tramp-autoload-file-name-handler, tramp-completion-mode-p)
(tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes)
(tramp-handle-dired-uncache, tramp-handle-find-backup-file-name)
(tramp-handle-insert-file-contents, tramp-handle-load)
(tramp-handle-shell-command)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-valid-p, tramp-accept-process-output)
(tramp-check-for-regexp, tramp-wait-for-regexp)
(tramp-send-string, tramp-mode-string-to-int)
(tramp-get-local-gid, tramp-check-cached-permissions)
(tramp-get-remote-tmpdir, tramp-make-tramp-temp-file)
(auto-save-file-name-transforms)
(tramp-handle-make-auto-save-file-name, tramp-read-passwd)
(tramp-clear-passwd, tramp-time-diff):
* lisp/net/tramp-adb.el (directory-listing-before-filename-regexp)
(directory-sep-char, tramp-adb-file-name-handler-alist)
(tramp-adb-parse-device-names)
(tramp-adb-handle-expand-file-name)
(tramp-adb-handle-file-truename, tramp-adb--gnu-switches-to-ash)
(tramp-adb-handle-file-local-copy)
(tramp-adb-handle-write-region, tramp-adb-handle-set-file-modes)
(tramp-adb-handle-rename-file, tramp-adb-handle-process-file)
(tramp-adb-handle-shell-command)
(tramp-adb-handle-start-file-process, tramp-adb-get-device)
(tramp-adb-maybe-open-connection):
* lisp/net/tramp-cache.el (tramp-persistency-file-name)
(tramp-cache-print):
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections)
(tramp-bug, tramp-reporter-dump-variable)
(tramp-load-report-modules, tramp-append-tramp-buffers):
* lisp/net/tramp-compat.el (tramp-compat-funcall)
(tramp-advice-file-expand-wildcards)
(tramp-compat-temporary-file-directory)
(tramp-compat-make-temp-file, tramp-compat-copy-file)
(tramp-compat-delete-directory, )
(tramp-compat-process-running-p):
* lisp/net/tramp-ftp.el (tramp-methods) <ftp>:
(tramp-default-method-alist, tramp-foreign-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
(tramp-gvfs-do-copy-or-rename-file, tramp-gvfs-handle-copy-file)
(tramp-gvfs-handle-file-local-copy)
(tramp-gvfs-handle-file-name-all-completions)
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-monitor-file-process-filter)
(tramp-gvfs-handle-file-readable-p)
(tramp-gvfs-handle-rename-file, tramp-gvfs-handle-write-region)
(tramp-gvfs-file-name, tramp-gvfs-handler-askquestion)
(tramp-gvfs-maybe-open-connection)
(tramp-gvfs-parse-device-names):
* lisp/net/tramp-gw.el (tramp-gw-aux-proc-sentinel)
(tramp-gw-open-connection, tramp-gw-open-network-stream):
* lisp/net/tramp-sh.el (directory-sep-char)
(tramp-sh-file-name-handler-alist)
(tramp-sh-handle-file-truename)
(tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime)
(tramp-sh-handle-set-file-modes, tramp-sh-handle-set-file-times)
(tramp-sh-handle-file-acl)
(tramp-sh-handle-file-name-all-completions)
(tramp-sh-handle-copy-file, tramp-sh-handle-rename-file)
(tramp-do-copy-or-rename-file-directly)
(tramp-do-copy-or-rename-file-out-of-band)
(dired-compress-file-suffixes, dired-remove-file)
(tramp-sh-handle-dired-compress-file)
(tramp-sh-handle-insert-directory)
(tramp-sh-handle-expand-file-name)
(tramp-sh-handle-start-file-process)
(tramp-sh-handle-process-file, tramp-sh-handle-file-local-copy)
(tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
(tramp-sh-handle-file-notify-add-watch)
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
(tramp-find-executable)
(tramp-open-connection-setup-interactive-shell)
(tramp-find-inline-encoding, tramp-compute-multi-hops)
(tramp-maybe-open-connection, tramp-convert-file-attributes)
(tramp-get-remote-path, tramp-get-remote-touch):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
(tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
(tramp-smb-handle-delete-directory)
(tramp-smb-handle-directory-files, tramp-smb-handle-file-acl)
(tramp-smb-handle-make-directory-internal)
(tramp-smb-handle-process-file, tramp-smb-handle-rename-file)
(tramp-smb-handle-set-file-acl, tramp-smb-handle-set-file-modes)
(tramp-smb-handle-write-region, tramp-smb-get-file-entries)
(tramp-smb-get-cifs-capabilities)
(tramp-smb-maybe-open-connection):
* lisp/net/trampver.el (tramp-repository-get-version):
Remove XEmacs compat code.
* lisp/net/tramp-cmds.el (mml-mode, mml-insert-empty-tag)
(reporter-dump-variable): Declare functions.
* lisp/net/tramp.el (tramp-bkup-backup-directory-info)
(tramp-advice-minibuffer-electric-separator)
(tramp-advice-minibuffer-electric-tilde)
(tramp-handle-unhandled-file-name-directory):
* lisp/net/tramp-compat.el (tramp-compat-with-temp-message)
(tramp-compat-font-lock-add-keywords)
(tramp-compat-load, tramp-compat-number-sequence)
(tramp-compat-split-string, tramp-compat-delete-dups):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-file-contents-literally):
Remove.
* lisp/net/tramp-sh.el (tramp-methods) <psftp>: This does not work
recursively.
2016-01-14 14:12:17 +01:00
|
|
|
|
@ref{Outline Visibility, , , emacs}.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end ifinfo
|
|
|
|
|
|
2021-02-23 14:21:26 +01:00
|
|
|
|
@value{tramp} handles errors internally. Hence, to get a Lisp backtrace,
|
|
|
|
|
the following settings are required:
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
@lisp
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
(setq debug-on-error t
|
|
|
|
|
debug-on-signal t)
|
Improve handling of defcustoms in tramp
* doc/misc/tramp.texi: Protect all multi-line examples by
@group ... @end group. Use proper `custom-set-variables'
examples. Use consequently @option for user options. Remove
superfluous @cindex and @vindex entries.
(Top): Remove reference to outdated mail archives.
(Configuration): Tune references.
(Default Method): Make `tramp-default-method' and
`tramp-default-method-alist' a @defopt.
(Default User): Make `tramp-default-user' and
`tramp-default-user-alist' a @defopt.
(Default Host): Make `tramp-default-host' and
`tramp-default-host-alist' a @defopt.
* lisp/net/tramp.el (tramp-mode, tramp-verbose)
(tramp-backup-directory-alist, tramp-auto-save-directory)
(tramp-encoding-shell, tramp-encoding-command-switch)
(tramp-encoding-command-interactive, tramp-default-method)
(tramp-default-method-alist, tramp-default-user)
(tramp-default-user-alist, tramp-default-host)
(tramp-default-host-alist, tramp-default-proxies-alist)
(tramp-save-ad-hoc-proxies)
(tramp-restricted-shell-hosts-alist)
(tramp-local-end-of-line, tramp-rsh-end-of-line)
(tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
(tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
(tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
(tramp-terminal-prompt-regexp)
(tramp-operation-not-permitted-regexp)
(tramp-copy-failed-regexp, tramp-process-alive-regexp)
(tramp-syntax, tramp-chunksize)
(tramp-process-connection-type, tramp-connection-timeout)
(tramp-connection-min-time-diff)
(tramp-completion-reread-directory-timeout):
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-connection-properties)
(tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
(tramp-gvfs-zeroconf-domain)
(tramp-bluez-discover-devices-timeout):
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
(tramp-copy-size-limit, tramp-terminal-type)
(tramp-histfile-override)
(tramp-use-ssh-controlmaster-options, tramp-remote-path)
(tramp-remote-process-environment, tramp-sh-extra-args):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
2016-08-14 13:31:07 +02:00
|
|
|
|
@end group
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@end lisp
|
|
|
|
|
|
2017-09-04 13:10:52 +02:00
|
|
|
|
If @code{tramp-verbose} is greater than or equal to 10, Lisp
|
|
|
|
|
backtraces are also added to the @value{tramp} debug buffer in case of
|
|
|
|
|
errors.
|
|
|
|
|
|
2020-12-01 13:37:03 +01:00
|
|
|
|
In very rare cases it could happen, that @value{tramp} blocks Emacs.
|
2021-02-23 14:21:26 +01:00
|
|
|
|
Killing Emacs does not allow inspecting the debug buffer. In that
|
|
|
|
|
case, you can instruct @value{tramp} to mirror the debug buffer to
|
|
|
|
|
a file:
|
2020-12-01 13:37:03 +01:00
|
|
|
|
|
|
|
|
|
@lisp
|
|
|
|
|
(customize-set-variable 'tramp-debug-to-file t)
|
|
|
|
|
@end lisp
|
|
|
|
|
|
2023-07-05 16:19:23 +02:00
|
|
|
|
The debug buffer is written as a file in your @ref{Temporary
|
|
|
|
|
directory}. Use this option with care, because it could decrease the
|
|
|
|
|
performance of @value{tramp} actions.
|
2020-12-01 13:37:03 +01:00
|
|
|
|
|
Tune Tramp traces
* doc/misc/tramp.texi (Traces and Profiles): Describe call traces.
* lisp/net/tramp-compat.el: Add `tramp-suppress-trace' property for all
functions.
* lisp/net/tramp.el (tramp-verbose): Adapt docstring.
(tramp-file-name-method, tramp-file-name-user)
(tramp-file-name-domain, tramp-file-name-host)
(tramp-file-name-port, tramp-file-name-localname)
(tramp-file-name-hop, tramp-file-name-user-domain)
(tramp-file-name-host-port, tramp-file-name-port-or-default)
(tramp-tramp-file-p, tramp-find-method, tramp-find-user)
(tramp-find-host, tramp-dissect-file-name)
(tramp-dissect-hop-name, tramp-debug-buffer-name)
(tramp-debug-outline-level, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-read-passwd)
(tramp-clear-passwd): Add `tramp-suppress-trace' property.
(tramp-debug-message): Activate call traces.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Simplify.
2021-05-07 13:04:28 +02:00
|
|
|
|
If @code{tramp-verbose} is greater than or equal to 11, @value{tramp}
|
Reorganize Tramp's messages
* doc/misc/tramp.texi (Traces and Profiles): Use proper buffer
names. Add tramp-debug-command-messages.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler):
Set `tramp-debug-message-fnh-function'.
* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Wrap code `with-tramp-debug-message'.
* lisp/net/tramp-message.el: New file.
* lisp/net/tramp.el (tramp-message): Require.
(tramp-verbose, tramp-debug-to-file, tramp-debug-buffer-name)
(tramp-debug-outline-regexp, tramp-debug-font-lock-keywords)
(tramp-debug-outline-level)
(tramp-debug-buffer-command-completion-p)
(tramp-setup-debug-buffer, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-trace-buffer-name)
(tramp-trace-functions, tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-show-message-timeout)
(tramp-error-with-buffer, tramp-user-error)
(tramp-with-demoted-errors): Move to tramp-message.el.
(tramp-current-connection, tramp-file-name-user-domain)
(tramp-file-name-host-port): Add ;;;###tramp-autoload cookie.
(tramp-inhibit-progress-reporter): Move down.
(tramp-post-process-creation): Write debug message only when there
is a command.
* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Add ;;;###tramp-autoload cookie.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Don't bind `trace-buffer'.
2023-07-29 13:11:01 +02:00
|
|
|
|
function call traces are written to the buffer @file{*trace tramp/foo*}.
|
|
|
|
|
|
2023-08-19 10:08:05 +02:00
|
|
|
|
When @code{tramp-debug-command-messages} is non-@code{nil}, the debug
|
|
|
|
|
buffer contains all messages with verbosity level 6 (sent and received
|
Reorganize Tramp's messages
* doc/misc/tramp.texi (Traces and Profiles): Use proper buffer
names. Add tramp-debug-command-messages.
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler):
Set `tramp-debug-message-fnh-function'.
* lisp/net/tramp.el (tramp-file-name-handler):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-crypt.el (tramp-crypt-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Wrap code `with-tramp-debug-message'.
* lisp/net/tramp-message.el: New file.
* lisp/net/tramp.el (tramp-message): Require.
(tramp-verbose, tramp-debug-to-file, tramp-debug-buffer-name)
(tramp-debug-outline-regexp, tramp-debug-font-lock-keywords)
(tramp-debug-outline-level)
(tramp-debug-buffer-command-completion-p)
(tramp-setup-debug-buffer, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-trace-buffer-name)
(tramp-trace-functions, tramp-debug-message, tramp-message)
(tramp-backtrace, tramp-error, tramp-error-show-message-timeout)
(tramp-error-with-buffer, tramp-user-error)
(tramp-with-demoted-errors): Move to tramp-message.el.
(tramp-current-connection, tramp-file-name-user-domain)
(tramp-file-name-host-port): Add ;;;###tramp-autoload cookie.
(tramp-inhibit-progress-reporter): Move down.
(tramp-post-process-creation): Write debug message only when there
is a command.
* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): Add ;;;###tramp-autoload cookie.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case):
Don't bind `trace-buffer'.
2023-07-29 13:11:01 +02:00
|
|
|
|
strings), and the entry and exit messages for the function
|
|
|
|
|
@code{tramp-file-name-handler}. This is intended for @value{tramp}
|
|
|
|
|
maintainers, analyzing the remote commands for performance analysis.
|
2007-09-06 05:07:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@node GNU Free Documentation License
|
|
|
|
|
@appendix GNU Free Documentation License
|
|
|
|
|
@include doclicense.texi
|
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@node Function Index
|
|
|
|
|
@unnumbered Function Index
|
|
|
|
|
@printindex fn
|
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
|
2007-10-21 14:11:18 +00:00
|
|
|
|
@node Variable Index
|
|
|
|
|
@unnumbered Variable Index
|
|
|
|
|
@printindex vr
|
|
|
|
|
|
2013-12-12 10:57:56 +01:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@node Concept Index
|
|
|
|
|
@unnumbered Concept Index
|
|
|
|
|
@printindex cp
|
2007-10-21 14:11:18 +00:00
|
|
|
|
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@bye
|
|
|
|
|
|
|
|
|
|
@c TODO
|
|
|
|
|
@c
|
|
|
|
|
@c * Say something about the .login and .profile files of the remote
|
|
|
|
|
@c shells.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@c
|
2007-09-06 05:07:05 +00:00
|
|
|
|
@c * Explain how tramp.el works in principle: open a shell on a remote
|
|
|
|
|
@c host and then send commands to it.
|
2022-01-22 17:12:14 +01:00
|
|
|
|
@c
|
2011-12-04 00:02:42 -08:00
|
|
|
|
@c * Consistent small or capitalized words especially in menus.
|