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. 28 Oct, 2015 3 commits
  3. 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
  4. 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
  5. 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
  6. 21 May, 2015 1 commit
  7. 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
  8. 01 Jan, 2015 2 commits
  9. 29 Dec, 2014 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.2.11. · e792450d
      Michael Albinus authored
      * net/tramp-compat.el (top): Require cl-macs for Emacs 22.
      Make an alias for `default-toplevel-value' if it doesn't exist.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory):
      Use `tramp-compat-delete-directory'.
      
      * net/trampver.el: Update release number.
      e792450d
  10. 20 Nov, 2014 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility. · 6ec5ee88
      Michael Albinus authored
      * net/tramp.el (tramp-autoload-file-name-handler):
      Wrap `temporary-file-directory' by `symbol-value', it doesn't exist in XEmacs.
      (tramp-read-passwd): Don't use `with-timeout-suspend' and
      `with-timeout-unsuspend' if they don't exist, like in XEmacs.
      (tramp-time-less-p, tramp-time-subtract): Remove functions.
      (tramp-handle-file-newer-than-file-p, tramp-time-diff):
      * net/ttramp-adb.el (tramp-adb-ls-output-time-less-p):
      * net/ttramp-cache.el (tramp-get-file-property):
      * net/ttramp-smb.el (tramp-smb-handle-insert-directory):
      Use `time-less-p' and `time-subtract, respectively.
      6ec5ee88
  11. 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
  12. 22 Jun, 2014 1 commit
  13. 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
  14. 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
  15. 01 Jan, 2014 1 commit
  16. 11 Nov, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-sh.el (tramp-do-copy-or-rename-file-via-buffer) · 7ce8fcc3
      Michael Albinus authored
      (tramp-sh-handle-file-local-copy): Don't write a message when
      saving temporary files.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-directory): Fix bug when
      both directories are remote.
      (tramp-smb-handle-directory-files): Do not return double entries.
      Do not expand full file names.
      (tramp-smb-handle-insert-directory): Accept nil SWITCHES.
      (tramp-smb-handle-write-region): Implement APPEND.
      (tramp-smb-get-stat-capability): Fix a stupid bug.
      7ce8fcc3
  17. 28 Oct, 2013 1 commit
  18. 18 Oct, 2013 1 commit
  19. 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
  20. 16 Oct, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-acl-program): New customer option. · f19da8ad
      Michael Albinus authored
      (tramp-smb-errors): Add error messages.
      (tramp-smb-actions-with-acl): New defconst.
      (tramp-smb-file-name-handler-alist) [set-file-acl]: Add handler.
      (tramp-smb-action-with-acl, tramp-smb-handle-set-file-acl): New defuns.
      (tramp-smb-handle-file-acl): Rewrite, using "smbcacls".
      (tramp-smb-handle-file-attributes): Simplify test for "stat" capability.
      (tramp-smb-get-stat-capability): Fix tests.
      f19da8ad
  21. 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
  22. 10 Sep, 2013 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-cleanup): Remove. Functionality added to · 6480194c
      Michael Albinus authored
      `tramp-cleanup-connection'.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Add optional
      parameters KEEP-DEBUG and KEEP-PASSWORD.
      
      * net/tramp.el (tramp-file-name-handler):
      * net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell)
      (tramp-maybe-open-connection):
      * net/tramp-smb.el (tramp-smb-maybe-open-connection): Use
      `tramp-cleanup-connection'.
      
      * net/tramp-sh.el (tramp-maybe-open-connection): Catch
      'uname-changed inside the progress reporter.
      6480194c
  23. 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
  24. 03 Sep, 2013 1 commit
  25. 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
  26. 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
  27. 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
  28. 24 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify-supported-p): · d5d3c58a
      Michael Albinus authored
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      Remove functions.
      
      * autorevert.el (auto-revert-use-notify):
      (auto-revert-notify-add-watch):
      * net/tramp.el (tramp-file-name-for-operation):
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Remove `file-notify-supported-p' entry.
      d5d3c58a
  29. 23 Jul, 2013 1 commit
  30. 18 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify--library): Renamed from · e06ec67f
      Michael Albinus authored
      `file-notify-support'.  Do not autoload.  Adapt all uses.
      (file-notify-supported-p): New defun.
      
      * autorevert.el (auto-revert-use-notify): Use
      `file-notify-supported-p' instead of `file-notify-support'.  Adapt
      docstring.
      (auto-revert-notify-add-watch): Use `file-notify-supported-p'.
      
      * net/tramp.el (tramp-file-name-for-operation):
      Add `file-notify-supported-p'.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      New defun.
      (tramp-sh-file-name-handler-alist): Add it as handler for
      `file-notify-supported-p '.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Add `ignore' as handler for `file-notify-*' functions.
      e06ec67f
  31. 21 Jan, 2013 1 commit
    • Michael Albinus's avatar
      Improve XEmacs compatibility. · a36e2d26
      Michael Albinus authored
      * net/tramp.el (tramp-replace-environment-variables): Make it a defun.
      
      * net/tramp-adb.el (top): Require `time-date'.
      (tramp-adb-ls-output-time-less-p): Use `tramp-time-less-p'.
      (tramp-adb-handle-copy-file, tramp-adb-handle-rename-file): Use
      `tramp-file-name-handler'.
      (tramp-adb-maybe-open-connection): Use
      `tramp-compat-set-process-query-on-exit-flag'.
      
      * net/tramp-sh.el (tramp-sh-handle-file-acl): Use
      `tramp-compat-funcall'.
      
      * net/tramp-smb.el (tramp-smb-handle-file-acl): Use `looking-at' and
      `tramp-compat-funcall'.
      a36e2d26
  32. 02 Jan, 2013 1 commit
  33. 01 Jan, 2013 1 commit
  34. 30 Dec, 2012 1 commit
  35. 17 Dec, 2012 1 commit
    • Michael Albinus's avatar
      Add support for preserving ACL entries of files. · 53b6a8b1
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-for-operation): Add `file-acl' and
      `set-file-acl' handlers.
      
      * net/tramp-adb.el (tramp-adb-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-compat.el (tramp-compat-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-gvfs-handle-copy-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      (tramp-gvfs-handle-file-acl, tramp-gvfs-handle-set-file-acl): New
      defuns.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-remote-acl-p, tramp-sh-handle-file-acl)
      (tramp-sh-handle-set-file-acl): New defuns.
      (tramp-sh-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-EXTENDED-ATTRIBUTES.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
      `file-acl' and `set-file-acl' handlers.
      (tramp-smb-handle-copy-file): Handle PRESERVE-EXTENDED-ATTRIBUTES.
      53b6a8b1
  36. 14 Dec, 2012 1 commit