comparison lisp/net/tramp-uu.el @ 110377:6dcf9897d91a

merge trunk
author Kenichi Handa <handa@m17n.org>
date Thu, 16 Sep 2010 11:11:13 +0900
parents ec526909f60b
children 417b1e4d63cd
comparison
equal deleted inserted replaced
110376:cc92458a9829 110377:6dcf9897d91a
48 48
49 (defun tramp-uu-b64-char-to-byte (char) 49 (defun tramp-uu-b64-char-to-byte (char)
50 "Return the byte that is encoded as CHAR." 50 "Return the byte that is encoded as CHAR."
51 (cdr (assq char tramp-uu-b64-char-to-byte))) 51 (cdr (assq char tramp-uu-b64-char-to-byte)))
52 52
53 ;;;###tramp-autoload
53 (defun tramp-uuencode-region (beg end) 54 (defun tramp-uuencode-region (beg end)
54 "UU-encode the region between BEG and END." 55 "UU-encode the region between BEG and END."
55 ;; First we base64 encode the region, then we transmogrify that into 56 ;; First we base64 encode the region, then we transmogrify that into
56 ;; uu encoding. 57 ;; uu encoding.
57 (let ((len (base64-encode-region beg end t)) 58 (let ((len (base64-encode-region beg end t))
85 ;; Why is there always a "`" line at the end? 86 ;; Why is there always a "`" line at the end?
86 (insert "`\nend\n") 87 (insert "`\nend\n")
87 (goto-char beg) 88 (goto-char beg)
88 (insert "begin 600 xxx\n")))) 89 (insert "begin 600 xxx\n"))))
89 90
91 (add-hook 'tramp-unload-hook
92 (lambda ()
93 (unload-feature 'tramp-uu 'force)))
94
90 (provide 'tramp-uu) 95 (provide 'tramp-uu)
91 96
92 ;; arch-tag: 7153f2c6-8be5-4cd2-8c06-0fbcf5190ef6 97 ;; arch-tag: 7153f2c6-8be5-4cd2-8c06-0fbcf5190ef6
93 ;;; tramp-uu.el ends here 98 ;;; tramp-uu.el ends here
94 99