1. 25 Feb, 2019 1 commit
    • Michael Albinus's avatar
      Adapt hooks in Tramp · cedc3410
      Michael Albinus authored
      * lisp/net/tramp-archive.el (tramp-archive-cleanup-hash):
      Remove autoload cookie.
      (tramp-cleanup-all-connections-hook): Add `tramp-archive-cleanup-hash'.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection-hook)
      (tramp-cleanup-all-connections-hook): New hook variables.
      (tramp-cleanup-connection): Set `tramp-current-connection' always
      to nil.
      (tramp-cleanup-connection): Do not call `tramp-recentf-cleanup'.
      Run ´tramp-cleanup-connection-hook`.
      (tramp-cleanup-all-connections): Do not call
      `tramp-archive-cleanup-hash' and ´tramp-recentf-cleanup'.  Run
      `tramp-cleanup-all-connections-hook'.
      
      * lisp/net/tramp-ftp.el (top): Simply call `tramp-disable-ange-ftp'.
      
      * lisp/net/tramp-integration.el (tramp-recentf-cleanup-all): New defun.
      (top): Adapt `tramp-integration-unload-hook',
      `tramp-cleanup-connection-hook' and
      `tramp-cleanup-all-connections-hook'.
      cedc3410
  2. 01 Jan, 2019 1 commit
  3. 17 Dec, 2018 1 commit
    • Michael Albinus's avatar
      Reduce autoloaded objects in Tramp · 3e9ecaec
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-program)
      (tramp-adb-connect-if-not-connected, tramp-adb-prompt):
      Remove autoload cookie.
      
      * lisp/net/tramp-cache.el (tramp-connection-properties)
      (tramp-persistency-file-name): Remove autoload cookie.
      
      * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp):
      Use `tramp-autoload' cookie.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-zeroconf-domain):
      Remove autoload cookie.
      
      * lisp/net/tramp-rclone.el (tramp-rclone-program): Remove autoload
      cookie.
      (tramp-set-completion-function): Use `tramp--with-startup'.
      
      * lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
      (tramp-copy-size-limit, tramp-histfile-override)
      (tramp-use-ssh-controlmaster-options, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args):
      Remove autoload cookie.
      (tramp-stat-marker, tramp-stat-quoted-marker): Move to tramp.el.
      
      * 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): Remove autoload cookie.
      
      * lisp/net/tramp-sudoedit.el (server, tramp-sh): Do not require.
      
      * lisp/net/tramp.el (tramp--startup-hook): Define.
      (tramp-stat-marker, tramp-stat-quoted-marker): New defconsts,
      taken from tramp-sh.el.
      
      * test/lisp/net/tramp-archive-tests.el (tramp-copy-size-limit)
      (tramp-persistency-file-name): Declare.
      
      * test/lisp/net/tramp-tests.el (tramp-connection-properties)
      (tramp-display-escape-sequence-regexp)
      (tramp-inline-compress-start-size, tramp-remote-path): Declare.
      3e9ecaec
  4. 16 Dec, 2018 1 commit
    • Stefan Monnier's avatar
      * lisp/net/tramp: Rework mutual dependencies · 07d88279
      Stefan Monnier authored
      Functionally split tramp-loaddefs.el into two parts: one part run
      while loading it at the very beginning of loading tramp.el (holding plain
      autoloads and declarations), and another run at the very end of loading
      tramp.el (holding setup code).
      This should reduce infinite-recursion problems while loading.
      
      * lisp/net/tramp.el: Require tramp-loaddefs at beginning.
      Run (new and internal) tramp--startup-hook at the end.
      Remove all tramp-autoloads.  Prefer tramp--with-startup over
      eval-after-load.
      (tramp--with-startup): New macro.
      (tramp-set-syntax): Show the new value rather than the old value in the
      error message.
      (tramp-syntax-values): Explicitly return 'values'.
      (tramp-prefix-format, tramp-prefix-regexp, tramp-method-regexp)
      (tramp-postfix-method-format, tramp-postfix-method-regexp)
      (tramp-prefix-ipv6-format, tramp-prefix-ipv6-regexp)
      (tramp-postfix-ipv6-format, tramp-postfix-ipv6-regexp)
      (tramp-postfix-host-format, tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp, tramp-file-name-structure)
      (tramp-completion-file-name-regexp): Don't initialize in the declaration,
      since it's recomputed at the end anyway.
      (tramp-time-dont-know, tramp-time-doesnt-exist): Move before first use.
      
      * lisp/net/tramp-compat.el: Don't require tramp-loaddefs any more.
      (tramp-compat-tramp-syntax): Declare tramp-syntax.
      
      * lisp/net/tramp-smb.el:
      * lisp/net/tramp-rclone.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-ftp.el:
      * lisp/net/tramp-adb.el: Wrap all autoloaded setup operations within
      tramp--with-startup.
      
      * lisp/net/tramp-sh.el: Wrap all autoloaded setup operations within
      tramp--with-startup.
      (tramp-display-escape-sequence-regexp)
      (tramp-device-escape-sequence-regexp): Don't tramp-autoload any more.
      (tramp-stat-marker): Use eval-and-compile rather than tramp-autoload.
      
      * lisp/net/tramp-sudoedit.el: Wrap all autoloaded setup operations within
      tramp--with-startup.
      Require tramp-sh at compile-time to precompute some regexps based on
      tramp-stat-marker.
      07d88279
  5. 22 Nov, 2018 1 commit
    • Michael Albinus's avatar
      Some minor Tramp cleanups · a344d993
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-file-name-p):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-p):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-p): Make it more robust.
      
      * lisp/net/tramp.el (tramp-handle-file-truename): Cache only the
      localname.
      a344d993
  6. 01 Jan, 2018 1 commit
  7. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  8. 11 Sep, 2017 1 commit
    • Michael Albinus's avatar
      Further optimization in Tramp's file name decomposition · 70045452
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-syntax): Recompute all file name
      components.  Call `custom-set-variables' after loading.
      (tramp-build-prefix-format, tramp-build-prefix-regexp)
      (tramp-build-method-regexp)
      (tramp-build-postfix-method-format)
      (tramp-build-postfix-method-regexp)
      (tramp-build-prefix-ipv6-format)
      (tramp-build-prefix-ipv6-regexp)
      (tramp-build-postfix-ipv6-format)
      (tramp-build-postfix-ipv6-regexp)
      (tramp-build-postfix-host-format)
      (tramp-build-postfix-host-regexp)
      (tramp-build-file-name-regexp)
      (tramp-build-completion-file-name-regexp): New defuns.
      (tramp-prefix-format, tramp-prefix-regexp)
      (tramp-method-regexp, tramp-postfix-method-format)
      (tramp-postfix-method-regexp, tramp-prefix-ipv6-format)
      (tramp-prefix-ipv6-regexp, tramp-postfix-ipv6-format)
      (tramp-postfix-ipv6-regexp, tramp-postfix-host-format)
      (tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp)
      (tramp-file-name-structure, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp): Convert defuns into defvars.
      (tramp-prefix-regexp-alist)
      (tramp-postfix-method-regexp-alist)
      (tramp-prefix-ipv6-regexp-alist)
      (tramp-postfix-ipv6-regexp-alist)
      (tramp-postfix-host-regexp-alist)
      (tramp-remote-file-name-spec-regexp-alist): Remove.
      (tramp-build-remote-file-name-spec-regexp)
      (tramp-build-file-name-structure): Simplify.
      (tramp-completion-file-name-regexp-alist): New defconst.
      (tramp-tramp-file-p, tramp-dissect-file-name)
      (tramp-make-tramp-file-name)
      (tramp-completion-make-tramp-file-name)
      (tramp-rfn-eshadow-update-overlay-regexp)
      (tramp-register-file-name-handlers)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-dissect-file-name, tramp-clear-passwd):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered)
      (tramp-compute-multi-hops): Use variables but functions for
      file name components.
      
      * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
      Use variables but functions for file name components.
      70045452
  9. 25 May, 2017 1 commit
    • Michael Albinus's avatar
      Switch Tramp to cl-lib · 1a9ce7c5
      Michael Albinus authored
      * lisp/net/tramp-compat.el (cl-lib): Require it rather than cl.
      
      * lisp/net/tramp-ftp.el: Don't require cl.
      
      * lisp/net/tramp-gvfs.el: Don't require cl.
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p): Use `cl-*' macros.
      
      * lisp/net/tramp-sh.el: Don't require cl.
      (tramp-set-file-uid-gid): Use `shell-quote-argument'.
      (tramp-sh-gvfs-monitor-dir-process-filter)
      (tramp-sh-inotifywait-process-filter): Use `cl-*' macros.
      
      * lisp/net/tramp-smb.el: Don't require cl.
      (tramp-smb-read-file-entry): Use `cl-*' macros.
      
      * lisp/net/tramp.el (cl-lib): Require it rather than cl.
      (tramp-parse-file, tramp-parse-shostkeys-sknownhosts)
      (tramp-parse-passwd, tramp-parse-etc-group)
      (tramp-parse-putty): Use `cl-*' macros.
      1a9ce7c5
  10. 24 May, 2017 1 commit
    • Michael Albinus's avatar
      Introduce a defstruct `tramp-file-name' as central data structure. · dca22e86
      Michael Albinus authored
      This solves also Bug#27009.
      
      * lisp/net/tramp.el (tramp-current-domain)
      (tramp-current-port): New defvars.
      (tramp-file-name): New defstruct.
      (tramp-file-name-user-domain, tramp-file-name-host-port)
      (tramp-file-name-equal-p): New defuns.
      (tramp-file-name-p, tramp-file-name-method)
      (tramp-file-name-user, tramp-file-name-host)
      (tramp-file-name-localname, tramp-file-name-hop)
      (tramp-file-name-real-user, tramp-file-name-domain)
      (tramp-file-name-real-host, tramp-file-name-port):
      Remove defuns.  They are provided by the defstruct, or not
      needed anymore.
      (tramp-dissect-file-name, tramp-buffer-name)
      (tramp-make-tramp-file-name, tramp-get-buffer)
      (tramp-set-connection-local-variables)
      (tramp-debug-buffer-name, tramp-message)
      (tramp-error-with-buffer, with-parsed-tramp-file-name)
      (tramp-completion-dissect-file-name1)
      (tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory)
      (tramp-handle-file-remote-p, tramp-handle-file-symlink-p)
      (tramp-handle-find-backup-file-name)
      (tramp-handle-insert-file-contents, tramp-process-actions)
      (tramp-check-cached-permissions, tramp-local-host-p)
      (tramp-get-remote-tmpdir, tramp-call-process)
      (tramp-call-process-region, tramp-read-passwd)
      (tramp-clear-passwd):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-handle-expand-file-name)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file)
      (tramp-adb-handle-process-file)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el (tramp-get-hash-table)
      (tramp-get-file-property, tramp-set-file-property)
      (tramp-flush-file-property, tramp-flush-directory-property)
      (tramp-get-connection-property)
      (tramp-set-connection-property, tramp-connection-property-p)
      (tramp-flush-connection-property, tramp-cache-print)
      (tramp-list-connections, tramp-dump-connection-properties)
      (tramp-parse-connection-properties):
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-url-file-name, tramp-gvfs-handler-askpassword)
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-mount-spec, tramp-gvfs-get-remote-uid)
      (tramp-gvfs-get-remote-gid)
      (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-sh-handle-expand-file-name)
      (tramp-sh-handle-start-file-process)
      (tramp-sh-handle-process-file, tramp-compute-multi-hops)
      (tramp-maybe-open-connection)
      (tramp-make-copy-program-file-name, tramp-get-remote-path)
      (tramp-get-inline-coding):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-expand-file-name)
      (tramp-smb-handle-file-acl, tramp-smb-handle-process-file)
      (tramp-smb-handle-set-file-acl)
      (tramp-smb-maybe-open-connection): Adapt according to defstruct.
      dca22e86
  11. 06 Apr, 2017 1 commit
    • Michael Albinus's avatar
      Add new Tramp syntax · 69061fd1
      Michael Albinus authored
      * lisp/net/tramp-cmds.el (tramp-change-syntax): New defun.
      
      * lisp/net/tramp.el (tramp-syntax): Change default to `def'.
      Add :set function.
      (tramp-prefix-port-format): Simplify.
      (tramp-file-name-regexp-separate): Remove.
      (tramp-initial-file-name-regexp)
      (tramp-completion-file-name-regexp-old-style)
      (tramp-initial-completion-file-name-regexp): New defconst.
      (tramp-prefix-format, tramp-prefix-regexp)
      (tramp-method-regexp, tramp-postfix-method-format)
      (tramp-postfix-method-regexp, tramp-prefix-ipv6-format)
      (tramp-prefix-ipv6-regexp, tramp-postfix-ipv6-format)
      (tramp-postfix-ipv6-regexp)
      (tramp-postfix-host-format, tramp-postfix-host-regexp)
      (tramp-remote-file-name-spec-regexp)
      (tramp-file-name-structure, tramp-file-name-regexp)
      (tramp-completion-file-name-regexp)
      (tramp-rfn-eshadow-update-overlay-regexp): Change them to be defuns.
      (tramp-tramp-file-p, tramp-find-method)
      (tramp-dissect-file-name, tramp-make-tramp-file-name)
      (tramp-completion-make-tramp-file-name)
      (tramp-rfn-eshadow-update-overlay)
      (tramp-register-autoload-file-name-handlers)
      (tramp-register-file-name-handlers)
      (tramp-unload-file-name-handlers)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-dissect-file-name, tramp-clear-passwd):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler):
      * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered)
      (tramp-compute-multi-hops): Use them.
      69061fd1
  12. 23 Mar, 2017 1 commit
    • Michael Albinus's avatar
      Use lexical-bind in Tramp · e1392faa
      Michael Albinus authored
      * lisp/net/tramp*.el: Add lexical-binding cookie.  Move declarations up.
      
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names): Use `push'
      rather than `add-to-list'.
      (tramp-adb-get-device): Remove unused variable.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names): Remove unused
      variable.
      
      * lisp/net/tramp.el (auto-save-file-name-transforms): Declare.
      (tramp-find-file-name-coding-system-alist): Use `push' rather
      than `add-to-list'.
      
      * test/lisp/net/tramp-tests.el: Add lexical-binding cookie.
      Require 'dired.  Move declarations up.
      (tramp-test32-make-nearby-temp-file): Wrap `make-nearby-temp-file'
      and `temporary-file-directory' calls with `with-no-warnings'.
      (tramp-test35-asynchronous-requests): Mark unused variable.
      e1392faa
  13. 01 Jan, 2017 1 commit
  14. 07 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Add missing dcstrings in Tramp, remove chec for obsolee methods · a7985477
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-progress-reporter-update)
      (tramp-unload-file-name-handlers, tramp-get-local-uid)
      (tramp-get-local-gid, tramp-get-local-locale):
      * lisp/net/tramp-adb.el (tramp-adb-ls-date-regexp)
      (tramp-adb-ls-toolbox-regexp, tramp-adb-get-ls-command):
      * lisp/net/tramp-compat.el (tramp-compat-funcall):
      * lisp/net/tramp-ftp.el (tramp-ftp-enable-ange-ftp):
      * lisp/net/tramp-gw.el (tramp-gw-process-filter):
      * lisp/net/tramp-sh.el (tramp-get-remote-path)
      (tramp-get-remote-locale, tramp-get-ls-command)
      (tramp-get-ls-command-with-dired)
      (tramp-get-ls-command-with-quoting-style)
      (tramp-get-ls-command-with-w-option)
      (tramp-get-test-nt-command, tramp-get-file-exists-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-uid-with-id)
      (tramp-get-remote-uid-with-perl, tramp-get-remote-python)
      (tramp-get-remote-uid-with-python, tramp-get-remote-uid)
      (tramp-get-remote-gid-with-id)
      (tramp-get-remote-gid-with-perl)
      (tramp-get-remote-gid-with-python, tramp-get-remote-gid)
      (tramp-get-env-with-u-option): Add missing docstrings.
      
      * lisp/net/tramp.el (tramp-obsolete-methods)
      (tramp-warned-obsolete-methods): Remove.
      (tramp-find-method): Do not check for obsolete methods any longer.
      a7985477
  15. 14 Jan, 2016 1 commit
    • Michael Albinus's avatar
      Remove XEmacs compatibility in Tramp · de8c5f9d
      Michael Albinus authored
      * 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.
      de8c5f9d
  16. 01 Jan, 2016 1 commit
  17. 01 Jan, 2015 2 commits
  18. 01 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Backport Tramp changes from trunk. · ae5602c5
      Michael Albinus authored
      * net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
      (tramp-adb-handle-write-region): Improve messages.
      (tramp-adb-maybe-open-connection): Don't set
      `tramp-current-*' variables.
      
      * net/tramp-cache.el (tramp-flush-file-function): Simplify check.
      Suppress debug messages.
      
      * net/tramp-ftp.el (top): Remove special handling for URL syntax.
      (tramp-ftp-file-name-handler):
      
      * net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
      (tramp-gvfs-methods-mounttracker)
      (tramp-gvfs-mountlocation-signature): Check `tramp-gvfs-enabled'
      during initialization. 
      (tramp-gvfs-handle-delete-file): Flush file properties, not
      directory properties.
      (tramp-gvfs-handle-file-attributes): Use `string-to-number' when
      reading "unix::mode".
      (tramp-gvfs-handle-file-name-all-completions):
      Use "-h" option for "gvfs-ls".
      (tramp-gvfs-url-file-name): Apply `cons' where appropriate.
      `user' and `localname' could be nil.
      (tramp-gvfs-send-command): Simplify traces.
      
      * net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
      (vc-git-program, vc-hg-program): Declare.
      (tramp-methods) <sftp>: Remove.  It has never worked satisfactorily.
      (tramp-methods) <nc>: Add new method.
      (tramp-methods) <telnet>: Redirect stderr to "/dev/null".
      (tramp-methods) <plink, plinkx, pscp, psftp>: Improve
      `tramp-login-args'.
      (tramp-default-user-alist): Add "nc".
      (top): Remove completion function for "sftp".  Add completion
      functions for "nc" and "psftp".
      (tramp-sh-handle-set-visited-file-modtime):
      (tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.
      (tramp-do-copy-or-rename-file-out-of-band):
      Use cached "remote-copy-args" value, if available.  (Bug#18199)
      Tweak docstring.  Implement support for "nc" method.
      (tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
      (tramp-remote-coding-commands, tramp-call-local-coding-command):
      Tweak docstring.
      (tramp-sh-handle-start-file-process): Expand `default-directory'.
      (tramp-sh-handle-write-region): Tweak error message.
      (tramp-sh-handle-vc-registered): Remove backends when the remote
      binary does not exist.
      (tramp-open-connection-setup-interactive-shell):
      Prefer utf-8 coding.  (Bug#17859)
      (tramp-find-inline-encoding): Do not raise an error.
      (tramp-make-copy-program-file-name): Tweak docstring.  Handle also
      the "nc" case.  Quote result also locally.
      (tramp-get-remote-id): Check also for "gid".
      (tramp-get-remote-python):
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-set-file-acl): Use `start-process'.
      (tramp-smb-handle-insert-directory): Use progress reporter.
      (tramp-smb-handle-rename-file): Flush also file properties of
      FILENAME.
      
      * net/tramp.el (tramp-methods): Tweak docstring.
      (tramp-file-name-handler): Apply `cons' where appropriate.
      (tramp-handle-file-accessible-directory-p): Check for
      `file-readable-p' instead of `file-executable-p'.
      (tramp-handle-shell-command): Use `display-buffer'.  (Bug#18326)
      (tramp-handle-unhandled-file-name-directory): Return "/".
      (tramp-check-cached-permissions):
      Use `tramp-compat-file-attributes'.
      (tramp-call-process): Add new argument VEC.  Adapt callees in all
      tramp*.el files.
      
      * net/trampver.el: Update release number.
      ae5602c5
  19. 07 Aug, 2014 1 commit
    • Reuben Thomas's avatar
      Remove remaining mentions of VMS as a host · 6d9d9cde
      Reuben Thomas authored
      * notes/exit-value: Remove specific discussion of VMS.
      * doc/emacs/programs.texi (Program Modes): Don't advertise VMS DCL support
      any more.
      * doc/misc/ediff.texi (Merging and diff3): Don't mention lack of support
      for VMS diff, we no longer support VMS.
      * lisp/progmodes/ada-mode.el:
      * lisp/net/tramp.el (tramp-handle-file-symlink-p):
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Remove a comment
      about VMS, which we no longer support.
      * lisp/progmodes/ada-xref.el (ada-xref-current): Remove mention of VMS,
      and fix a FIXME, using convert-standard-filename in place of
      removed ada-convert-file-name.
      * lisp/url/url-handlers.el: Remove a comment about VMS, which we no longer
      support.
      6d9d9cde
  20. 15 Jun, 2014 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.10. · 493ce45c
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region): Improve messages.
      (tramp-adb-maybe-open-connection): Don't set
      `tramp-current-*' variables.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-function): Do not flush
      file properties of temporary buffers.
      
      * lisp/net/tramp-ftp.el (top): Remove special handling for URL syntax.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods) <sftp>: Add.
      (tramp-gvfs-handle-delete-file): Flush file
      properties, not directory properties.
      (tramp-gvfs-handle-file-attributes): Use `string-to-number' when
      reading "unix::mode".
      (tramp-gvfs-handle-file-name-all-completions):
      Use "-h" option for "gvfs-ls".
      (tramp-gvfs-url-file-name): `user' and `localname' could be nil.
      (tramp-gvfs-send-command): Simplify traces.
      
      * lisp/net/tramp-sh.el (vc-handled-backends, vc-bzr-program)
      (vc-git-program, vc-hg-program): Declare.
      (tramp-methods) <sftp>: Remove.  It has never worked satisfactorily.
      (tramp-methods) <nc>: Add new method.
      (tramp-methods) <telnet>: Redirect stderr to "/dev/null".
      (tramp-methods) <plink, plinkx, pscp, psftp>: Improve
      `tramp-login-args'.
      (tramp-default-user-alist): Add "nc".
      (top): Remove completion function for "sftp".  Add completion
      functions for "nc" and "psftp".
      (tramp-do-copy-or-rename-file-out-of-band): Tweak docstring.
      Implement support for "nc" method.
      (tramp-sh-handle-expand-file-name, tramp-local-coding-commands)
      (tramp-remote-coding-commands, tramp-call-local-coding-command):
      Tweak docstring.
      (tramp-sh-handle-write-region): Tweak error message.
      (tramp-sh-handle-vc-registered): Remove backends when the remote
      binary does not exist.
      (tramp-find-inline-encoding): Do not raise an error.
      (tramp-make-copy-program-file-name): Tweak docstring.  Handle also
      the "nc" case.  Quote result also locally.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-set-file-acl): Use `start-process'.
      (tramp-smb-handle-insert-directory): Use progress reporter.
      (tramp-smb-handle-rename-file): Flush also file properties of
      FILENAME.
      
      * lisp/net/tramp.el (tramp-methods): Tweak docstring.
      (tramp-handle-file-accessible-directory-p): Check for
      `file-readable-p' instead of `file-executable-p'.
      (tramp-check-cached-permissions): Use
      `tramp-compat-file-attributes'.
      (tramp-call-process): Add new argument VEC.  Adapt callees in all
      tramp*.el files.
      
      * lisp/net/trampver.el: Update release number.
      493ce45c
  21. 01 Jan, 2014 1 commit
  22. 17 Oct, 2013 1 commit
    • Michael Albinus's avatar
      Code cleanup. · 4c1f03ef
      Michael Albinus authored
      * net/tramp.el (tramp-debug-message): Do not check for connection
      buffer.
      (tramp-message): Use "vector" connection property.
      
      * net/tramp.el (tramp-rfn-eshadow-update-overlay)
      (tramp-equal-remote, tramp-eshell-directory-change)
      * net/tramp-adb.el (tramp-adb-handle-copy-file)
      (tramp-adb-handle-rename-file)
      * net/tramp-cmds.el (tramp-list-remote-buffers)
      (tramp-cleanup-connection, tramp-cleanup-this-connection)
      * net/tramp-compat.el (tramp-compat-process-running-p)
      * net/tramp-ftp.el (tramp-ftp-file-name-handler)
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file)
      (tramp-gvfs-handle-rename-file)
      * net/tramp-sh.el (tramp-sh-handle-set-file-times)
      (tramp-set-file-uid-gid)
      * net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-rename-file): Use `tramp-tramp-file-p' instead
      of `file-remote-p'.
      
      * net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      * net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-process-filter)
      (tramp-gw-open-network-stream): Suppress unrelated traces.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection)
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set "vector"
      connection property.
      
      * net/tramp-cache.el (top): Suppress traces when reading
      presistency file.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
      Refactor common code.  Improve debug message.
      (tramp-maybe-open-connection)
      * net/tramp-smb.el (tramp-smb-call-winexe): Do not request
      connection buffer too early.
      
      * net/tramp-smb.el (tramp-smb-actions-get-acl): New defconst, renamed
      from `tramp-smb-actions-with-acl'.
      (tramp-smb-actions-set-acl): New defconst.
      (tramp-smb-handle-copy-directory)
      (tramp-smb-action-get-acl): New defun, renamed from
      `tramp-smb-action-with-acl'.
      (tramp-smb-action-set-acl): New defun.
      (tramp-smb-handle-set-file-acl): Rewrite.
      4c1f03ef
  23. 17 Aug, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el: · f95527c8
      Michael Albinus authored
      * net/tramp-adb.el:
      * net/tramp-cmds.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-sh.el: Don't wrap external variable declarations by
      `eval-when-compile'.
      f95527c8
  24. 15 Aug, 2013 1 commit
  25. 01 Jan, 2013 1 commit
  26. 14 Dec, 2012 1 commit
  27. 11 Jun, 2012 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.6-pre. · 2fe4b125
      Michael Albinus authored
      * net/tramp-cache.el (tramp-dump-connection-properties): Let-bind
        `print-length' and `print-level' to nil, in order to avoid
        truncation.  Reported by Christopher Schmidt
        <christopher@ristopher.com>.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Delete also
      process.
      
      * net/tramp-compat.el (tramp-compat-condition-case-unless-debug):
      New defmacro.
      (tramp-compat-copy-directory): Add optional argument
      COPY-CONTENTS.  It is not handled yet.
      
      * net/tramp-ftp.el (tramp-disable-ange-ftp): Fix docstring.
      (tramp-ftp-file-name-p): Simplify.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-expand-file-name):
      * net/tramp-gw.el (tramp-gw-open-connection): Add hop to
      connection vector.
      
      * net/tramp-sh.el (tramp-copy-size-limit): Fix docstring.
      (tramp-methods): Do not use `tramp-password-end-of-line'.
      (tramp-completion-function-alist-putty): Handle
      UNIX case.
      (tramp-remote-path): Add "/opt/bin", "/opt/sbin"
      and "/opt/local/bin".
      (tramp-do-file-attributes-with-stat)
      (tramp-do-directory-files-and-attributes-with-stat)
      Return uid and gid as real numbers.  They could run out of
      integer range on cygwin.
      (tramp-do-copy-or-rename-file-out-of-band): Better
      trace format.
      (tramp-sh-handle-expand-file-name): Handle hops.
      (tramp-open-connection-setup-interactive-shell):
      Use `tramp-cleanup'.  Move check for busyboxes ...
      (tramp-find-shell): ... here.  Simplify
      implementation.  Set "remote-shell" property also for alternative
      shells.
      (tramp-remote-coding-commands): Check "test -c
      /dev/stdout".  If failing, a regular file would be written
      otherwise.  Reported by
      Dmitry Kurochkin <dmitry.kurochkin@gmail.com>.
      (tramp-find-inline-encoding): Cache the coding
      commands in the process cache.  Apply test command on the remote
      side, if defined.
      (tramp-find-inline-compress): Cache the compress
      commands in the process cache.
      (tramp-compute-multi-hops): Save
      `tramp-default-proxies-alist'
      when requested.  Handle hops.
      (tramp-current-connection): New defvar.
      (tramp-maybe-open-connection): Use
      `tramp-cleanup'.  Throw
      `suppress', if there was a failed connection
      shortly before.  Handle user interrupt.  (Bug#10187)
      (tramp-get-inline-compress,
      tramp-get-inline-coding): Read
      connection properties from the process cache.
      
      * net/tramp-smb.el (tramp-smb-server-version)
      (tramp-smb-wrong-passwd-regexp,
      tramp-smb-actions-with-tar): New defconsts.
      (tramp-smb-prompt): Extend for powershell prompt.
      (tramp-smb-file-name-handler-alist): Add handlers for
      `process-file', `shell-command' and
      `start-file-process'.
      (tramp-smb-winexe-program, tramp-smb-winexe-shell-command)
      (tramp-smb-winexe-shell-command-switch): New
      defcustoms.
      (tramp-smb-file-name-p): Simplify.
      (tramp-smb-action-with-tar,
      tramp-smb-handle-process-file)
      (tramp-smb-kill-winexe-function, tramp-smb-call-winexe)
      (tramp-smb-shell-quote-argument): New defuns.
      (tramp-smb-handle-copy-directory): Add
      COPY-CONTENTS argument.
      Implement using "tar".  By this, time-stamps are
      preserved.
      (tramp-smb-handle-copy-file): Handle also the case
      of directories.
      (tramp-smb-do-file-attributes-with-stat)
      (tramp-smb-get-file-entries,
      tramp-smb-get-cifs-capabilities): Use
      `tramp-get-connection-buffer').
      (tramp-smb-handle-rename-file): Use "rename", when source and
      target are on the same share.
      (tramp-smb-maybe-open-connection): Handle wrong passwords.  Use
      `tramp-smb-server-version'.
      (tramp-smb-wait-for-output): Remove prompt.
      
      * net/tramp.el (top): Require 'cl.
      (tramp-methods, tramp-rsh-end-of-line): Remove
      `tramp-password-end-of-line' from docstring.
      (tramp-save-ad-hoc-proxies): New defcustom.
      (tramp-completion-function-alist): Adapt docstring.
      (tramp-default-password-end-of-line): Remove defcustom.
      (tramp-shell-prompt-pattern): Allow "[]" style
      prompts.  (Bug#11065)
      (tramp-user-regexp, tramp-file-name-regexp-unified)
      (tramp-file-name-regexp-url): Extend regexp by hop
      separator.
      (tramp-postfix-hop-format,
      tramp-postfix-hop-regexp) 
      (tramp-remote-file-name-spec-regexp): New defconst.
      (tramp-file-name-structure): Extend structure for
      hops.
      (tramp-get-method-parameter): Move up.
      (tramp-file-name-p, tramp-dissect-file-name)
      (with-parsed-tramp-file-name): Handle hops.
      (tramp-file-name-hop): New defun.
      (tramp-make-tramp-file-name): New optional arg HOP.
      (tramp-message-show-progress-reporter-message):
      New defvar.
      (tramp-with-progress-reporter): Use it.  We cannot use
      `tramp-message-show-message' here, because this
      suppresses also error buffers.
      (tramp-error-with-buffer): Suppress buffer view, if
      `tramp-message-show-message' is nil.  Use
      `tramp-get-connection-buffer'.
      (tramp-cleanup): New defun.
      (tramp-rfn-eshadow-update-overlay): Let-bind
      `non-essential' to `t'.
      (tramp-file-name-handler): If `debug-on-error' is
      set, propagate an error unchanged.
      (tramp-completion-handle-file-name-all-completions):
      Handle hops.  Fix an error when called from ido.
      (tramp-completion-dissect-file-name): Use better
      local variable name.  Add hop to the vector.
      (tramp-handle-insert-file-contents): Use
      progress-reporter for the whole scenario.
      (tramp-action-password): Let-bind
      `enable-recursive-minibuffers' to `t'.
      (tramp-check-for-regexp): Simplify search.
      (tramp-enter-password): Remove it.  Move
      implementation ...
      (tramp-action-password): ... here.
      (tramp-mode-string-to-int, tramp-local-host-p)
      (tramp-make-tramp-temp-file, tramp-read-passwd)
      (tramp-clear-passwd, tramp-time-less-p,
      tramp-time-diff): Set tramp-autoload cookie.
      
      * net/trampver.el: Update release number.
      
      * net/tramp.el (tramp-set-completion-function): Fix
      docstring.
      (tramp-parse-group, tramp-parse-file)
      (tramp-parse-shostkeys-sknownhosts): New defuns.
      (tramp-parse-rhosts, tramp-parse-rhosts-group, tramp-parse-shosts)
      (tramp-parse-shosts-group, tramp-parse-sconfig)
      (tramp-parse-sconfig-group, tramp-parse-shostkeys)
      (tramp-parse-sknownhosts, tramp-parse-hosts)
      (tramp-parse-hosts-group, tramp-parse-passwd,
      tramp-parse-netrc): Use them.
      (tramp-parse-passwd-group, tramp-parse-netrc-group)
      (tramp-parse-putty-group): Don't narrow.
      (tramp-parse-putty): Make a loop.
      (tramp-file-name-handler): Catch the `suppress'
      signal.
      2fe4b125
  28. 09 Apr, 2012 1 commit
  29. 11 Jan, 2012 1 commit
  30. 05 Jan, 2012 1 commit
  31. 04 Jun, 2011 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-set-completion-function, tramp-parse-rhosts) · f8f91c2b
      Michael Albinus authored
      (tramp-parse-shosts, tramp-parse-sconfig, tramp-parse-shostkeys)
      (tramp-parse-hosts, tramp-parse-passwd, tramp-parse-netrc)
      (tramp-parse-putty):
      * net/tramp-sh.el (tramp-completion-function-alist-rsh)
      (tramp-completion-function-alist-ssh)
      (tramp-completion-function-alist-telnet)
      (tramp-completion-function-alist-su)
      (tramp-completion-function-alist-putty): Set `tramp-autoload'
      cookie.
      
      * net/tramp-ftp.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Set `tramp-autoload' cookie, and eval after
      load "tramp.el" `tramp-set-completion-function'.
      f8f91c2b
  32. 23 May, 2011 1 commit
  33. 25 Jan, 2011 1 commit
  34. 02 Jan, 2011 1 commit
  35. 30 Dec, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-default-method-alist) · b191c9d9
      Michael Albinus authored
      (tramp-default-user-alist)
      (tramp-local-host-regexp, tramp-prefix-domain-format)
      (tramp-prefix-domain-regexp): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-imap.el:
      * net/tramp-sh.el:
      * net/tramp-smb.el: Add tramp-autoload cookie for initialisation
      code of `tramp-default-method-alist' and `tramp-default-user-alist'.
      b191c9d9
  36. 02 Dec, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-local-host-regexp): Add "localhost6". · 66feec8b
      Michael Albinus authored
      (tramp-file-name-port): Check also for `tramp-default-port'.
      (tramp-get-connection-name): New defun.
      (tramp-get-connection-process): Use it.
      (tramp-debug-message): Extend function exclude list.
      (tramp-drop-volume-letter): Fix doc string.
      
      * net/tramp-cmds.el: Remove solved todo item.
      
      * net/tramp-efs.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-imap.el:
      * net/tramp-smb.el: Fix regexps added to `tramp-default-method-alist'
      and `tramp-default-user-alist', respectively.
      
      * net/tramp-gw.el (tramp-gw-open-connection): Use
      `tramp-get-connection-name' and `tramp-get-connection-buffer'.
      
      * net/tramp-imap.el (tramp-imap-make-iht): Use just
      `tramp-file-name-port'.
      
      * net/tramp-sh.el (tramp-methods): Add recursive options to "pscp"
      and "psftp".  Exchange "%k" marker with options.
      (tramp-do-copy-or-rename-file, tramp-sh-handle-file-local-copy):
      Compute size of link target.
      (tramp-do-copy-or-rename-file-out-of-band). Move setting of
      `tramp-current-*' up due to gateway methods.  Optimze computing of
      copy arguments.  Use `tramp-get-connection-name' and
      `tramp-get-connection-buffer'.  Improve debug messages.
      (tramp-compute-multi-hops): Remove port determination.
      (tramp-maybe-open-connection): Use `tramp-get-connection-name'.
      
      * net/trampver.el: Update release number.
      66feec8b
  37. 13 Sep, 2010 1 commit
    • Michael Albinus's avatar
      Major code cleanup. Split tramp.el into tramp.el and tramp-sh.el. · 03c1ad43
      Michael Albinus authored
      * Makefile.in (TRAMP_SRC): Remove tramp-fish.el.  Add tramp-sh.el.
      
      * net/tramp.el (top): Don't show loading message.  Require just
      'tramp-compat, everything else is required there.  Use
      `ignore-errors' where appropriate.
      (tramp-inline-compress-start-size, tramp-copy-size-limit)
      (tramp-terminal-type, tramp-end-of-output)
      (tramp-initial-end-of-output, tramp-completion-function-alist-rsh)
      (tramp-completion-function-alist-ssh)
      (tramp-completion-function-alist-telnet)
      (tramp-completion-function-alist-su)
      (tramp-completion-function-alist-putty, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args)
      (tramp-actions-before-shell, tramp-uudecode)
      (tramp-perl-file-truename, tramp-perl-file-name-all-completions)
      (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes)
      (tramp-perl-encode-with-module, tramp-perl-decode-with-module)
      (tramp-perl-encode, tramp-perl-decode)
      (tramp-vc-registered-read-file-names, tramp-file-mode-type-map)
      (tramp-file-name-handler-alist, tramp-make-tramp-temp-file)
      (tramp-handle-make-symbolic-link, tramp-handle-load)
      (tramp-handle-file-name-as-directory)
      (tramp-handle-file-name-directory)
      (tramp-handle-file-name-nondirectory, tramp-handle-file-truename)
      (tramp-handle-file-exists-p, tramp-handle-file-attributes)
      (tramp-do-file-attributes-with-ls)
      (tramp-do-file-attributes-with-perl)
      (tramp-do-file-attributes-with-stat)
      (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-set-file-modes, tramp-handle-set-file-times)
      (tramp-set-file-uid-gid, tramp-remote-selinux-p)
      (tramp-handle-file-selinux-context)
      (tramp-handle-set-file-selinux-context)
      (tramp-handle-file-executable-p, tramp-handle-file-readable-p)
      (tramp-handle-file-newer-than-file-p, tramp-handle-file-modes)
      (tramp-handle-file-directory-p, tramp-handle-file-regular-p)
      (tramp-handle-file-symlink-p, tramp-handle-file-writable-p)
      (tramp-handle-file-ownership-preserved-p)
      (tramp-handle-directory-file-name, tramp-handle-directory-files)
      (tramp-handle-directory-files-and-attributes)
      (tramp-do-directory-files-and-attributes-with-perl)
      (tramp-do-directory-files-and-attributes-with-stat)
      (tramp-handle-file-name-all-completions)
      (tramp-handle-file-name-completion, tramp-handle-add-name-to-file)
      (tramp-handle-copy-file, tramp-handle-copy-directory)
      (tramp-handle-rename-file, tramp-do-copy-or-rename-file)
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-handle-make-directory, tramp-handle-delete-directory)
      (tramp-handle-delete-file)
      (tramp-handle-dired-recursive-delete-directory)
      (tramp-handle-dired-compress-file, tramp-handle-dired-uncache)
      (tramp-handle-insert-directory)
      (tramp-handle-unhandled-file-name-directory)
      (tramp-handle-expand-file-name)
      (tramp-handle-substitute-in-file-name)
      (tramp-handle-executable-find, tramp-process-sentinel)
      (tramp-handle-start-file-process, tramp-handle-process-file)
      (tramp-handle-call-process-region, tramp-handle-shell-command)
      (tramp-handle-file-local-copy, tramp-handle-file-remote-p)
      (tramp-handle-insert-file-contents)
      (tramp-handle-insert-file-contents-literally)
      (tramp-handle-find-backup-file-name)
      (tramp-handle-make-auto-save-file-name, tramp-handle-write-region)
      (tramp-vc-registered-file-names, tramp-handle-vc-registered)
      (tramp-sh-file-name-handler, tramp-vc-file-name-handler)
      (tramp-maybe-send-script, tramp-set-auto-save, tramp-run-test)
      (tramp-run-test2, tramp-find-executable, tramp-set-remote-path)
      (tramp-find-file-exists-command, tramp-open-shell)
      (tramp-find-shell, tramp-barf-if-no-shell-prompt)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-local-coding-commands, tramp-remote-coding-commands)
      (tramp-find-inline-encoding, tramp-call-local-coding-command)
      (tramp-inline-compress-commands, tramp-find-inline-compress)
      (tramp-compute-multi-hops, tramp-maybe-open-connection)
      (tramp-send-command , tramp-wait-for-output)
      (tramp-send-command-and-check, tramp-barf-unless-okay)
      (tramp-send-command-and-read, tramp-mode-string-to-int)
      (tramp-convert-file-attributes, tramp-check-cached-permissions)
      (tramp-file-mode-from-int, tramp-file-mode-permissions)
      (tramp-shell-case-fold, tramp-make-copy-program-file-name)
      (tramp-method-out-of-band-p, tramp-local-host-p)
      (tramp-get-remote-path, tramp-get-remote-tmpdir)
      (tramp-get-ls-command, tramp-get-ls-command-with-dired)
      (tramp-get-test-command, tramp-get-test-nt-command)
      (tramp-get-file-exists-command, tramp-get-remote-ln)
      (tramp-get-remote-perl, tramp-get-remote-stat)
      (tramp-get-remote-readlink, tramp-get-remote-trash)
      (tramp-get-remote-id, tramp-get-remote-uid, tramp-get-remote-gid)
      (tramp-get-local-uid, tramp-get-local-gid)
      (tramp-get-inline-compress, tramp-get-inline-coding, ): Move to
      tramp-sh.el.
      (tramp-methods, tramp-default-method-alist)
      (tramp-default-user-alist, tramp-foreign-file-name-handler-alist):
      Move initialization to tramp-sh.el.
      (tramp-temp-name-prefix): Make it a defconst.
      (tramp-dissect-file-name): Don't check anymore for multi-hop
      methods.
      (tramp-debug-outline-regexp): Add a docstring.
      (tramp-debug-outline-level): Renamed from `tramp-outline-level'.
      (tramp-get-debug-buffer): Use it.
      
      * net/tramp-cache.el (top): Set tramp-autoload cookie for
      initialization forms.
      (tramp-set-connection-property): Don't protect `tramp-message'
      call, it isn't necessary any longer.
      (tramp-dump-connection-properties): Use `ignore-errors'.
      
      * net/tramp-compat.el (top): Require 'advice, 'format-spec,
      'password-cache and 'auth-source.
      
      * net/tramp-gvfs.el (top):
      * net/tramp-smb.el (top): Require 'tramp-sh.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use `ignore-errors'.
      
      * net/tramp-sh.el: New file, derived from tramp.el.
      (top): Initialize `tramp-methods', `tramp-default-method-alist',
      `tramp-default-user-alist', tramp-foreign-file-name-handler-alist.
      Remove "scp1_old", "scp2_old", "ssh1_old", "ssh2_old".  Use
      `ignore-errors' where appropriate.
      (tramp-sh-file-name-handler-alist): Renamed from
      `tramp-file-name-handler-alist'.
      (tramp-send-command-and-check): Return t or nil.  Remove all
      `zerop' checks, where called.
      (tramp-handle-set-file-modes)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-handle-delete-directory, tramp-handle-delete-file)
      (tramp-maybe-send-script, ): Use `tramp-barf-unless-okay'.
      (tramp-sh-file-name-handler, tramp-send-command-and-check)
      (tramp-get-remote-ln): Set tramp-autoload cookie.
      
      * net/tramp-fish.el: Remove file.
      03c1ad43
  38. 08 Sep, 2010 1 commit
    • Michael Albinus's avatar
      Migrate to Tramp 2.2. Rearrange load dependencies. · 0f34aa77
      Michael Albinus authored
      (Bug#1529, Bug#5448, Bug#5705)
      
      * Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
      ($(TRAMP_DIR)/tramp-loaddefs.el): New target.
      (LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
      
      * net/tramp.el (top): Remove all other tramp-* loads except
      tramp-compat.el.  Remove all changes to tramp-unload-hook for
      other tramp-* packages.  Rearrange defun order.  Change calls of
      `tramp-compat-call-process', `tramp-compat-decimal-to-octal',
      `tramp-compat-octal-to-decimal' to new function names.
      (tramp-terminal-type, tramp-initial-end-of-output)
      (tramp-methods, tramp-foreign-file-name-handler-alist)
      (tramp-tramp-file-p, tramp-completion-mode-p)
      (tramp-send-command-and-check, tramp-get-remote-path)
      (tramp-get-remote-tmpdir, tramp-get-remote-ln)
      (tramp-shell-quote-argument): Set tramp-autoload cookie.
      (with-file-property, with-connection-property): Move to
      tramp-cache.el.
      (tramp-local-call-process, tramp-decimal-to-octal)
      (tramp-octal-to-decimal): Move to tramp-compat.el.
      (tramp-handle-shell-command): Do not require 'shell.
      (tramp-compute-multi-hops): No special handling for tramp-gw-*
      symbols.
      (tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
      
      * net/tramp-cache.el (top): Require 'tramp.  Add to
      `tramp-unload-hook'.
      (tramp-cache-data, tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-flush-directory-property, tramp-get-connection-property)
      (tramp-set-connection-property, tramp-flush-connection-property)
      (tramp-cache-print, tramp-list-connections): Set tramp-autoload
      cookie.
      (with-file-property, with-connection-property): New defuns, moved
      from tramp.el.
      (tramp-flush-file-function): Use `with-parsed-tramp-file-name'
      macro.
      
      * net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
      (tramp-version): Set tramp-autoload cookie.
      
      * net/tramp-compat.el (top): Require 'tramp-loaddefs.  Remove all
      changes to tramp-unload-hook for other tramp-* packages.  Add to
      `tramp-unload-hook'.
      (tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
      (tramp-compat-call-process): New defuns, moved from tramp.el.
      
      * net/tramp-fish.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change call of
      `tramp-compat-decimal-to-octal' to new function name.
      (tramp-fish-method): Make it a defconst.
      (tramp-fish-file-name-p): Make it a defsubst.
      (tramp-fish-method, tramp-fish-file-name-handler)
      (tramp-fish-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-ftp-method): Make it a defconst.
      (tramp-ftp-file-name-p): Make it a defsubst.
      (tramp-ftp-method, tramp-ftp-file-name-handler)
      (tramp-ftp-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-gvfs-file-name-p): Make it a defsubst.
      (tramp-gvfs-methods, tramp-gvfs-file-name-handler)
      (tramp-gvfs-file-name-p): Set tramp-autoload cookie.
      (tramp-gvfs-handle-file-directory-p): New defun.
      (tramp-gvfs-file-name-handler-alist): Use it.
      
      * net/tramp-gw.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
      (tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
      defconst.
      (tramp-gw-tunnel-method, tramp-gw-socks-method)
      (tramp-gw-open-connection): Set tramp-autoload cookie.
      
      * net/tramp-imap.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-imap-file-name-p): Make it a defsubst.
      (tramp-imap-method, tramp-imaps-method)
      (tramp-imap-file-name-handler)
      (tramp-imap-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-smb.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.  Change call of `tramp-compat-decimal-to-octal' to new
      function name.
      (tramp-smb-tunnel-method): Make it a defconst.
      (tramp-smb-file-name-p): Make it a defsubst.
      (tramp-smb-method, tramp-smb-file-name-handler)
      (tramp-smb-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-uu.el (top) Add to `tramp-unload-hook'.
      (tramp-uuencode-region): Set tramp-autoload cookie.
      
      * net/trampver.el (top) Add to `tramp-unload-hook'.
      (tramp-version, tramp-bug-report-address): Set tramp-autoload
      cookie.  Update release number.
      0f34aa77
  39. 29 Aug, 2010 1 commit