1. 06 Dec, 2015 1 commit
    • Michael Albinus's avatar
      Fix minor Tramp problems found on BSD · 0e574ea3
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not append
      trailing slash.  Quote apostrophes.
      (tramp-sh-handle-file-truename): Do not append trailing slash in
      the "ls" case.
      (tramp-get-ls-command-with-w-option): New defun.
      (tramp-do-file-attributes-with-ls)
      (tramp-do-directory-files-and-attributes-with-stat): Use it.
      
      * test/automated/tramp-tests.el
      (tramp-test31-special-characters-with-perl)
      (tramp-test31-special-characters-with-ls)
      (tramp-test32-utf8-with-perl, tramp-test32-utf8-with-ls):
      Suppress also readlink.
      0e574ea3
  2. 03 Dec, 2015 1 commit
    • Michael Albinus's avatar
      Some error message improvements in tramp-sh.el · a1c26b19
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Suppress error messages for "mesg" and "biff" calls.
      (tramp-get-remote-path): Ignore errors when expanding
      `tramp-own-remote-path'.  Raise a warning instead.
      a1c26b19
  3. 11 Nov, 2015 1 commit
    • Michael Albinus's avatar
      Optimize `file-equal-p' and `file-in-directory-p' in Tramp · ef75c3b5
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-file-equal-p)
      (tramp-handle-file-in-directory-p): New defuns.  Suggested by
      Harvey Chapman <hchapman@3gfp.com>
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use them.
      ef75c3b5
  4. 14 Oct, 2015 2 commits
  5. 09 Oct, 2015 1 commit
  6. 20 Sep, 2015 1 commit
    • Michael Albinus's avatar
      Improve file notifications, especially for Tramp · f5bdcb32
      Michael Albinus authored
      * doc/lispref/files.texi (Magic File Names):
      Mention `file-notify-valid-p'.
      
      * doc/lispref/os.texi (File Notifications):
      Describe `file-notify-valid-p'.
      
      * etc/NEWS: Add `file-notify-valid-p'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      Improve implementation.
      (tramp-gvfs-monitor-file-process-filter): Rename from
      `tramp-gvfs-file-gvfs-monitor-file-process-filter'.  Delete
      process if appropriate.
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Improve implementation.
      (tramp-sh-gvfs-monitor-dir-process-filter): Rename from
      `tramp-sh-file-gvfs-monitor-dir-process-filter'.  Delete process
      if appropriate.
      (tramp-sh-inotifywait-process-filter): Rename from
      `tramp-sh-file-inotifywait-process-filter'.  Delete process if
      appropriate.
      
      * lisp/net/tramp.el (tramp-handle-file-notify-rm-watch):
      Use `delete-process'
      (tramp-handle-file-notify-valid-p): Check also, that file or
      directory to be watched still exists.
      
      * test/automated/file-notify-tests.el (file-notify--test-timeout):
      New defun.  Use it at all places a timeout is needed.
      (file-notify--test-cleanup): Delete directories recursively.
      Cleanup also Tramp connections.
      (file-notify-test02-events): Add tests for `attribute-change'.
      (file-notify-test04-file-validity, file-notify-test05-dir-validity):
      Add tests for `file-notify-rm-watch'.
      f5bdcb32
  7. 17 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Backslash cleanup in Elisp source files · 284c470e
      Paul Eggert authored
      This patch should not change behavior.  It typically omits backslashes
      where they are redundant (e.g., in the string literal "^\$").
      In a few places, insert backslashes where they make regular
      expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
      "^\\*", which has the same effect as a regular expression.
      Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
      and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
      RCS IDs, as that makes it clearer that the backslash is intended.
      284c470e
  8. 13 Sep, 2015 1 commit
    • Michael Albinus's avatar
      Introduce `file-notify-valid-p' · f6f92e87
      Michael Albinus authored
      * lisp/filenotify.el (file-notify-valid-p): New defun.
      (gfile-valid-p, w32notify-valid-p): Make them an alias to `identity'.
      
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist)
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist)
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist)
      <file-notify-valid-p>: Add handler.
      
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Add `file-notify-valid-p'.
      (tramp-handle-file-notify-valid-p): New defun.
      
      * src/inotify.c (Finotify_valid_p): New defun.
      (syms_of_inotify): Declare Sinotify_valid_p.
      f6f92e87
  9. 11 Sep, 2015 1 commit
    • Michael Albinus's avatar
      Improve file notifications in Tramp · 58e79d70
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Set proper events to watch for.
      (tramp-sh-file-gvfs-monitor-dir-process-filter): Report only
      watched events.
      58e79d70
  10. 01 Sep, 2015 2 commits
  11. 30 Aug, 2015 1 commit
  12. 26 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Go back to grave quoting in Tramp · b12cfbfd
      Paul Eggert authored
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-gw.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp.el:
      Stick with grave quoting in diagnostics strings.  This is more
      portable to older Emacs, desirable for Tramp.
      * lisp/net/tramp-cache.el: Use ‘format-message’, not ‘format’,
      for diagnostic that needs requoting.
      * lisp/net/tramp-compat.el (format-message):
      Fall back on simple ‘format’, since that’s good enough now.
      b12cfbfd
  13. 25 Aug, 2015 3 commits
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-awk-encode, tramp-awk-decode) · 46709093
      Michael Albinus authored
      (tramp-awk-coding-test): New defconsts.
      (tramp-remote-coding-commands): Use them.
      (tramp-find-inline-encoding): Check for Perl only if necessary.
      46709093
    • Paul Eggert's avatar
      Prefer directed to neutral quotes · 875a5d0e
      Paul Eggert authored
      Prefer directed to neutral quotes in docstings and diagnostics.
      In docstrings, escape apostrophes that would otherwise be translated
      to curved quotes using the newer, simpler rules.
      * admin/unidata/unidata-gen.el (unidata-gen-table):
      * lisp/align.el (align-region):
      * lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
      * lisp/bookmark.el (bookmark-default-annotation-text):
      * lisp/calc/calc-aent.el (math-read-if, math-read-factor):
      * lisp/calc/calc-lang.el (math-read-giac-subscr)
      (math-read-math-subscr):
      * lisp/calc/calc-misc.el (report-calc-bug):
      * lisp/calc/calc-prog.el (calc-fix-token-name)
      (calc-read-parse-table-part):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      * lisp/dabbrev.el (dabbrev-expand):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
      * lisp/emacs-lisp/elint.el (elint-get-top-forms):
      * lisp/emacs-lisp/lisp-mnt.el (lm-verify):
      * lisp/emulation/viper-cmd.el (viper-toggle-search-style):
      * lisp/erc/erc-button.el (erc-nick-popup):
      * lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
      * lisp/eshell/em-dirs.el (eshell/cd):
      * lisp/eshell/em-glob.el (eshell-glob-regexp):
      * lisp/eshell/em-pred.el (eshell-parse-modifiers):
      * lisp/eshell/esh-arg.el (eshell-parse-arguments):
      * lisp/eshell/esh-opt.el (eshell-show-usage):
      * lisp/files-x.el (modify-file-local-variable):
      * lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
      (filesets-update-pre010505):
      * lisp/find-cmd.el (find-generic, find-to-string):
      * lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
      * lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
      (gnus-agent-fetch-headers):
      * lisp/gnus/gnus-int.el (gnus-start-news-server):
      * lisp/gnus/gnus-registry.el:
      (gnus-registry--split-fancy-with-parent-internal):
      * lisp/gnus/gnus-score.el (gnus-summary-increase-score):
      * lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
      * lisp/gnus/gnus-topic.el (gnus-topic-rename):
      * lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
      * lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
      * lisp/gnus/spam.el (spam-check-blackholes):
      * lisp/mail/feedmail.el (feedmail-run-the-queue):
      * lisp/mpc.el (mpc-playlist-rename):
      * lisp/net/ange-ftp.el (ange-ftp-shell-command):
      * lisp/net/mairix.el (mairix-widget-create-query):
      * lisp/net/tramp-cache.el:
      * lisp/obsolete/otodo-mode.el (todo-more-important-p):
      * lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
      * lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
      * lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
      * lisp/org/ob-core.el (org-babel-goto-named-src-block)
      (org-babel-goto-named-result):
      * lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
      * lisp/org/ob-ref.el (org-babel-ref-resolve):
      * lisp/org/org-agenda.el (org-agenda-prepare):
      * lisp/org/org-bibtex.el (org-bibtex-fields):
      * lisp/org/org-clock.el (org-clock-notify-once-if-expired)
      (org-clock-resolve):
      * lisp/org/org-feed.el (org-feed-parse-atom-entry):
      * lisp/org/org-habit.el (org-habit-parse-todo):
      * lisp/org/org-mouse.el (org-mouse-popup-global-menu)
      (org-mouse-context-menu):
      * lisp/org/org-table.el (org-table-edit-formulas):
      * lisp/org/ox.el (org-export-async-start):
      * lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
      (dun-rooms, dun-endgame-questions):
      * lisp/progmodes/ada-mode.el (ada-goto-matching-start):
      * lisp/progmodes/ada-xref.el (ada-find-executable):
      * lisp/progmodes/antlr-mode.el (antlr-options-alists):
      * lisp/progmodes/flymake.el (flymake-parse-err-lines)
      (flymake-start-syntax-check-process):
      * lisp/progmodes/python.el (python-define-auxiliary-skeleton):
      * lisp/progmodes/sql.el (sql-comint):
      * lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
      * lisp/server.el (server-get-auth-key):
      * lisp/subr.el (version-to-list):
      * lisp/textmodes/reftex-ref.el (reftex-label):
      * lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
      * lisp/vc/ediff-diff.el (ediff-same-contents):
      * lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
      * test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
      Use directed rather than neutral quotes in diagnostics.
      875a5d0e
    • Paul Eggert's avatar
      Tramp diagnostics as per ‘text-quoting-style’ · 7b5290da
      Paul Eggert authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-truename)
      (tramp-adb-get-ls-command, tramp-adb-handle-make-directory)
      (tramp-adb-handle-delete-directory)
      (tramp-adb-handle-delete-file)
      (tramp-adb-handle-file-local-copy)
      (tramp-adb-handle-write-region, tramp-adb-handle-copy-file)
      (tramp-adb-send-command-and-check, tramp-adb-wait-for-output)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-compat.el (tramp-compat-temporary-file-directory)
      (tramp-compat-octal-to-decimal)
      (tramp-compat-coding-system-change-eol-conversion):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler)
      (tramp-gvfs-do-copy-or-rename-file)
      (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-delete-file)
      (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-handle-file-local-copy)
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-handle-make-directory)
      (tramp-gvfs-handle-write-region, tramp-gvfs-url-file-name):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-set-file-modes)
      (tramp-sh-handle-file-name-all-completions)
      (tramp-sh-handle-add-name-to-file, tramp-do-copy-or-rename-file)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-make-directory)
      (tramp-sh-handle-delete-directory, tramp-sh-handle-delete-file)
      (tramp-sh-handle-insert-directory, tramp-process-sentinel)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region, tramp-sh-handle-vc-registered)
      (tramp-sh-handle-file-notify-add-watch, tramp-maybe-send-script)
      (tramp-find-file-exists-command, tramp-open-shell)
      (tramp-find-shell)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-find-inline-encoding, tramp-find-inline-compress)
      (tramp-compute-multi-hops, tramp-maybe-open-connection)
      (tramp-wait-for-output, tramp-send-command-and-check)
      (tramp-send-command-and-read, tramp-get-remote-path)
      (tramp-get-ls-command, tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-test-command, tramp-get-remote-ln)
      (tramp-get-remote-perl, tramp-get-remote-stat)
      (tramp-get-remote-readlink, tramp-get-remote-trash)
      (tramp-get-remote-touch, tramp-get-remote-gvfs-monitor-dir)
      (tramp-get-remote-inotifywait, tramp-get-remote-id)
      (tramp-get-remote-python):
      * lisp/net/tramp-smb.el (tramp-smb-errors)
      (tramp-smb-handle-add-name-to-file, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory)
      (tramp-smb-handle-delete-file)
      (tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-make-directory)
      (tramp-smb-handle-make-directory-internal)
      (tramp-smb-handle-make-symbolic-link)
      (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):
      * lisp/net/tramp.el (tramp-debug-message, tramp-error)
      (tramp-process-actions):
      Generate diagnostics according to ‘text-quoting-style’, by
      using curved quotes in format strings and ‘format-message’
      when appropriate.
      * lisp/net/tramp-compat.el (format-message):
      Define a replacement, if it’s an older version of Emacs
      that doesn’t have it already.
      7b5290da
  14. 24 Aug, 2015 1 commit
    • Michael Albinus's avatar
      * lisp/net/tramp-sh.el (tramp-stat-marker, tramp-stat-quoted-marker): · 7eab29d2
      Michael Albinus authored
      New defconsts.
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat): Use them.
      (tramp-convert-file-attributes): Remove double slashes in symlinks.
      
      * test/automated/tramp-tests.el (tramp-test18-file-attributes):
      Handle symlinks with "//" in the file name.
      7eab29d2
  15. 15 Aug, 2015 1 commit
  16. 14 Aug, 2015 2 commits
  17. 29 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Fix Tramp problems with multihops, and nc. · a53d1d32
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-get-connection-property, tramp-set-connection-property)
      (tramp-flush-connection-property): Remove hop from vector.
      
      * lisp/net/tramp-gw.el (tramp-gw-process-filter): Ignore errors.
      
      * lisp/net/tramp-sh.el (tramp-methods) <nc>: Separate STDERR.
      (tramp-do-copy-or-rename-file-out-of-band): Increase timeout of
      netstat to 60".
      (tramp-sh-handle-start-file-process): Do not show hops in prompt.
      
      * lisp/net/tramp.el (tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory, tramp-handle-file-remote-p):
      Keep hop in result.
      
      * test/automated/tramp-tests.el (tramp-test02-file-name-dissect):
      Add hop tests.
      a53d1d32
  18. 23 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Fix some Tramp problems with HP-UX · 8e03731c
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
      Add "tab0" to stty call.
      
      * test/automated/tramp-tests.el (tramp-persistency-file-name):
      Set to nil.
      (tramp--test-hpux-p): New defun.
      (tramp--test-utf8): Use it.
      8e03731c
  19. 22 Jul, 2015 1 commit
  20. 21 Jul, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp repository · b0dbf4c0
      Michael Albinus authored
      * doc/misc/tramp.texi (Configuration): Note, that Tramp must be
      required prior changing its configuration.
      (Connection caching, Predefined connection information)
      (Remote shell setup): Fix typos.
      (Predefined connection information): Describe, how to overwrite
      parameters of `tramp-methods'.
      (Remote programs, Remote processes, Traces and Profiles):
      Simplify example.
      (Remote programs): Remove superfluous comment.
      
      * doc/misc/trampver.texi: Update release number.
      
      * lisp/net/tramp-cache.el (tramp-connection-properties): Adapt docstring.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
      (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
      (tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
      "gvfs-mkdir -p ..." does not work robust.
      (tramp-gvfs-maybe-open-connection): Adapt `tramp-get-method-parameter' call.
      
      * lisp/net/tramp-sh.el (tramp-methods):
      Add `tramp-remote-shell-login' parameter where it fits.
      (tramp-get-remote-path): Use it.
      (tramp-make-copy-program-file-name): Fix quoting for "psftp" method.
      (all): Adapt `tramp-get-method-parameter' calls.
      
      * lisp/net/tramp.el (tramp-methods): Adapt docstring.
      (tramp-get-method-parameter): Replace argument METHOD by VEC.
      Check also for hits in `tramp-connection-properties'.  Adapt docstring.
      (tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
      (all): Adapt `tramp-get-method-parameter' calls.
      
      * lisp/net/trampver.el Update release number.
      
      * test/automated/tramp-tests.el (tramp--instrument-test-case):
      Add "^make-symbolic-link not supported$" to `debug-ignored-errors'.
      (tramp-test13-make-directory, tramp--test-adb-p)
      (tramp--test-smb-or-windows-nt-p): Simplify.
      (tramp--test-ftp-p, tramp--test-gvfs-p): New defuns.
      (tramp--test-special-characters): Fix docstring.  Add gvfs and ftp tests.
      (tramp--test-utf8): Fix docstring.
      b0dbf4c0
  21. 01 Jun, 2015 1 commit
    • Michael Albinus's avatar
      Sync with Tramp repository · e3a0f3da
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-message): Dump connection buffer error
      messages.
      (tramp-handle-make-auto-save-file-name): When calling
      `make-auto-save-file-name' internally, make sure it uses Unix-like
      behavior, not Windows-like behavior.
      
      * lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for
      the local case, because "chown" might fail on w32.
      
      * lisp/net/trampver.el (tramp-repository-get-version): Don't run
      for XEmacs.
      e3a0f3da
  22. 31 May, 2015 1 commit
  23. 29 May, 2015 1 commit
    • Michael Albinus's avatar
      Improve Tramp traces. · 0a539105
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-call-process-region): New defun.
      
      * lisp/net/tramp-sh.el (tramp-get-inline-coding): Use it.
      0a539105
  24. 26 May, 2015 1 commit
    • Michael Albinus's avatar
      Fix Bug#20621 · f43306ae
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-set-auto-save): Remove it.  There
      are major modes which set `auto-save-mode' on their own rules;
      Tramp shall not overwrite such settings.
      
      Fixes: debbugs:20621
      f43306ae
  25. 25 May, 2015 4 commits
  26. 21 May, 2015 1 commit
  27. 09 Apr, 2015 1 commit
    • Stefan Monnier's avatar
      Stop messing with the EMACS env var · beaab898
      Stefan Monnier authored
      Fixes: debbugs:20202
      
      * lisp/net/tramp-sh.el (tramp-remote-process-environment):
      * lisp/comint.el (comint-exec-1):
      * lisp/term.el (term-exec-1): Don't set EMACS envvar.
      * lisp/progmodes/compile.el (compilation-start): Same and bring
      INSIDE_EMACS's format in line with other users.
      beaab898
  28. 24 Mar, 2015 1 commit
    • Michael Albinus's avatar
      Improve special char handling in Tramp · 444975fa
      Michael Albinus authored
      * net/tramp-sh.el (tramp-do-file-attributes-with-ls)
      (tramp-do-file-attributes-with-stat): Quote file names in output.
      (tramp-do-directory-files-and-attributes-with-stat): Use "//" as marker.
      444975fa
  29. 18 Mar, 2015 1 commit
  30. 17 Mar, 2015 2 commits
  31. 15 Mar, 2015 1 commit
    • Michael Albinus's avatar
      In Tramp. check ssh Control* options only when needed · 28caedba
      Michael Albinus authored
      Fixes: debbugs:20015
      
      * net/tramp-adb.el:
      * net/tramp-gvfs.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Set tramp-autoload cookie for all defcustoms.
      
      * net/tramp-sh.el (tramp-use-ssh-controlmaster-options):
      New defcustom, moved from tramp.el.
      (tramp-ssh-controlmaster-options): New defvar, moved from tramp.el
      but with a nil initial value.
      (tramp-ssh-controlmaster-options): New defun.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection): Use it.
      
      * net/tramp.el (tramp-ssh-controlmaster-options)
      (tramp-use-ssh-controlmaster-options): Move them to tramp-sh.el.
      (tramp-default-method): Do not check for
      `tramp-ssh-controlmaster-options'.
      28caedba