1. 02 Dec, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-local-host-regexp): Add "localhost6". · 66feec8b
      Michael Albinus authored
      (tramp-file-name-port): Check also for `tramp-default-port'.
      (tramp-get-connection-name): New defun.
      (tramp-get-connection-process): Use it.
      (tramp-debug-message): Extend function exclude list.
      (tramp-drop-volume-letter): Fix doc string.
      
      * net/tramp-cmds.el: Remove solved todo item.
      
      * net/tramp-efs.el:
      * net/tramp-ftp.el:
      * net/tramp-gvfs.el:
      * net/tramp-gw.el:
      * net/tramp-imap.el:
      * net/tramp-smb.el: Fix regexps added to `tramp-default-method-alist'
      and `tramp-default-user-alist', respectively.
      
      * net/tramp-gw.el (tramp-gw-open-connection): Use
      `tramp-get-connection-name' and `tramp-get-connection-buffer'.
      
      * net/tramp-imap.el (tramp-imap-make-iht): Use just
      `tramp-file-name-port'.
      
      * net/tramp-sh.el (tramp-methods): Add recursive options to "pscp"
      and "psftp".  Exchange "%k" marker with options.
      (tramp-do-copy-or-rename-file, tramp-sh-handle-file-local-copy):
      Compute size of link target.
      (tramp-do-copy-or-rename-file-out-of-band). Move setting of
      `tramp-current-*' up due to gateway methods.  Optimze computing of
      copy arguments.  Use `tramp-get-connection-name' and
      `tramp-get-connection-buffer'.  Improve debug messages.
      (tramp-compute-multi-hops): Remove port determination.
      (tramp-maybe-open-connection): Use `tramp-get-connection-name'.
      
      * net/trampver.el: Update release number.
      66feec8b
  2. 05 Oct, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-directory-files-and-attributes) · bd8fadca
      Michael Albinus authored
      (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p):
      New defuns, taken from tramp-smb.el.
      (tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag): Removed.
      
      * net/tramp-compat.el (top): Do not check for byte-compiler
      objects.
      (tramp-compat-coding-system-change-eol-conversion)
      (tramp-compat-set-process-query-on-exit-flag): New defuns, taken
      from tramp.el.
      
      * net/tramp-gvfs.el:
      * net/tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag'
      by `tramp-compat-set-process-query-on-exit-flag'.
      
      * net/tramp-imap.el (tramp-imap-file-name-handler-alist): Use
      `tramp-handle-directory-files-and-attributes',
      `tramp-handle-file-exists-p' and
      `tramp-handle-file-newer-than-file-p'.
      (tramp-imap-handle-file-exists-p)
      (tramp-imap-handle-file-executable-p)
      (tramp-imap-handle-file-readable-p)
      (tramp-imap-handle-directory-files-and-attributes)
      (tramp-imap-handle-file-newer-than-file-p): Removed.
      
      * net/tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag'
      by `tramp-compat-set-process-query-on-exit-flag' and
      `tramp-coding-system-change-eol-conversion' by
      `tramp-compat-coding-system-change-eol-conversion'.
      
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use
      `tramp-handle-directory-files-and-attributes',
      `tramp-handle-file-exists-p' and
      `tramp-handle-file-newer-than-file-p'.
      (tramp-smb-handle-directory-files-and-attributes)
      (tramp-smb-handle-file-exists-p)
      (tramp-smb-handle-file-newer-than-file-p): Removed.
      (tramp-smb-maybe-open-connection): Replace
      `tramp-set-process-query-on-exit-flag' by
      `tramp-compat-set-process-query-on-exit-flag'.
      bd8fadca
  3. 08 Sep, 2010 1 commit
    • Michael Albinus's avatar
      Migrate to Tramp 2.2. Rearrange load dependencies. · 0f34aa77
      Michael Albinus authored
      (Bug#1529, Bug#5448, Bug#5705)
      
      * Makefile.in (TRAMP_DIR, TRAMP_SRC): New variables.
      ($(TRAMP_DIR)/tramp-loaddefs.el): New target.
      (LOADDEFS): Add $(lisp)/net/tramp-loaddefs.el.
      
      * net/tramp.el (top): Remove all other tramp-* loads except
      tramp-compat.el.  Remove all changes to tramp-unload-hook for
      other tramp-* packages.  Rearrange defun order.  Change calls of
      `tramp-compat-call-process', `tramp-compat-decimal-to-octal',
      `tramp-compat-octal-to-decimal' to new function names.
      (tramp-terminal-type, tramp-initial-end-of-output)
      (tramp-methods, tramp-foreign-file-name-handler-alist)
      (tramp-tramp-file-p, tramp-completion-mode-p)
      (tramp-send-command-and-check, tramp-get-remote-path)
      (tramp-get-remote-tmpdir, tramp-get-remote-ln)
      (tramp-shell-quote-argument): Set tramp-autoload cookie.
      (with-file-property, with-connection-property): Move to
      tramp-cache.el.
      (tramp-local-call-process, tramp-decimal-to-octal)
      (tramp-octal-to-decimal): Move to tramp-compat.el.
      (tramp-handle-shell-command): Do not require 'shell.
      (tramp-compute-multi-hops): No special handling for tramp-gw-*
      symbols.
      (tramp-unload-tramp): Do not call `tramp-unload-file-name-handlers'.
      
      * net/tramp-cache.el (top): Require 'tramp.  Add to
      `tramp-unload-hook'.
      (tramp-cache-data, tramp-get-file-property)
      (tramp-set-file-property, tramp-flush-file-property)
      (tramp-flush-directory-property, tramp-get-connection-property)
      (tramp-set-connection-property, tramp-flush-connection-property)
      (tramp-cache-print, tramp-list-connections): Set tramp-autoload
      cookie.
      (with-file-property, with-connection-property): New defuns, moved
      from tramp.el.
      (tramp-flush-file-function): Use `with-parsed-tramp-file-name'
      macro.
      
      * net/tramp-cmds.el (top): Add to `tramp-unload-hook'.
      (tramp-version): Set tramp-autoload cookie.
      
      * net/tramp-compat.el (top): Require 'tramp-loaddefs.  Remove all
      changes to tramp-unload-hook for other tramp-* packages.  Add to
      `tramp-unload-hook'.
      (tramp-compat-decimal-to-octal, tramp-compat-octal-to-decimal)
      (tramp-compat-call-process): New defuns, moved from tramp.el.
      
      * net/tramp-fish.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change call of
      `tramp-compat-decimal-to-octal' to new function name.
      (tramp-fish-method): Make it a defconst.
      (tramp-fish-file-name-p): Make it a defsubst.
      (tramp-fish-method, tramp-fish-file-name-handler)
      (tramp-fish-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-ftp.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-ftp-method): Make it a defconst.
      (tramp-ftp-file-name-p): Make it a defsubst.
      (tramp-ftp-method, tramp-ftp-file-name-handler)
      (tramp-ftp-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-gvfs.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-gvfs-file-name-p): Make it a defsubst.
      (tramp-gvfs-methods, tramp-gvfs-file-name-handler)
      (tramp-gvfs-file-name-p): Set tramp-autoload cookie.
      (tramp-gvfs-handle-file-directory-p): New defun.
      (tramp-gvfs-file-name-handler-alist): Use it.
      
      * net/tramp-gw.el (top) Add objects to `tramp-methods' and
      `tramp-foreign-file-name-handler-alist'.  Add to
      `tramp-unload-hook'.
      (tramp-gw-tunnel-method, tramp-gw-default-tunnel-port)
      (tramp-gw-socks-method, tramp-gw-default-socks-port): Make it a
      defconst.
      (tramp-gw-tunnel-method, tramp-gw-socks-method)
      (tramp-gw-open-connection): Set tramp-autoload cookie.
      
      * net/tramp-imap.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.
      (tramp-imap-file-name-p): Make it a defsubst.
      (tramp-imap-method, tramp-imaps-method)
      (tramp-imap-file-name-handler)
      (tramp-imap-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-smb.el (top) Require just 'tramp.  Add objects to
      `tramp-methods' and `tramp-foreign-file-name-handler-alist'.  Add
      to `tramp-unload-hook'.  Change checks, whether package can be
      loaded.  Change call of `tramp-compat-decimal-to-octal' to new
      function name.
      (tramp-smb-tunnel-method): Make it a defconst.
      (tramp-smb-file-name-p): Make it a defsubst.
      (tramp-smb-method, tramp-smb-file-name-handler)
      (tramp-smb-file-name-p): Set tramp-autoload cookie.
      
      * net/tramp-uu.el (top) Add to `tramp-unload-hook'.
      (tramp-uuencode-region): Set tramp-autoload cookie.
      
      * net/trampver.el (top) Add to `tramp-unload-hook'.
      (tramp-version, tramp-bug-report-address): Set tramp-autoload
      cookie.  Update release number.
      0f34aa77
  4. 29 Aug, 2010 1 commit
  5. 26 Aug, 2010 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.1.19. · 20b8ac83
      Michael Albinus authored
      * net/tramp-cmds.el (tramp-cleanup-all-connections)
      (tramp-reporter-dump-variable, tramp-load-report-modules)
      (tramp-append-tramp-buffers): Use `tramp-compat-funcall'.
      (tramp-bug): Recommend setting of `tramp-verbose' to 9.
      
      * net/tramp-compat.el (top): Do not autoload
      `tramp-handle-file-remote-p'.  Load tramp-util.el and tramp-vc.el
      only when `start-file-process' is not bound.
      (byte-compile-not-obsolete-vars): Define if not bound.
      (tramp-compat-funcall): New defmacro.
      (tramp-compat-line-beginning-position)
      (tramp-compat-line-end-position)
      (tramp-compat-temporary-file-directory)
      (tramp-compat-make-temp-file, tramp-compat-file-attributes)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-number-sequence, tramp-compat-process-running-p):
      Use it.
      (tramp-advice-file-expand-wildcards): Do not use
      `tramp-handle-file-remote-p'.
      (tramp-compat-make-temp-file): Simplify fallback implementation.
      (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-compat-copy-tree): Remove function.
      (tramp-compat-delete-file): New defun.
      (tramp-compat-delete-directory): Provide implementation for older
      Emacsen.
      (tramp-compat-file-attributes): Handle only
      `wrong-number-of-arguments' error.
      
      * net/tramp-fish.el (tramp-fish-handle-copy-file): Add
      PRESERVE_SELINUX_CONTEXT.
      (tramp-fish-handle-delete-file): Add TRASH arg.
      (tramp-fish-handle-directory-files-and-attributes):
      Do not use `tramp-fish-handle-file-attributes.
      (tramp-fish-handle-file-local-copy)
      (tramp-fish-handle-insert-file-contents)
      (tramp-fish-maybe-open-connection): Use `with-progress-reporter'.
      
      * net/tramp-gvfs.el (top): Require url-util.
      (tramp-gvfs-mount-point): Remove.
      (tramp-gvfs-file-name-handler-alist): Add `file-selinux-context'
      and `set-file-selinux-context'.
      (tramp-gvfs-stringify-dbus-message, tramp-gvfs-send-command)
      (tramp-gvfs-handle-file-selinux-context)
      (tramp-gvfs-handle-set-file-selinux-context): New defuns.
      (with-tramp-dbus-call-method): Format trace message.
      (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
      (tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file):
      Implement backup call, when operation on local files fails.  Use
      progress reporter.  Flush properties of changed files.
      (tramp-gvfs-handle-delete-file): Add TRASH arg.  Use
      `tramp-compat-delete-file'.
      (tramp-gvfs-handle-expand-file-name): Expand "~/".
      (tramp-gvfs-handle-make-directory): Make more traces.
      (tramp-gvfs-handle-write-region): Protect deleting tmpfile.
      (tramp-gvfs-url-file-name): Hexify file name in url.
      (tramp-gvfs-fuse-file-name): Take also prefix (like dav shares)
      into account for the resulting file name.
      (tramp-gvfs-handler-askquestion): Preserve current message, in
      order to let progress reporter continue afterwards.  (Bug#6257)
      Return dummy mountpoint, when the answer is "no".  See
      `tramp-gvfs-maybe-open-connection'.
      (tramp-gvfs-handler-mounted-unmounted)
      (tramp-gvfs-connection-mounted-p): Test also for new mountspec
      attribute "default_location".  Set "prefix" property.  Handle
      default-location.
      (tramp-gvfs-mount-spec): Return both prefix and mountspec.
      (tramp-gvfs-maybe-open-connection): Test, whether mountpoint
      exists.  Raise an error, if not (due to a corresponding answer
      "no" in interactive questions, for example). Use
      `tramp-compat-funcall'.
      
      * net/tramp-imap.el (top): Autoload `epg-make-context'.
      (tramp-imap-handle-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-imap-do-copy-or-rename-file)
      (tramp-imap-handle-insert-file-contents)
      (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
      (tramp-imap-handle-delete-file): Add TRASH arg.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-file): Add
      PRESERVE-SELINUX-CONTEXT.
      (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
      (tramp-smb-handle-write-region, tramp-smb-maybe-open-connection):
      Use `with-progress-reporter'.
      (tramp-smb-handle-delete-file): Add TRASH arg.
      
      * net/tramp.el (tramp-methods): Move hostname to the end in all
      ssh `tramp-login-args'.  Add `tramp-async-args' attribute where
      appropriate.
      (tramp-verbose): Describe verbose level 9.
      (tramp-completion-function-alist)
      (tramp-file-name-regexp, tramp-chunksize)
      (tramp-local-coding-commands, tramp-remote-coding-commands)
      (with-connection-property, tramp-completion-mode-p)
      (tramp-action-process-alive, tramp-action-out-of-band)
      (tramp-check-for-regexp, tramp-file-name-p, tramp-equal-remote)
      (tramp-exists-file-name-handler): Fix docstring.
      (tramp-remote-process-environment): Use `format' instead of
      `concat'.  Protect version string by apostroph.
      (tramp-shell-prompt-pattern): Do not use a shy group in case of
      XEmacs.
      (tramp-file-name-regexp-unified)
      (tramp-completion-file-name-regexp-unified): On W32 systems, do
      not regard the volume letter as remote filename.  (Bug#5447)
      (tramp-perl-file-attributes)
      (tramp-perl-directory-files-and-attributes): Don't pass "$3".
      (tramp-vc-registered-read-file-names): Read input as
      here-document, otherwise the command could exceed maximum length
      of command line.
      (tramp-file-name-handler-alist): Add `file-selinux-context' and
      `set-file-selinux-context'.
      (tramp-debug-message): Add `tramp-compat-funcall' to ignored
      backtrace functions.
      (tramp-error-with-buffer): Don't show the connection buffer when
      we are in completion mode.
      (tramp-progress-reporter-update, tramp-remote-selinux-p)
      (tramp-handle-file-selinux-context)
      (tramp-handle-set-file-selinux-context, tramp-process-sentinel)
      (tramp-connectable-p, tramp-open-shell, tramp-get-remote-trash):
      New defuns.
      (with-progress-reporter): New defmacro.
      (tramp-debug-outline-regexp): New defconst.
      (top, tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
      (tramp-handle-dired-compress-file, tramp-handle-shell-command)
      (tramp-completion-mode-p, tramp-check-for-regexp)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
      (tramp-time-diff, tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag, tramp-unload-tramp):
      Use `tramp-compat-funcall'.
      (tramp-handle-make-symbolic-link): Flush file properties.
      (tramp-handle-load, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-handle-vc-registered, tramp-maybe-send-script)
      (tramp-find-shell): Use `with-progress-reporter'.
      (tramp-do-file-attributes-with-stat): Add space in format string,
      in order to work around a bug in pdksh.  Reported by Gilles Pion
      <gpion@lfdj.com>.
      (tramp-handle-verify-visited-file-modtime): Do not send a command
      when the connection is not established.
      (tramp-handle-set-file-times): Simplify the check for utc.
      (tramp-handle-directory-files-and-attributes)
      (tramp-get-remote-path): Use `copy-tree'.
      (tramp-completion-handle-file-name-all-completions): Ensure, that
      non remote files are still checked.  Oops.
      (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-SELINUX-CONTEXT.
      (tramp-do-copy-or-rename-file): Add progress reporter.
      (tramp-do-copy-or-rename-file-directly): Do not use
      `tramp-handle-file-remote-p'.
      (tramp-do-copy-or-rename-file-out-of-band):
      Use `tramp-compat-delete-directory'.
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-compute-multi-hops, tramp-maybe-open-connection):
      Use `format-spec-make'.
      (tramp-handle-delete-file): Add TRASH arg.
      (tramp-handle-dired-uncache): Flush directory cache, not only file
      cache.
      (tramp-handle-expand-file-name)
      (tramp-completion-handle-file-name-all-completions)
      (tramp-completion-handle-file-name-completion): Use
      `tramp-connectable-p'.
      (tramp-handle-start-file-process): Set connection property "vec".
      Use it, in order to invalidate file caches.  Check only for
      `remote-tty' process property.
      Implement tty setting.  (Bug#4604, Bug#6360)
      (tramp-file-name-for-operation): Add `call-process-region' and
      `set-file-selinux-context'.
      (tramp-find-foreign-file-name-handler)
      (tramp-advice-make-auto-save-file-name)
      (tramp-set-auto-save-file-modes): Remove superfluous check for
      `stringp'.  This is done inside `tramp-tramp-file-p'.
      (tramp-file-name-handler): Trace 'quit.  Catch the error for some
      operations when we are in completion mode.  This gives the user
      the chance to correct the file name in the minibuffer.
      (tramp-completion-mode-p): Use `non-essential'.
      (tramp-handle-file-name-all-completions): Backward/ XEmacs
      compatibility: Use `completion-ignore-case' if
      `read-file-name-completion-ignore-case' does not exist.
      (tramp-get-debug-buffer): Use `tramp-debug-outline-regexp'.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      `tramp-open-shell'.
      (tramp-action-password): Hide password prompt before next run.
      (tramp-process-actions): Widen connection buffer for the trace.
      (tramp-open-connection-setup-interactive-shell): Set `remote-tty'
      process property.  Trace stty settings if `tramp-verbose' >= 9.
      Apply workaround for IRIX64 bug.  Move argument of last
      `tramp-send-command' where it belongs to.
      (tramp-maybe-open-connection): Use `async-args' and `gw-args' in
      front of `login-args'.
      (tramp-get-ls-command, tramp-get-ls-command-with-dired): Run tests
      on "/dev/null" instead of "/".
      (tramp-get-ls-command-with-dired): Make test for "--dired"
      stronger.
      (tramp-set-auto-save-file-modes): Adapt version check.
      (tramp-set-process-query-on-exit-flag): Fix wrong parentheses.
      (tramp-handle-process-file): Call the program in a subshell, in
      order to preserve working directory.
      (tramp-handle-shell-command): Don't use hard-wired "/bin/sh" but
      `tramp-remote-sh' from `tramp-methods'.
      (tramp-get-ls-command): Make test for "--color=never" stronger.
      (tramp-check-for-regexp): Use (forward-line 1).
      
      * net/trampver.el: Update release number.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass
      empty argument to gvfs-copy.
      
      * net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
      handle new TRASH arg of `delete-file'.
      
      * net/tramp.el (tramp-handle-insert-directory): Don't use
      `forward-word', its default syntax could be changed.
      
      Implement compression for inline methods.
      
      * net/tramp.el (tramp-inline-compress-start-size): New defcustom.
      (tramp-copy-size-limit): Allow also nil.
      (tramp-inline-compress-commands): New defconst.
      (tramp-find-inline-compress, tramp-get-inline-compress)
      (tramp-get-inline-coding): New defuns.
      (tramp-get-remote-coding, tramp-get-local-coding): Remove,
      replaced by `tramp-get-inline-coding'.
      (tramp-handle-file-local-copy, tramp-handle-write-region)
      (tramp-method-out-of-band-p): Use `tramp-get-inline-coding'.
      
      Detect ssh 'ControlMaster' argument automatically in some cases.
      
      * net/tramp.el (tramp-detect-ssh-controlmaster): New defun.
      (tramp-default-method): Use it.
      
      * net/tramp.el (tramp-file-name-for-operation):
      Add file-selinux-context.
      20b8ac83
  6. 28 May, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-delete-file): Use · eba082a2
      Michael Albinus authored
      `symbol-value' for backward compatibility.
      
      * net/tramp.el (tramp-handle-make-symbolic-link)
      (tramp-handle-load)
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-handle-process-file, tramp-handle-call-process-region)
      (tramp-handle-shell-command, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-delete-temp-file-function): Use `delete-file' instead
      of `tramp-compat-delete-file'.
      
      * net/tramp-fish.el (tramp-fish-handle-delete-directory)
      (tramp-fish-handle-make-symbolic-link)
      (tramp-fish-handle-process-file): Use `delete-file' instead
      of `tramp-compat-delete-file'.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Use
      `delete-file' instead of `tramp-compat-delete-file'.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
      (tramp-gvfs-handle-write-region): Use `delete-file' instead of
      `tramp-compat-delete-file'.
      
      * net/tramp-imap.el (tramp-imap-do-copy-or-rename-file): Use
      `delete-file' instead of `tramp-compat-delete-file'.
      
      * net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
      (tramp-smb-handle-write-region): Use `delete-file' instead of
      `tramp-compat-delete-file'.
      (tramp-smb-handle-delete-directory): Use 'trash as arg.
      eba082a2
  7. 27 May, 2010 1 commit
    • Chong Yidong's avatar
      Change delete-by-moving-to-trash so Lisp calls explicitly request trashing. · f1a5d776
      Chong Yidong authored
      * src/fileio.c (Fdelete_file): Change meaning of optional arg to mean
      whether to trash.
      (internal_delete_file, Frename_file): Callers changed.
      (delete_by_moving_to_trash): Doc fix.
      (Fdelete_directory_internal): Don't move to trash.
      
      * src/callproc.c (delete_temp_file):
      * src/buffer.c (Fkill_buffer): Callers changed.
      
      * src/lisp.h: Update prototype.
      
      * lisp/diff.el (diff-sentinel):
      * lisp/epg.el (epg--make-temp-file, epg-decrypt-string)
      (epg-verify-string, epg-sign-string, epg-encrypt-string):
      * lisp/jka-compr.el (jka-compr-partial-uncompress)
      (jka-compr-call-process, jka-compr-write-region):
      * lisp/server.el (server-sentinel): Remove optional arg from
      delete-file, reverting 2010-05-03 change.
      
      * lisp/dired.el (dired-delete-file): New arg TRASH.
      (dired-internal-do-deletions): New arg TRASH.  Use progress
      reporter.
      (dired-do-flagged-delete, dired-do-delete): Use trash.
      
      * lisp/files.el (delete-directory): New arg TRASH.
      
      * lisp/speedbar.el (speedbar-item-delete): Allow trashing.
      
      * lisp/net/ange-ftp.el (ange-ftp-del-tmp-name, ange-ftp-delete-file)
      (ange-ftp-rename-remote-to-remote)
      (ange-ftp-rename-local-to-remote)
      (ange-ftp-rename-remote-to-local, ange-ftp-load)
      (ange-ftp-compress, ange-ftp-uncompress): Remove optional arg from
      `delete-file'.
      (ange-ftp-delete-directory): Add optional arg to `delete-file', to
      allow trashing.
      
      * lisp/net/tramp-compat.el (tramp-compat-delete-file): Rewrite to
      handle new TRASH arg of `delete-file'.
      
      * lisp/net/tramp-fish.el (tramp-fish-handle-delete-directory)
      (tramp-fish-handle-delete-file)
      (tramp-fish-handle-make-symbolic-link)
      (tramp-fish-handle-process-file): Use null TRASH arg in
      `tramp-compat-delete-file' call.
      
      * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Use null TRASH
      arg in `tramp-compat-delete-file' call.
      
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg.
      (tramp-gvfs-handle-write-region): Use null TRASH arg in
      `tramp-compat-delete-file' call.
      
      * lisp/net/tramp-imap.el (tramp-imap-handle-delete-file): Rename arg.
      (tramp-imap-do-copy-or-rename-file): Use null TRASH arg in
      `tramp-compat-delete-file' call.
      
      * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
      (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file)
      (tramp-smb-handle-write-region): Use null TRASH arg in
      tramp-compat-delete-file call.
      (tramp-smb-handle-delete-directory): Use tramp-compat-delete-file.
      (tramp-smb-handle-delete-file): Rename arg.
      
      * lisp/net/tramp.el (tramp-handle-delete-file): Change FORCE arg to TRASH.
      (tramp-handle-make-symbolic-link, tramp-handle-load)
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-handle-process-file, tramp-handle-call-process-region)
      (tramp-handle-shell-command, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-delete-temp-file-function): Use null TRASH arg in
      tramp-compat-delete-file call.
      f1a5d776
  8. 21 May, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-do-copy-or-rename-file) · 655bded0
      Michael Albinus authored
      (tramp-handle-file-local-copy, tramp-maybe-open-connection): Tune
      `with-progress-reporter' messages.
      (tramp-handle-vc-registered):
      * net/tramp-fish.el (tramp-fish-handle-file-local-copy)
      (tramp-fish-handle-insert-file-contents)
      (tramp-fish-maybe-open-connection):
      * net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * net/tramp-imap.el (tramp-imap-do-copy-or-rename-file)
      (tramp-imap-handle-insert-file-contents)
      (tramp-imap-handle-file-local-copy): Use `with-progress-reporter'.
      655bded0
  9. 09 May, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el (byte-compile-not-obsolete-vars): Define if · 0d5852cf
      Michael Albinus authored
      not bound.
      (tramp-compat-copy-file): Add PRESERVE-SELINUX-CONTEXT.
      (tramp-compat-funcall): New defmacro.
      (tramp-compat-line-beginning-position)
      (tramp-compat-line-end-position)
      (tramp-compat-temporary-file-directory)
      (tramp-compat-make-temp-file, tramp-compat-file-attributes)
      (tramp-compat-copy-file, tramp-compat-copy-directory)
      (tramp-compat-delete-file, tramp-compat-delete-directory)
      (tramp-compat-number-sequence, tramp-compat-process-running-p)
      * net/tramp.el (top, with-progress-reporter)
      (tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay, tramp-handle-set-file-times)
      (tramp-handle-dired-compress-file, tramp-handle-shell-command)
      (tramp-completion-mode-p, tramp-check-for-regexp)
      (tramp-open-connection-setup-interactive-shell)
      (tramp-compute-multi-hops, tramp-read-passwd, tramp-clear-passwd)
      (tramp-time-diff, tramp-coding-system-change-eol-conversion)
      (tramp-set-process-query-on-exit-flag, tramp-unload-tramp)
      * net/tramp-cmds.el (tramp-cleanup-all-connections)
      (tramp-reporter-dump-variable, tramp-load-report-modules)
      (tramp-append-tramp-buffers)
      * net/tramp-gvfs.el (tramp-gvfs-handle-file-selinux-context): Use it.
      
      * net/tramp-imap.el (top): Autoload `epg-make-context'.
      0d5852cf
  10. 05 May, 2010 1 commit
    • Michael Albinus's avatar
      Add FORCE argument to `delete-file'. · 66bdc868
      Michael Albinus authored
      * net/ange-ftp.el (ange-ftp-del-tmp-name): Make it a defun,
      forcing to delete the temporary file.
      (ange-ftp-delete-file): Add FORCE arg.
      (ange-ftp-rename-remote-to-remote)
      (ange-ftp-rename-local-to-remote, ange-ftp-rename-remote-to-local)
      (ange-ftp-load, ange-ftp-compress, ange-ftp-uncompress): Force
      file deletion.
      
      * net/tramp-compat.el (tramp-compat-delete-file): New defun.
      
      * net/tramp.el (tramp-handle-delete-file): Add FORCE arg.
      (tramp-handle-make-symbolic-link, tramp-handle-load)
      (tramp-do-copy-or-rename-file-via-buffer)
      (tramp-do-copy-or-rename-file-directly)
      (tramp-do-copy-or-rename-file-out-of-band)
      (tramp-handle-process-file, tramp-handle-call-process-region)
      (tramp-handle-shell-command, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-delete-temp-file-function): Use `tramp-compat-delete-file'.
      
      * net/tramp-fish.el (tramp-fish-handle-delete-file): Add FORCE arg.
      (tramp-fish-handle-make-symbolic-link)
      (tramp-fish-handle-process-file): Use `tramp-compat-delete-file'.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Use
      `tramp-compat-delete-file'.
      
      * net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Add FORCE arg.
      (tramp-gvfs-handle-write-region): Use `tramp-compat-delete-file'.
      
      * net/tramp-imap.el (tramp-imap-handle-delete-file): Add FORCE arg.
      (tramp-imap-do-copy-or-rename-file): Use `tramp-compat-delete-file'.
      
      * net/tramp-smb.el (tramp-smb-handle-delete-file): Add FORCE arg.
      (tramp-smb-handle-copy-file, tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-rename-file, tramp-smb-handle-write-region): Use
      `tramp-compat-delete-file'.
      66bdc868
  11. 23 Apr, 2010 1 commit
    • Michael Albinus's avatar
      Implement SELINUX backends. · 632c5478
      Michael Albinus authored
      * net/tramp.el (tramp-file-name-handler-alist): Add
      `file-selinux-context' and `set-file-selinux-context'.
      (tramp-handle-file-selinux-context)
      (tramp-handle-set-file-selinux-context): New defuns.
      (tramp-handle-copy-file, tramp-do-copy-or-rename-file): Handle
      PRESERVE-SELINUX-CONTEXT.
      
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
      `file-selinux-context' and `set-file-selinux-context'.
      (tramp-gvfs-handle-file-selinux-context)
      (tramp-gvfs-handle-set-file-selinux-context): New defuns.
      (tramp-gvfs-handle-copy-file): Handle PRESERVE-SELINUX-CONTEXT.
      
      * net/ange-ftp.el (ange-ftp-copy-file):
      * net/tramp-fish.el (tramp-fish-handle-copy-file):
      * net/tramp-imap.el (tramp-imap-handle-copy-file):
      * net/tramp-smb.el (tramp-smb-handle-copy-file): Add
      PRESERVE-SELINUX-CONTEXT.
      632c5478
  12. 12 Mar, 2010 1 commit
    • Chong Yidong's avatar
      Reorganize Custom groups. · eba5b4dd
      Chong Yidong authored
      * cus-edit.el (processes): Remove from development group.
      (oop, hypermedia): Delete group.
      (net): New group.
      
      * url/url-vars.el (url):
      * net/browse-url.el (browse-url):
      * net/xesam.el (xesam):
      * net/tramp.el (tramp):
      * net/goto-addr.el (goto-address):
      * net/ange-ftp.el (ange-ftp): Put in net group.
      
      * view.el (view): Remove from editing group.
      
      * uniquify.el (uniquify): Put in files group.
      
      * net/browse-url.el (browse-url):
      * ps-print.el (postscript): Put in external group.
      
      * cus-edit.el (outlines):
      * textmodes/text-mode.el (text-mode-hook):
      * textmodes/table.el (table):
      * textmodes/picture.el (picture):
      * outline.el (outlines): Put in wp group.
      
      * nxml/nxml-mode.el (nxml): Remove from wp group.
      
      * net/tramp-imap.el (tramp-imap): Put in tramp group.
      
      * mail/metamail.el (metamail): Remove from hypermedia group.
      
      * cus-edit.el (abbrev):
      * whitespace.el (whitespace):
      * vcursor.el (vcursor):
      * reveal.el (reveal):
      * hl-line.el (hl-line): Put in convenience group.
      
      * epg-config.el (epg): Put in data group.
      
      * emulation/pc-select.el (pc-select): Put in emulations group.
      
      * calculator.el (calculator): Put in applications group.
      
      * org/org.el (org): Remove from hypermedia group.
      eba5b4dd
  13. 05 Feb, 2010 1 commit
  14. 04 Feb, 2010 1 commit
    • Michael Albinus's avatar
      * dired.el (dired-revert): If DIRED-DIRECTORY is a cons cell, call · d5b3979c
      Michael Albinus authored
      `dired-uncache' for every elemnt which is an absolute file name.
      
      * net/tramp.el (tramp-handle-dired-uncache): When DIR is not a
      directory, handle its directory component.
      (tramp-handle-file-remote-p): Let-bind `tramp-verbose' to 3; this
      function is called permanently and creates noise, otherwise.
      
      * net/tramp-imap.el (tramp-imap-handle-insert-directory):
      * net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Handle the case, FILENAME is not in `default-directory'.  (Bug#5478)
      d5b3979c
  15. 22 Jan, 2010 1 commit
  16. 13 Jan, 2010 1 commit
  17. 27 Oct, 2009 1 commit
    • Michael Albinus's avatar
      * net/tramp-imap.el (top): Add `X-Size' to `imap-hash-headers'. · 9be01a63
      Michael Albinus authored
      (tramp-imap-do-copy-or-rename-file): Don't use the inode, when
      calling `tramp-imap-put-file'.  Add file size to the call.
      (tramp-imap-get-file-entries): Compute also user name, file size,
      and date.
      (tramp-imap-handle-insert-directory): Insert uid and gid.
      (tramp-imap-handle-file-attributes): Transform uid and gid
      according to `id-format'.
      (tramp-imap-put-file): New optional parameter SIZE.  Encode file
      size in header X-Size.
      9be01a63
  18. 26 Oct, 2009 1 commit
  19. 02 Oct, 2009 1 commit
  20. 28 Sep, 2009 1 commit