• Michael Albinus's avatar
    Allow Tramp to mirror traces to a file · ba692b79
    Michael Albinus authored
    * doc/misc/tramp.texi (Traces and Profiles): Add `tramp-debug-to-file'.
    
    * lisp/net/tramp-adb.el (tramp-adb-parse-device-names)
    (tramp-adb-get-device):
    * lisp/net/tramp-cmds.el (tramp-rename-files):
    * lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter)
    (tramp-gvfs-handler-volumeadded-volumeremoved)
    (tramp-get-media-devices):
    * lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch)
    (tramp-sh-gio-monitor-process-filter)
    (tramp-sh-gvfs-monitor-dir-process-filter)
    (tramp-sh-inotifywait-process-filter, tramp-maybe-send-script)
    (tramp-find-inline-encoding):
    * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
    (tramp-smb-handle-file-acl, tramp-smb-handle-set-file-acl):
    Use `tramp-compat-string-replace'.
    
    * lisp/net/tramp-compat.el (tramp-compat-string-replace): New defalias.
    
    * lisp/net/tramp.el (tramp-debug-to-file): New defcustom.
    (tramp-get-debug-buffer): Simplify.
    (tramp-get-debug-file-name): New defun.
    (tramp-debug-message): Write debug file if indicated.
    ba692b79
tramp-compat.el 13.7 KB