]> 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 897a87b0134b7741698a1f62a3b6b5ab6c225f98..fe6862c9240a56f546ef5760c3a6c4eeaebae673 100644 (file)
@@ -5,6 +5,7 @@
 
 ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
 ;; Keywords: comm, terminals
+;; Package: tramp
 
 ;; This file is part of GNU Emacs.
 
@@ -49,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