1. 25 Feb, 2019 1 commit
    • Michael Albinus's avatar
      Adapt hooks in Tramp · cedc3410
      Michael Albinus authored
      * lisp/net/tramp-archive.el (tramp-archive-cleanup-hash):
      Remove autoload cookie.
      (tramp-cleanup-all-connections-hook): Add `tramp-archive-cleanup-hash'.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection-hook)
      (tramp-cleanup-all-connections-hook): New hook variables.
      (tramp-cleanup-connection): Set `tramp-current-connection' always
      to nil.
      (tramp-cleanup-connection): Do not call `tramp-recentf-cleanup'.
      Run ´tramp-cleanup-connection-hook`.
      (tramp-cleanup-all-connections): Do not call
      `tramp-archive-cleanup-hash' and ´tramp-recentf-cleanup'.  Run
      `tramp-cleanup-all-connections-hook'.
      
      * lisp/net/tramp-ftp.el (top): Simply call `tramp-disable-ange-ftp'.
      
      * lisp/net/tramp-integration.el (tramp-recentf-cleanup-all): New defun.
      (top): Adapt `tramp-integration-unload-hook',
      `tramp-cleanup-connection-hook' and
      `tramp-cleanup-all-connections-hook'.
      cedc3410
  2. 24 Feb, 2019 1 commit
    • Michael Albinus's avatar
      Cleanup also recentf files in Tramp · cbcb5718
      Michael Albinus authored
      * doc/misc/tramp.texi (Cleanup remote connections): Mention also
      recentf cache.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection)
      (tramp-cleanup-all-connections): Call `tramp-recentf-cleanup'.
      
      * lisp/net/tramp-integration.el: New package.
      
      * lisp/net/tramp.el (tramp-rfn-eshadow-overlay)
      (tramp-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay-regexp)
      (tramp-rfn-eshadow-update-overlay):
      (tramp-eshell-directory-change): Move to tramp-integration.el
      cbcb5718