]> code.delx.au - gnu-emacs/blobdiff - lisp/net/tramp-uu.el
Use run-mode-hooks for major mode hooks.
[gnu-emacs] / lisp / net / tramp-uu.el
index a9f816be8159f949c3122ef37b635ae7d9909fe9..fe6862c9240a56f546ef5760c3a6c4eeaebae673 100644 (file)
@@ -50,6 +50,7 @@
   "Return the byte that is encoded as CHAR."
   (cdr (assq char tramp-uu-b64-char-to-byte)))
 
+;;;###tramp-autoload
 (defun tramp-uuencode-region (beg end)
   "UU-encode the region between BEG and END."
   ;; First we base64 encode the region, then we transmogrify that into
       (goto-char beg)
       (insert "begin 600 xxx\n"))))
 
+(add-hook 'tramp-unload-hook
+         (lambda ()
+           (unload-feature 'tramp-uu 'force)))
+
 (provide 'tramp-uu)
 
 ;; arch-tag: 7153f2c6-8be5-4cd2-8c06-0fbcf5190ef6