1. 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
  2. 01 Nov, 2015 1 commit
    • Michael Albinus's avatar
      Improve completion in tramp-gvfs.el · df660da4
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-zeroconf-parse-device-names):
      Renamed from `tramp-zeroconf-parse-service-device-names'.
      (tramp-zeroconf-parse-webdav-device-names): Removed.  Code merged
      with `tramp-zeroconf-parse-device-names'.
      (tramp-gvfs-parse-device-names): New defun.
      (top): Use it when `tramp-zeroconf-parse-device-names' is not
      applicable.
      
      * lisp/net/tramp.el (tramp-set-completion-function): The argument
      could also be a zeroconf service type.
      df660da4
  3. 30 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Some minor fixes for tramp-gvfs.el · 36574e0a
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
      An attribute returned by gvfs-info might be empty.  In case of
      undetermined uid or gid, return "UNKNOWN" or -1, respectively.
      (tramp-zeroconf-parse-service-device-names): New defun.
      Derived from `tramp-zeroconf-parse-workstation-device-names'.
      (top): Add completion functions for "afp" and "smb" methods.
      36574e0a
  4. 29 Oct, 2015 1 commit
    • Michael Albinus's avatar
      Add "afp" method to Tramp · 270a17fe
      Michael Albinus authored
      * doc/misc/tramp.texi (GVFS based methods): Describe `afp' method.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
      (tramp-gvfs-handle-expand-file-name)
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
      (tramp-gvfs-maybe-open-connection): Support also "afp".
      (tramp-gvfs-handle-file-attributes): Handle the case of empty
      "owner::user" and "owner::group" entries.
      270a17fe
  5. 22 Oct, 2015 1 commit
  6. 16 Oct, 2015 1 commit
  7. 14 Oct, 2015 2 commits
  8. 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
  9. 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
  10. 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
  11. 25 Aug, 2015 1 commit
    • 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
  12. 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
  13. 21 May, 2015 1 commit
  14. 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
  15. 01 Jan, 2015 2 commits
  16. 05 Nov, 2014 1 commit
    • Michael Albinus's avatar
      * net/tramp-adb.el (tramp-adb-handle-file-attributes): · bd02f3d4
      Michael Albinus authored
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
      * net/tramp-sh.el (tramp-sh-handle-file-attributes): Return nil in
      case of errors.
      
      * net/tramp.el (tramp-error-with-buffer): Show connection buffer
      only when message appeared in minibuffer.
      
      Fixes: debbugs:18891
      bd02f3d4
  17. 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
  18. 25 Oct, 2014 1 commit
  19. 14 Sep, 2014 1 commit
  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. 06 Mar, 2014 1 commit
  22. 20 Feb, 2014 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (ls-lisp-use-insert-directory-program): Declare. · f5bee33b
      Michael Albinus authored
      (tramp-handle-insert-directory): New defun, taken from tramp-gvfs.el.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [insert-directory]: Use `tramp-handle-insert-directory.
      (tramp-gvfs-handle-insert-directory): Remove function.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory):
      Call `tramp-handle-insert-directory'.
      f5bee33b
  23. 19 Feb, 2014 1 commit
    • Michael Albinus's avatar
      Some Tramp minor fixes, found during test campaign. · 50bfdd5d
      Michael Albinus authored
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist)
      [make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [make-symbolic-link]: Use `tramp-handle-make-symbolic-link'.
      (tramp-gvfs-maybe-open-connection): Set always connection
      properties, even if target is mounted already.
      
      * net/tramp-sh.el (tramp-color-escape-sequence-regexp):
      Set tramp-autoload cookie.
      (tramp-get-remote-touch): New defun.
      (tramp-sh-handle-set-file-times): Use it.
      (tramp-sh-handle-directory-files-and-attributes):
      Use `tramp-handle-directory-files-and-attributes' if neither stat
      nor perl are available on the remote host.
      
      * net/tramp-smb.el (tramp-smb-handle-insert-directory): Mark trailing
      "/".  Write long listing only when "l" belongs to the switches.
      
      * net/tramp.el (tramp-handle-make-symbolic-link): New defun.
      (tramp-check-cached-permissions): Call `file-attributes' if the
      cache is empty.
      
      * net/trampver.el: Update release number.
      50bfdd5d
  24. 01 Jan, 2014 1 commit
  25. 14 Nov, 2013 1 commit
  26. 13 Nov, 2013 1 commit
  27. 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
  28. 07 Oct, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-insert-file-contents): Improve handling · f8f91d5d
      Michael Albinus authored
      of BEG and END.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Use
      `tramp-handle-insert-file-contents'.
      (tramp-gvfs-handle-insert-file-contents): Remove function.
      
      * net/tramp-sh.el (tramp-sh-handle-insert-directory): Use
      `save-restriction' in order to keep markers.
      
      * net/trampver.el: Update release number.
      f8f91d5d
  29. 13 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-check-proper-method-and-host): Rename it from · 35c3d36e
      Michael Albinus authored
      `tramp-check-proper-host'.  Check for a valid method name.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Call it.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties
      also for hash values.
      35c3d36e
  30. 08 Sep, 2013 1 commit
    • Michael Albinus's avatar
      Improve compatibility with older Emacsen, and XEmacs. · af9ff9e8
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Call `propertize'
      only if it is bound.  It isn't for XEmacs.
      (with-tramp-progress-reporter): Do not let-bind `result'.  This
      yields to scoping errors in XEmacs.
      (tramp-handle-make-auto-save-file-name): New function, moved from
      tramp-sh.el.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-adb--gnu-switches-to-ash): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-cache.el (tramp-cache-print): Call
      `substring-no-properties' only if it is bound.  It isn't for XEmacs.
      
      * net/tramp-cmds.el (tramp-bug): Call `propertize' only if it is
      bound.  It isn't for XEmacs.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Catch
      `wrong-number-of-arguments' error.
      (tramp-compat-replace-regexp-in-string): New defun.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-gvfs-handle-copy-file): Use `tramp-compat-funcall' for
      `copy-file'.
      (tramp-gvfs-file-gvfs-monitor-file-process-filter)
      (tramp-gvfs-file-name): Use `tramp-compat-replace-regexp-in-string'.
      (tramp-synce-list-devices): Use `push' instead of `pushnew'.
      
      * net/tramp-gw.el (tramp-gw-open-network-stream): Use
      `tramp-compat-replace-regexp-in-string'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Call
      `tramp-handle-make-auto-save-file-name'.
      (tramp-sh-handle-make-auto-save-file-name): Move to tramp.el.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter): Use
      `tramp-compat-replace-regexp-in-string'.
      (tramp-compute-multi-hops): Use `push' instead of `pushnew'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add handler
      for `make-auto-save-file-name'.
      (tramp-smb-handle-copy-directory): Call
      `tramp-compat-replace-regexp-in-string'.
      (tramp-smb-get-file-entries): Use `push' instead of `pushnew'.
      (tramp-smb-handle-copy-file): Improve error message.
      (tramp-smb-handle-rename-file): Rename directly only in case
      `newname' does not exist yet.  This is a restriction of smbclient.
      (tramp-smb-maybe-open-connection): Rerun the function only when
      `auth-sources' is non-nil.
      af9ff9e8
  31. 06 Sep, 2013 1 commit
  32. 03 Sep, 2013 1 commit
  33. 02 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-user-error): Move it ... · 95beaef3
      Michael Albinus authored
      * net/tramp.el (tramp-user-error): ... here.
      (tramp-find-method, tramp-check-proper-host)
      (tramp-dissect-file-name, tramp-debug-message)
      (tramp-handle-shell-command):
      * net/tramp-adb.el (tramp-adb-handle-shell-command):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler): Adapt callees.
      
      * net/tramp-cache.el (tramp-cache-print): Don't print text properties.
      95beaef3
  34. 26 Aug, 2013 1 commit
    • Michael Albinus's avatar
      * minibuffer.el: Revert change from 2013-08-20. · 78fc2530
      Michael Albinus authored
      * net/tramp.el (tramp-find-method, tramp-find-user): Mark result
      with text property `tramp-default', if appropriate.
      (tramp-check-proper-host): New defun.
      (tramp-dissect-file-name): Do not check hostname.  Revert change
      of 2013-03-18.
      (tramp-backtrace): Make VEC-OR-PROC optional.
      
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-sh.el (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Apply
      `tramp-check-proper-host'.
      78fc2530
  35. 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
  36. 15 Aug, 2013 2 commits
    • Michael Albinus's avatar
      Declare external variables. · b74f0d96
      Michael Albinus authored
      b74f0d96
    • Michael Albinus's avatar
      Remove byte compiler warnings, visible when compiling with · 5d89d9d2
      Michael Albinus authored
      `byte-compile-force-lexical-warnings' set to t.
      
      * net/tramp.el (tramp-debug-message, tramp-message, tramp-error)
      (tramp-error-with-buffer): Rename ARGS to ARGUMENTS and BUFFER to BUF.
      (tramp-handle-unhandled-file-name-directory)
      (tramp-handle-file-notify-add-watch, tramp-action-login)
      (tramp-action-succeed, tramp-action-permission-denied)
      (tramp-action-terminal, tramp-action-process-alive): Prefix unused
      arguments with "_".
      
      * net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-handle-insert-directory, tramp-adb-handle-delete-file)
      (tramp-adb-handle-copy-file): Prefix unused arguments with "_".
      (tramp-adb-handle-file-truename): Remove unused arguments.
      
      * net/tramp-cache.el (tramp-flush-directory-property)
      (tramp-flush-connection-property, tramp-list-connections)
      (tramp-parse-connection-properties): Prefix unused arguments with "_".
      
      * net/tramp-compat.el (tramp-compat-make-temp-file): Rename
      FILENAME to F.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-handle-write-region, tramp-bluez-parse-device-names)
      (tramp-zeroconf-parse-workstation-device-names)
      (tramp-zeroconf-parse-webdav-device-names)
      (tramp-synce-parse-device-names): Prefix unused arguments with "_".
      
      * net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel): Prefix unused arguments with "_".
      
      * net/tramp-sh.el (tramp-sh-handle-file-truename): Remove unused
      arguments.
      (tramp-sh-handle-copy-file, tramp-sh-handle-dired-compress-file)
      (tramp-sh-handle-insert-file-contents-literally)
      (tramp-sh-handle-file-notify-add-watch): Prefix unused arguments
      with "_".
      (tramp-do-copy-or-rename-file, tramp-barf-if-no-shell-prompt):
      Remove unused variables.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file, tramp-smb-handle-delete-file)
      (tramp-smb-read-file-entry): Prefix unused arguments with "_".
      
      * net/tramp-uu.el (tramp-uu-b64-alphabet, tramp-uu-b64-char-to-byte):
      Make them a defconst.
      (tramp-uuencode-region): Remove unused variable.
      5d89d9d2
  37. 01 Aug, 2013 1 commit
    • Michael Albinus's avatar
      Complete file name handlers. · a43dc424
      Michael Albinus authored
      * net/tramp.el (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-handle-file-notify-rm-watch): New functions.
      (tramp-call-process): Do not bind `default-directory'.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
      alphabetically.
      [access-file, add-name-to-file, dired-call-process]:
      [dired-compress-file, file-acl, file-notify-rm-watch]:
      [file-ownership-preserved-p, file-selinux-context]:
      [make-directory-internal, make-symbolic-link, set-file-acl]:
      [set-file-selinux-context, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
      [file-notify-add-watch, file-notify-rm-watch]:
      [set-file-times, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (with-tramp-gvfs-error-message)
      (tramp-gvfs-handle-set-visited-file-modtime)
      (tramp-gvfs-fuse-file-name): Remove.
      (tramp-gvfs-handle-file-notify-add-watch)
      (tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
      (tramp-gvfs-handle-write-region): Fix error in moving tmpfile.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
      alphabetically.
      [file-notify-rm-watch ]: Use default Tramp handler.
      [executable-find]: Remove private handler.
      (tramp-do-copy-or-rename-file-out-of-band): Do not bind
      `default-directory'.
      (tramp-sh-handle-executable-find)
      (tramp-sh-handle-file-notify-rm-watch): Remove functions.
      (tramp-sh-file-gvfs-monitor-dir-process-filter)
      (tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
      Do not use `format' in `tramp-message'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist)
      [file-notify-rm-watch, set-visited-file-modtime]:
      [verify-visited-file-modtime]: Add handler.
      (tramp-smb-call-winexe): Do not bind `default-directory'.
      a43dc424