mel of MEL 3.3.
[elisp/flim.git] / mel-u.el
index f2f6a50..7573cb7 100644 (file)
--- a/mel-u.el
+++ b/mel-u.el
@@ -1,6 +1,33 @@
 ;;;
-;;; $Id: mel-u.el,v 2.1 1995/11/01 06:03:14 morioka Exp $
+;;; mel-u.el: uuencode encoder/decoder for GNU Emacs
 ;;;
+;;; Copyright (C) 1995 Free Software Foundation, Inc.
+;;; Copyright (C) 1995,1996 MORIOKA Tomohiko
+;;;
+;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;;; Created: 1995/10/25
+;;; Version:
+;;;    $Id: mel-u.el,v 3.2 1996/01/09 18:19:25 morioka Exp $
+;;; Keywords: uuencode
+;;;
+;;; This file is part of MEL (MIME Encoding Library).
+;;;
+;;; This program is free software; you can redistribute it and/or
+;;; modify it under the terms of the GNU General Public License as
+;;; published by the Free Software Foundation; either version 2, or
+;;; (at your option) any later version.
+;;;
+;;; This program is distributed in the hope that it will be useful,
+;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with This program.  If not, write to the Free Software
+;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;;;
+;;; Code:
 
 ;;; @ variables
 ;;;
@@ -34,9 +61,9 @@
 (defun uuencode-external-encode-region (beg end)
   (interactive "*r")
   (save-excursion
-    (let ((selective-display nil) ;Disable ^M to nl translation.
-         (mc-flag nil)      ;Mule
-         (kanji-flag nil))  ;NEmacs
+    (let (selective-display ; Disable ^M to nl translation.
+         mc-flag           ; for Mule
+         kanji-flag)       ; for NEmacs
       (apply (function call-process-region)
             beg end (car uuencode-external-encoder)
             t t nil (cdr uuencode-external-encoder))
@@ -45,9 +72,9 @@
 (defun uuencode-external-decode-region (beg end)
   (interactive "*r")
   (save-excursion
-    (let ((selective-display nil) ;Disable ^M to nl translation.
-         (mc-flag nil)         ;Mule
-         (kanji-flag nil)      ;NEmacs
+    (let (selective-display ; Disable ^M to nl translation.
+         mc-flag           ; for Mule
+         kanji-flag        ; for NEmacs
          (filename (save-excursion
                      (save-restriction
                        (narrow-to-region beg end)
          (progn
            (apply (function call-process-region)
                   beg end (car uuencode-external-decoder)
-                  t t nil (cdr uuencode-external-decoder))
+                  t nil nil (cdr uuencode-external-decoder))
            (setq filename (expand-file-name filename mime/tmp-dir))
            (let ((file-coding-system-for-read
-                  (if (boundp 'MULE) *noconv*))        ; Mule
-                 kanji-fileio-code)                    ; NEmacs
+                  (if (boundp 'MULE) *noconv*))  ; for Mule
+                 kanji-fileio-code               ; for NEmacs
+                 (emx-binary-mode t)             ; for OS/2
+                 jka-compr-compression-info-list ; for jka-compr
+                 jam-zcat-filename-list          ; for jam-zcat
+                 require-final-newline)
              (insert-file-contents filename)
              )
            (delete-file filename)