1. 12 Aug, 2017 1 commit
    • Michael Albinus's avatar
      Implement EXCL of write-region for Tramp · ec5cfaa4
      Michael Albinus authored
      * lisp/net/ange-ftp.el (ange-ftp-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region)
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region)
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
      Implement MUSTBENEW.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file)
      * lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
      (tramp-sh-handle-add-name-to-file)
      (tramp-do-copy-or-rename-file)
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      Adapt error message for `file-already-exists'.
      
      * src/lisp.h:
      * src/eval.c (call8): New function.
      
      * src/fileio.c (write_region): Pass also lockname and
      mustbenew to the file name handler.
      
      * test/lisp/net/tramp-tests.el (tramp-test10-write-region):
      Add tests for MUSTBENEW.
      ec5cfaa4
  2. 12 Jun, 2017 1 commit
    • Michael Albinus's avatar
      Handle port and domain in Tramp's password cache · 7dfc8353
      Michael Albinus authored
      * doc/misc/tramp.texi (Password handling): Explain port and
      domain handling in authinfo.
      
      * lisp/net/tramp.el (tramp-process-actions, tramp-clear-passwd):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-askpassword):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
      (tramp-smb-maybe-open-connection): Handle also domain and port.
      7dfc8353
  3. 26 May, 2017 1 commit
    • Michael Albinus's avatar
      Remove Emacs 23 compat code from Tramp · b3032988
      Michael Albinus authored
      * doc/misc/tramp.texi (Remote processes): Don't mention
      Emacs 24 explicitely.
      (Frequently Asked Questions): Remove Emacs 23 from
      compatibility list.
      
      * lisp/net/tramp.el:
      * lisp/net/tramp-adb.el:
      * lisp/net/tramp-cache.el:
      * lisp/net/tramp-gvfs.el:
      * lisp/net/tramp-sh.el:
      * lisp/net/tramp-smb.el: Replace compat function calls.
      
      * lisp/net/tramp-compat.el (remote-file-name-inhibit-cache)
      (tramp-compat-condition-case-unless-debug)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-process-live-p): Remove them.
      
      * lisp/net/trampver.el: Make version check fit for Emacs 24.
      b3032988
  4. 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
  5. 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
  6. 09 May, 2017 1 commit
    • Noam Postavsky's avatar
      Revert "Output number of characters added to file (Bug#354)" · daaec72a
      Noam Postavsky authored
      The extra message text turned out to be quite annoying in practice,
      and is generally more trouble than it's worth.  Also revert several
      related changes.
      
      Partially revert "Handle `write-region' messages in Tramp properly"
      Revert "New var write-region-verbose, default nil"
      Revert "* src/fileio.c (write_region): Don't say "1 characters".  (Bug#26796)"
      Revert "Minor tuneup of write-region change"
      Revert "Adjust write-region so file name is at the beginning again"
      Revert "Fix handling of non-integer START param to write-region"
      Revert "Output number of characters added to file (Bug#354)"
      
      * doc/emacs/files.texi (Misc File Ops):
      * etc/NEWS:
      * lisp/epa-file.el (epa-file-write-region):
      * lisp/gnus/mm-util.el (mm-append-to-file):
      * lisp/jka-compr.el (jka-compr-write-region):
      * lisp/net/ange-ftp.el (ange-ftp-write-region):
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
      * lisp/net/tramp.el (tramp-handle-write-region-message):
      * src/fileio.c (write_region, syms_of_fileio):
      * test/lisp/net/tramp-tests.el (tramp-test10-write-region): Remove
      extra characters from file writing messages.
      daaec72a
  7. 08 May, 2017 1 commit
    • Michael Albinus's avatar
      Handle `write-region' messages in Tramp properly · 73e3ed48
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-write-region-message): New defsubst.
      * lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-write-region): Use it.
      
      * lisp/net/tramp.el (tramp-password-prompt-regexp)
      (tramp-completion-mode-p):
      * lisp/net/tramp-cmds.el (tramp-reporter-dump-variable)
      (tramp-append-tramp-buffers):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      Use `bound-and-true-p'.
      
      * lisp/net/tramp-compat.el (tramp-compat-delete-file):
      Don't check for `boundp' anymore.
      
      * test/lisp/net/tramp-tests.el (ert-x): Require it.
      (tramp--test-messages): New defvar.
      (tramp-test10-write-region): Extend test.
      73e3ed48
  8. 04 May, 2017 1 commit
    • Michael Albinus's avatar
      Set process property `adjust-window-size-function' to `ignore' in Tramp · b0370a89
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
      (tramp-smb-maybe-open-connection): Set process property
      `adjust-window-size-function' to `ignore'.
      b0370a89
  9. 03 May, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#26763 · a26e33a1
      Michael Albinus authored
      * lisp/files.el (delete-directory): Call file name handler
      with `trash' argument.
      
      * lisp/net/ange-ftp.el (ange-ftp-delete-directory):
      * lisp/net/tramp-sh.el (tramp-sh-handle-delete-directory):
      Add TRASH arg.  Implement it.  (Bug#26763)
      (tramp-get-remote-trash): Check for `delete-by-moving-to-trash'.
      
      * lisp/net/tramp-adb.el (tramp-adb-handle-delete-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
      Add _TRASH arg.
      a26e33a1
  10. 31 Mar, 2017 1 commit
  11. 26 Mar, 2017 1 commit
    • Michael Albinus's avatar
      Fix Bug#26258 · 8884baf3
      Michael Albinus authored
      * 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):
      Autoload.  Call `tramp-register-foreign-file-name-handler'.  (Bug#26258)
      
      * lisp/net/tramp.el (tramp-autoload-file-name-handler): Remove.
      (tramp-register-autoload-file-name-handlers)
      (tramp-register-file-name-handlers): Do not handle
      `tramp-autoload-file-name-handler' anymore.  Mark `operations'
      the handlers are responsible for.
      (tramp-register-foreign-file-name-handler): New defun.
      8884baf3
  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. 13 Mar, 2017 1 commit
    • Michael Albinus's avatar
      Require method in remote file name syntax · ed33337c
      Michael Albinus authored
      * lisp/minibuffer.el (completion--nth-completion):
      Do not bind `non-essential'.
      
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Do not call
      `tramp-check-proper-method-and-host'.
      
      * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options): Better traces.
      (tramp-maybe-open-connection): Do not use argument for
      ´tramp-completion-mode-p'.
      
      * lisp/net/tramp.el (tramp-default-method-marker): New defconst.
      (tramp-prefix-format, tramp-postfix-method-format)
      (tramp-prefix-ipv6-format, tramp-postfix-ipv6-format)
      (tramp-prefix-port-format, tramp-postfix-host-format)
      (tramp-file-name-regexp, tramp-completion-file-name-regexp):
      Use `eq' instead of `eqal'.
      (tramp-method-regexp, tramp-domain-regexp)
      (tramp-remote-file-name-spec-regexp)
      (tramp-file-name-regexp-unified)
      (tramp-completion-file-name-regexp-unified)
      (tramp-completion-file-name-regexp-separate): Adapt regexp.
      (tramp-completion-file-name-handler-alist)
      (tramp-run-real-handler): Autoload them.
      (tramp-find-method): Handle `tramp-default-method-marker'.
      (tramp-check-proper-method-and-host)
      (tramp-completion-run-real-handler): Remove them.
      (tramp-error-with-buffer, tramp-connectable-p): Do not use
      argument for ´tramp-completion-mode-p'.
      (tramp-find-foreign-file-name-handler): Remove COMPLETION
      argument.  Do not apply heuristic for completion.
      (tramp-file-name-handler): Do not modify `non-essential'.
      (tramp-completion-file-name-handler): Change implementation.
      (tramp-autoload-file-name-handler)
      (tramp-completion-handle-file-name-all-completions):
      Call `tramp-run-real-handler'.
      (tramp-completion-mode-p): Do not autoload.  Remove argument.
      Do not apply heuristic for completion.
      (tramp-completion-dissect-file-name): Simplify implementation.
      (tramp-handle-file-name-as-directory): Call `tramp-connectable-p'.
      
      * test/lisp/net/tramp-tests.el (tramp-test01-file-name-syntax)
      (tramp-test02-file-name-dissect)
      (tramp-test03-file-name-defaults)
      (tramp-test06-directory-file-name): Adapt to the new syntax.
      (tramp-test11-copy-file, tramp-test12-rename-file)
      (tramp--test-check-files): Deactivate temporarily tests with
      quoted file names.
      (tramp-test16-directory-files, tramp-test17-insert-directory):
      Adapt tests.
      (tramp-test24-file-name-completion): Do not check for
      completion mode.
      (tramp-test31-make-auto-save-file-name): Deactivate temporarily
      two tests.
      ed33337c
  14. 01 Jan, 2017 1 commit
  15. 12 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Further improvements in Tramp's file name unquoting · 00d4ba27
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy)
      (tramp-adb-handle-write-region): Unquote localname.
      (tramp-adb-handle-copy-file): Implement direct copy on remote device.
      (tramp-adb-handle-rename-file): Quote arguments, add "-f" to force.
      
      * lisp/net/tramp.el (tramp-file-name-unquote-localname): New defun.
      (tramp-handle-file-name-case-insensitive-p):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-get-file-attributes)
      (tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
      (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
      * lisp/net/tramp-smb.el (tramp-smb-get-share)
      (tramp-smb-get-localname): Use it.
      
      * test/lisp/net/tramp-tests.el (tramp--test-docker-p): New defun.
      (tramp--test-special-characters, tramp-test34-utf8)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls): Use it.
      00d4ba27
  16. 09 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Fix further problems with quoted file names in Tramp · fc0fd24c
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-quoted-name-p, tramp-quote-name)
      (tramp-unquote-name): Move defsubst ...
      * lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p)
      (tramp-compat-file-name-quote)
      (tramp-compat-file-name-unquote): ... here. Adapt callees.
      
      * lisp/net/tramp-cache.el (tramp-flush-file-property)
      (tramp-flush-directory-property):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name):
      * lisp/net/tramp-sh.el (tramp-make-copy-program-file-name):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-substitute-in-file-name)
      (tramp-smb-get-share, tramp-smb-get-localname): Handle quoted files.
      fc0fd24c
  17. 07 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Fix problems in quoting Tramp file names · f41097ad
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-get-remote-tmpdir): Add also hop to result.
      (tramp-unquote-shell-quote-argument): New defun.
      (tramp-shell-quote-argument):
      * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-make-copy-program-file-name):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl)
      (tramp-smb-shell-quote-argument): Use it.
      f41097ad
  18. 05 Dec, 2016 1 commit
    • Michael Albinus's avatar
      Remove compat code in Tramp · 1b762de1
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-parse-time-months): Remove.
      
      * lisp/net/tramp-compat.el (top): Require parse-time.
      
      * lisp/net/tramp-smb.el (tramp-smb-read-file-entry):
      Use `parse-time-months'.
      1b762de1
  19. 15 Nov, 2016 1 commit
    • Michael Albinus's avatar
      Implement file name handler for `file-name-case-insensitive-p' · 024d5b0c
      Michael Albinus authored
      * doc/lispref/files.texi (Truenames): `file-name-case-insensitive-p'
      is also applicable for remote hosts.
      
      * lisp/net/tramp.el (tramp-methods): Improve docstring.
      (tramp-file-name-for-operation): Add `file-name-case-insensitive-p'.
      (tramp-handle-file-name-case-insensitive-p): New defun.
      
      * lisp/net/tramp-smb.el (tramp-methods) <smb>:
      Add `tramp-case-insensitive' entry.
      
      * 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-name-case-insensitive-p>: Add handler.  (Bug#22300, Bug#24441)
      024d5b0c
  20. 14 Nov, 2016 1 commit
    • Michael Albinus's avatar
      Implement connection-local variables · 6647e051
      Michael Albinus authored
      * doc/lispref/variables.texi (Connection Local Variables): New section.
      
      * etc/NEWS: Mention connection-local variables.
      
      * lisp/files-x.el (enable-connection-local-variables)
      (connection-local-variables-alist, connection-local-class-alist)
      (connection-local-criteria-alist): New defvars.
      (connection-local-get-classes)
      (connection-local-get-class-variables): New defsubst.
      (connection-local-set-classes)
      (connection-local-set-class-variables)
      (hack-connection-local-variables)
      (hack-connection-local-variables-apply): New defuns.
      (with-connection-local-classes): New defmacro.
      
      * lisp/net/tramp.el (tramp-set-connection-local-variables): New defun.
      
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection): Use it.
      
      * test/lisp/files-x-tests.el: New file.
      6647e051
  21. 22 Oct, 2016 1 commit
    • Michael Albinus's avatar
      Fix error codes in Tramp · abd1642e
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-user-error): New defsubst,
      taken from tramp.el.
      (tramp-file-missing): New defconst.
      
      * lisp/net/tramp.el (tramp-user-error): Remove it.
      (tramp-check-proper-method-and-host)
      (tramp-dissect-file-name, tramp-debug-message)
      (tramp-handle-shell-command):
      * lisp/net/tramp-adb.el (tramp-adb-handle-shell-command):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler):
      Use `tramp-compat-user-error'.
      
      * lisp/net/tramp.el (tramp-handle-insert-file-contents)
      (tramp-handle-load):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-local-copy)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-local-copy):
      * lisp/net/tramp-smb.el (tramp-smb-handle-file-local-copy):
      Use `tramp-file-missing'.  (Bug#24714)
      
      * lisp/net/tramp-sh.el (tramp-sh-handle-add-name-to-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
      Use `file-already-exists'.
      abd1642e
  22. 11 Oct, 2016 1 commit
  23. 30 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Use `file-attribute-*' in Tramp · 62b6c5d2
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-file-attribute-type)
      (tramp-compat-file-attribute-link-number)
      (tramp-compat-file-attribute-user-id)
      (tramp-compat-file-attribute-group-id)
      (tramp-compat-file-attribute-modification-time)
      (tramp-compat-file-attribute-size)
      (tramp-compat-file-attribute-modes): New defaliases.
      
      * lisp/net/tramp.el (tramp-handle-file-modes)
      (tramp-handle-file-newer-than-file-p)
      (tramp-handle-file-regular-p, tramp-handle-file-symlink-p)
      (tramp-handle-set-visited-file-modtime)
      (tramp-handle-verify-visited-file-modtime)
      (tramp-get-local-gid, tramp-check-cached-permissions):
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-directory-p)
      (tramp-adb-handle-file-truename, tramp-adb-handle-copy-file):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      (tramp-gvfs-handle-file-directory-p)
      (tramp-gvfs-handle-write-region, tramp-gvfs-get-remote-uid)
      (tramp-gvfs-get-remote-gid):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-truename)
      (tramp-sh-handle-set-visited-file-modtime)
      (tramp-sh-handle-verify-visited-file-modtime)
      (tramp-sh-handle-file-newer-than-file-p)
      (tramp-sh-handle-file-ownership-preserved-p)
      (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-sh-handle-file-local-copy)
      (tramp-sh-handle-write-region):
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-directory-p)
      (tramp-smb-handle-file-writable-p)
      (tramp-smb-handle-insert-directory): Use them.
      62b6c5d2
  24. 29 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Use `process-live-p' in Tramp · 1d0d6d92
      Michael Albinus authored
      * lisp/net/tramp-compat.el (tramp-compat-process-live-p): New defun.
      
      * lisp/net/tramp.el (tramp-connectable-p, tramp-handle-file-remote-p)
      (tramp-handle-file-notify-valid-p)
      (tramp-action-process-alive, tramp-action-out-of-band)
      (tramp-wait-for-regexp):
      * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
      (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-cache.el (tramp-get-connection-property):
      * tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
      * lisp/net/tramp-gw.el (tramp-gw-gw-proc-sentinel)
      (tramp-gw-aux-proc-sentinel, tramp-gw-open-connection):
      * tramp-sh.el (tramp-process-sentinel)
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-maybe-open-connection):
      * lisp/net/lisp/net/lisp/net/tramp-smb.el (tramp-smb-action-with-tar)
      (tramp-smb-handle-copy-directory, tramp-smb-action-get-acl)
      (tramp-smb-handle-process-file, tramp-smb-action-set-acl)
      (tramp-smb-get-cifs-capabilities)
      (tramp-smb-get-stat-capability)
      (tramp-smb-maybe-open-connection, tramp-smb-wait-for-output)
      (tramp-smb-kill-winexe-function): Use it.
      1d0d6d92
  25. 14 Aug, 2016 1 commit
    • Michael Albinus's avatar
      Improve handling of defcustoms in tramp · 59720dc1
      Michael Albinus authored
      * doc/misc/tramp.texi: Protect all multi-line examples by
      @group ... @end group.  Use proper `custom-set-variables'
      examples.  Use consequently @option for user options.  Remove
      superfluous @cindex and @vindex entries.
      (Top): Remove reference to outdated mail archives.
      (Configuration): Tune references.
      (Default Method): Make `tramp-default-method' and
      `tramp-default-method-alist' a @defopt.
      (Default User): Make `tramp-default-user' and
      `tramp-default-user-alist' a @defopt.
      (Default Host): Make `tramp-default-host' and
      `tramp-default-host-alist' a @defopt.
      
      * lisp/net/tramp.el (tramp-mode, tramp-verbose)
      (tramp-backup-directory-alist, tramp-auto-save-directory)
      (tramp-encoding-shell, tramp-encoding-command-switch)
      (tramp-encoding-command-interactive, tramp-default-method)
      (tramp-default-method-alist, tramp-default-user)
      (tramp-default-user-alist, tramp-default-host)
      (tramp-default-host-alist, tramp-default-proxies-alist)
      (tramp-save-ad-hoc-proxies)
      (tramp-restricted-shell-hosts-alist)
      (tramp-local-end-of-line, tramp-rsh-end-of-line)
      (tramp-login-prompt-regexp, tramp-shell-prompt-pattern)
      (tramp-password-prompt-regexp, tramp-wrong-passwd-regexp)
      (tramp-yesno-prompt-regexp, tramp-yn-prompt-regexp)
      (tramp-terminal-prompt-regexp)
      (tramp-operation-not-permitted-regexp)
      (tramp-copy-failed-regexp, tramp-process-alive-regexp)
      (tramp-syntax, tramp-chunksize)
      (tramp-process-connection-type, tramp-connection-timeout)
      (tramp-connection-min-time-diff)
      (tramp-completion-reread-directory-timeout):
      * lisp/net/tramp-adb.el (tramp-adb-program)
      (tramp-adb-connect-if-not-connected, tramp-adb-prompt):
      * lisp/net/tramp-cache.el (tramp-connection-properties)
      (tramp-persistency-file-name):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-methods)
      (tramp-gvfs-zeroconf-domain)
      (tramp-bluez-discover-devices-timeout):
      * lisp/net/tramp-sh.el (tramp-inline-compress-start-size)
      (tramp-copy-size-limit, tramp-terminal-type)
      (tramp-histfile-override)
      (tramp-use-ssh-controlmaster-options, tramp-remote-path)
      (tramp-remote-process-environment, tramp-sh-extra-args):
      * lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
      (tramp-smb-conf, tramp-smb-winexe-program)
      (tramp-smb-winexe-shell-command)
      (tramp-smb-winexe-shell-command-switch): Add :require 'tramp.
      59720dc1
  26. 07 Aug, 2016 2 commits
    • Michael Albinus's avatar
      Add `make-nearby-temp-file' and `temporary-file-directory' · 2c050617
      Michael Albinus authored
      * doc/lispref/files.texi (Unique File Names):
      Introduce `make-nearby-temp-file' and `temporary-file-directory'.
      (Magic File Names): Mention `make-nearby-temp-file' and
      `temporary-file-directory'.
      
      * etc/NEWS (provided): Mention `make-nearby-temp-file' and
      `temporary-file-directory'.
      
      * lisp/files.el (mounted-file-systems): New defcustom.
      (temporary-file-directory, make-nearby-temp-file): New defuns.
      (normal-backup-enable-predicate): Fix docstring.
      
      * 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):
      <make-nearby-temp-file, temporary-file-directory>: Add handler.
      
      * lisp/net/tramp.el (tramp-file-name-for-operation):
      Add `make-nearby-temp-file' and `temporary-file-directory'.
      (tramp-get-remote-tmpdir): Remove compatibility code.
      (tramp-handle-temporary-file-directory)
      (tramp-handle-make-nearby-temp-file): New defuns.
      
      * lisp/org/ob-core.el (org-babel-local-file-name):
      * lisp/progmodes/gud.el (gud-common-init):
      * lisp/vc/vc-hooks.el (vc-user-login-name): Use `file-remote-p'.
      
      * lisp/vc/vc-git.el (vc-git-checkin): Handle remote log message.
      
      * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name):
      Check `tramp--test-enabled'.
      (tramp-test18-file-attributes): Add tests for
      `file-ownership-preserved-p'.
      (tramp-test27-start-file-process, tramp-test28-shell-command):
      Reduce timeouts in `accept-process-output'.
      (tramp-test--shell-command-to-string-asynchronously): Add timeout.
      (tramp-test29-environment-variables): Remove additional sleep calls.
      (tramp-test32-make-nearby-temp-file): New test.
      (tramp--test-special-characters, tramp--test-utf8): Adapt docstring.
      (tramp-test33-special-characters)
      (tramp-test33-special-characters-with-stat)
      (tramp-test33-special-characters-with-perl)
      (tramp-test33-special-characters-with-ls, tramp-test34-utf8)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls)
      (tramp-test35-asynchronous-requests)
      (tramp-test36-recursive-load, tramp-test37-unload): Rename.
      (tramp--test-ftp-p): Simplify check.
      (tramp--test-sh-p): New defun.
      (tramp-test20-file-modes, tramp-test22-file-times)
      (tramp-test26-process-file, tramp-test27-start-file-process)
      (tramp-test28-shell-command)
      (tramp-test29-environment-variables)
      (tramp-test30-vc-registered)
      (tramp-test33-special-characters-with-stat)
      (tramp-test33-special-characters-with-perl)
      (tramp-test33-special-characters-with-ls)
      (tramp-test34-utf8-with-stat, tramp-test34-utf8-with-perl)
      (tramp-test34-utf8-with-ls)
      (tramp-test35-asynchronous-requests): Use it.
      2c050617
    • 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
  27. 05 Jul, 2016 1 commit
    • Michael Albinus's avatar
      Make all Tramp tests pass for "gdrive" method · 1ba6f2c7
      Michael Albinus authored
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
      * lisp/net/tramp-compat.el (tramp-compat-copy-directory)
      (tramp-compat-delete-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
      Use `directory-files-no-dot-files-regexp'.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-send-command): Call `tramp-flush-file-property' in
      case of problems.
      
      * test/lisp/net/tramp-tests.el (tramp--instrument-test-case):
      Adapt docstring.
      (tramp-test14-delete-directory): Make further tests.
      1ba6f2c7
  28. 26 Jun, 2016 1 commit
    • Michael Albinus's avatar
      Fix some oddities in Tramp's rsync and smb methods · 574904bb
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-methods) <rsync>: Add "-p" and
      "-s" arguments.
      (tramp-do-copy-or-rename-file-out-of-band):
      Call `file-name-directory' also for remote NEWNAME.
      
      * test/lisp/net/tramp-tests.el (tramp-test15-copy-directory):
      Do not skip for tramp-smb.el.  Test als COPY-CONTENTS case.
      (tramp-test24-file-name-completion): Improve check for
      hostname completion.
      (tramp--test-rsync-p): New defun.
      (tramp-test31-special-characters)
      (tramp-test31-special-characters-with-stat)
      (tramp-test31-special-characters-with-perl)
      (tramp-test31-special-characters-with-ls, tramp-test32-utf8)
      (tramp-test32-utf8-with-stat, tramp-test32-utf8-with-perl)
      (tramp-test32-utf8-with-ls): Skip for "rsync".
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
      Check also for CIFS capabilities.
      574904bb
  29. 30 May, 2016 1 commit
    • Michael Albinus's avatar
      Fix Bug#23631 for Tramp · 1535aaf2
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-file-name-all-completions)
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-name-all-completions)
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
      Fix caching problems.
      
      * lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions): Simplify.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
      Move duplicate deletion ...
      (tramp-smb-handle-file-name-all-completions): ... here.
      
      * lisp/net/tramp.el (tramp-handle-file-name-completion):
      Handle `completion-ignored-extensions'.  (Bug#23631)
      
      * test/lisp/net/tramp-tests.el (tramp-test24-file-name-completion):
      Test also `completion-regexp-list' and `completion-ignored-extensions'.
      1535aaf2
  30. 28 May, 2016 1 commit
    • Michael Albinus's avatar
      Sync with Tramp repository. · 062757dc
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-start-file-process):
      * lisp/net/tramp-sh.el (tramp-sh-handle-start-file-process)
      * lisp/net/tramp-smb.el (tramp-smb-handle-start-file-process):
      Create BUFFER if it doesn't exist.  Reported by Nikolay
      Kudryavtsev <nikolay.kudryavtsev@gmail.com>.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-attributes)
      (tramp-gvfs-file-attributes-with-gvfs-ls-regexp)
      (tramp-gvfs-file-attributes-with-gvfs-info-regexp): New defconst.
      (tramp-gvfs-get-directory-attributes)
      (tramp-gvfs-get-root-attributes)
      (tramp-gvfs-get-file-attributes): New defun.
      (tramp-gvfs-handle-file-attributes)
      (tramp-gvfs-handle-file-name-all-completions): Use them.
      (tramp-gvfs-handle-file-directory-p): Use `file-truename'.
      (tramp-gvfs-maybe-open-connection): Set :noquery flag for process.
      (tramp-gvfs-send-command): Add locale settings to `process-environment'.
      (top): Suppress D-Bus error messages during zeroconf initialization.
      
      * lisp/net/tramp.el (tramp-unknown-id-string)
      (tramp-unknown-id-integer): New defconst.
      (tramp-check-cached-permissions)
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes)
      * lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls)
      (tramp-convert-file-attributes, tramp-get-remote-uid)
      (tramp-get-remote-gid): Use them.
      
      * lisp/net/tramp-sh.el (tramp-display-escape-sequence-regexp):
      Rename from `tramp-color-escape-sequence-regexp'.
      (tramp-sh-handle-insert-directory)
      (tramp-convert-file-attributes): Adapt callees.
      (tramp-device-escape-sequence-regexp): New defconst.
      (tramp-wait-for-output): Use it.  Reported by Matthías Páll
      Gissurarson <icetritlo@gmail.com>.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-file-name-all-completions):
      Simplify.
      
      * test/lisp/net/tramp-tests.el (tramp-test26-process-file)
      (tramp-test28-shell-command):
      Use `tramp-display-escape-sequence-regexp'.
      062757dc
  31. 28 Jan, 2016 1 commit
    • Michael Albinus's avatar
      Fix Bug#22452 · deae0056
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      Mark it as connected.
      
      * lisp/net/tramp.el (tramp-handle-file-remote-p): Check also, if
      connection property "connected" is set.  (Bug#22452)
      deae0056
  32. 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
  33. 01 Jan, 2016 1 commit
  34. 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
  35. 28 Oct, 2015 3 commits
  36. 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
  37. 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