1. 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
  2. 13 May, 2010 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (with-progress-reporter): Create reporter object · 3b30ccda
      Michael Albinus authored
      only when the message would be displayed.  Handled nested calls.
      (tramp-handle-load, tramp-handle-file-local-copy)
      (tramp-handle-insert-file-contents, tramp-handle-write-region)
      (tramp-maybe-send-script, tramp-find-shell): Use
      `with-progress-reporter'.
      (tramp-handle-dired-compress-file, tramp-maybe-open-connection):
      Fix message text.
      
      * 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, tramp-smb-maybe-open-connection):
      Use `with-progress-reporter'.
      3b30ccda
  3. 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
  4. 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
  5. 05 Feb, 2010 1 commit
  6. 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
  7. 23 Jan, 2010 1 commit
  8. 13 Jan, 2010 1 commit
  9. 07 Nov, 2009 1 commit
  10. 21 Oct, 2009 1 commit
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-get-stat-capability): New defun. · fc754ea1
      Michael Albinus authored
      (tramp-smb-handle-file-attributes): Use it.
      (tramp-smb-do-file-attributes-with-stat): Don't raise an error.
      (tramp-smb-handle-insert-directory): Use `mapc' rather than
      `mapcar'.  Use `tramp-smb-get-stat-capability'.  Add
      `dired-filename' text properties.
      (tramp-smb-get-cifs-capabilities): Apply `save-match-data'.
      (tramp-smb-maybe-open-connection): Simplify check for smbclient
      version.
      fc754ea1
  11. 16 Oct, 2009 1 commit
  12. 15 Oct, 2009 1 commit
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-errors): Add error messages. · 4260b402
      Michael Albinus authored
      (tramp-smb-get-share, tramp-smb-get-localname): Use only VEC as
      parameter.
      (tramp-smb-handle-add-name-to-file)
      (tramp-smb-handle-copy-directory, tramp-smb-handle-copy-file)
      (tramp-smb-handle-delete-directory, tramp-smb-handle-delete-file)
      (tramp-smb-handle-file-attributes)
      (tramp-smb-do-file-attributes-with-stat)
      (tramp-smb-handle-file-local-copy)
      (tramp-smb-handle-insert-directory)
      (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-modes)
      (tramp-smb-handle-write-region, tramp-smb-get-file-entries)
      (tramp-smb-maybe-open-connection): Apply the changed parameters.
      (tramp-smb-read-file-entry): Read Disk names in compressed format.
      Handle long file names.
      (tramp-smb-get-cifs-capabilities): Check, whether the connection
      process is running.
      (tramp-smb-maybe-open-connection): Trace "smbclient -V" command.
      Read share names with "-g" option.
      4260b402
  13. 12 Oct, 2009 1 commit
  14. 11 Oct, 2009 2 commits
    • Michael Albinus's avatar
      Fix last change. · 585eedef
      Michael Albinus authored
      585eedef
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-errors): Add error messages. · f6f7e059
      Michael Albinus authored
      (tramp-smb-file-name-handler-alist): Add handlers for
      `add-name-to-file', `make-symbolic-link'.
      (tramp-smb-handle-add-name-to-file)
      (tramp-do-file-attributes-with-stat)
      (tramp-smb-handle-make-symbolic-link)
      (tramp-smb-get-cifs-capabilities): New defuns.
      (tramp-smb-handle-copy-directory, 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-internal)
      (tramp-smb-handle-rename-file, tramp-smb-handle-write-region): The
      file name syntax depends on cifs capabilities.
      (tramp-smb-handle-file-attributes); Call
      `tramp-do-file-attributes-with-stat' if possible.
      (tramp-smb-handle-insert-directory): Use posix attributes if
      possible.
      (tramp-smb-handle-set-file-modes): It is applicable for posix
      only.
      f6f7e059
  15. 08 Oct, 2009 1 commit
  16. 07 Oct, 2009 1 commit
    • Michael Albinus's avatar
      * net/tramp-smb.el (tramp-smb-errors): Add error messages. · c2dc9732
      Michael Albinus authored
      (tramp-smb-file-name-handler-alist): Add handler for
      `copy-directory', `expand-file-name', `set-file-modes'.
      (tramp-smb-handle-copy-directory)
      (tramp-smb-handle-expand-file-name)
      (tramp-smb-handle-set-file-modes): New defuns.
      (tramp-smb-handle-copy-file): Handle KEPP-DATE.
      (tramp-smb-handle-file-attributes): Simplify check for retrieving
      entry.
      (tramp-smb-handle-insert-directory): Don't flush the cache.
      (tramp-smb-maybe-open-connection): Check for samba client and
      server versions.
      c2dc9732
  17. 02 Oct, 2009 1 commit
  18. 01 Oct, 2009 1 commit
  19. 29 Sep, 2009 1 commit
  20. 28 Sep, 2009 1 commit
  21. 22 Jun, 2009 1 commit
  22. 06 Jan, 2009 1 commit
  23. 05 Jan, 2009 1 commit
  24. 03 Jan, 2009 1 commit
  25. 16 Nov, 2008 1 commit
  26. 26 Jul, 2008 1 commit
  27. 21 Jun, 2008 1 commit
  28. 06 May, 2008 1 commit
  29. 10 Apr, 2008 1 commit
  30. 03 Feb, 2008 1 commit
  31. 02 Feb, 2008 1 commit
  32. 07 Jan, 2008 1 commit
  33. 04 Jan, 2008 1 commit
  34. 23 Dec, 2007 1 commit
    • Michael Albinus's avatar
      Sync with Tramp 2.1.12. · adb67129
      Michael Albinus authored
      * net/tramp.el: New todo item.
      
      * net/tramp-smb.el (tramp-smb-handle-insert-directory): Handle "-F"
      switch.  Reported by Mark T. Kennedy <mkennedy@diamondbackcap.com>.
      
      * net/trampver.el: Update release number.
      adb67129
  35. 07 Nov, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-handle-substitute-in-file-name): Don't · b08104a0
      Michael Albinus authored
      expand the remote connection identification.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      Set also $PS2 and $PS3 when setting $PS1.  Check for shell echoing
      before calling stty.
      
      * net/tramp-cache.el (tramp-cache-print)
      (tramp-dump-connection-properties): Fix docstring.
      (tramp-list-connections): Renamed from
      `tramp-cache-list-connections'.
      
      * net/tramp-cmds.el (tramp-cleanup-connection): Apply it.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Don't expand the
      remote connection identification when setting connection property.
      
      * net/tramp-smb.el (tramp-smb-handle-substitute-in-file-name):
      "//" substitutes only in the local filename part.
      b08104a0
  36. 27 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-wrong-passwd-regexp): Tune regexp. · a4aeb9a4
      Michael Albinus authored
      (tramp-get-remote-tmpdir): New defun.
      (tramp-make-tramp-temp-file): Use it.
      (tramp-local-call-process): New defun.  Replace all calls of
      `call-process' by this when appropriate.
      (tramp-handle-write-region): Replace calls of `file-attributes' by
      `tramp-compat-file-attributes'.
      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
      Make the first command a `tramp-send-command' call, with let-bind
      of `tramp-end-of-output'.
      (tramp-version, tramp-bug, tramp-reporter-dump-variable)
      (tramp-load-report-modules, tramp-append-tramp-buffers): Move to
      tramp-cmds.el.
      
      * net/tramp-fish.el (tramp-fish-handle-copy-file)
      (tramp-fish-do-copy-or-rename-file)
      (tramp-fish-do-copy-or-rename-file-directly):
      * net/tramp-smb.el (tramp-smb-handle-copy-file):
      Add parameter PRESERVE-UID-GID.
      a4aeb9a4
  37. 04 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (tramp-make-temp-file): Move to tramp-compat.el. · 258800f8
      Michael Albinus authored
      (tramp-do-copy-or-rename-file-directly): Handle tmpfile only in
      the cond clauses where needed.
      (tramp-handle-write-region): Rearrange code for proper handling of
      tmpfile.
      
      * net/tramp-compat.el (tramp-compat-make-temp-file): New defsubst.
      
      * net/tramp.el:
      * net/tramp-fish.el:
      * net/tramp-ftp.el:
      * net/tramp-smb.el: Rename `tramp-make-temp-file' to
      `tramp-compat-make-temp-file'.
      258800f8
  38. 03 Oct, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp.el (top): Add tramp-compat to `tramp-unload-hook'. · 94be87e8
      Michael Albinus authored
      (tramp-file-name-handler-alist): Add
      `tramp-handle-insert-file-contents-literally'.  Neded for XEmacs.
      (tramp-make-temp-file): Use `make-temp-name'. `make-temp-file',
      used before, creates the file already, which is not desired.
      (tramp-do-copy-or-rename-file-directly): Simplify handling of
      temporary file.
      (tramp-handle-insert-file-contents): Assign the result in the
      short track case.
      (tramp-handle-insert-file-contents-literally): New defun.
      (tramp-completion-mode-p): Revert change from 2007-09-24.
      Checking for `return' etc as last character is not sufficient, for
      example in dired-mode when entering <g> (revert-buffer) or
      <s> (dired-sort).
      
      * net/tramp-compat.el (top): Add also compatibility code for loading
      appropriate timer package.
      (tramp-compat-copy-tree): Check for `subrp' and `symbol-file' in
      order to avoid autoloading problems.
      
      * net/tramp-fish.el:
      * net/tramp-smb.el: Move further compatibility code to
      tramp-compat.el.
      
      * net/tramp-ftp.el (tramp-ftp-file-name-handler): Handle the case
      where the second parameter of `copy-file' or `rename-file' is a
      remote file but not via ftp.
      94be87e8
  39. 30 Sep, 2007 1 commit
    • Michael Albinus's avatar
      * net/tramp-compat.el: New file. · 9e6ab520
      Michael Albinus authored
      * net/tramp.el:
      * net/tramp-fish.el:
      * net/tramp-smb.el:
      * net/tramp-uu.el:
      * net/trampver.el: Move compatibility code to tramp-compat.el.
      Apply `mapc' instead of `mapcar' when the code needs side effects
      only.  Move utf-8 coding cookie to the second line.
      9e6ab520