tm 6.58
authormorioka <morioka>
Mon, 2 Mar 1998 15:06:59 +0000 (15:06 +0000)
committermorioka <morioka>
Mon, 2 Mar 1998 15:06:59 +0000 (15:06 +0000)
Makefile
gnus/tm-dgnus.el
mh-e/code-jp.ol [new file with mode: 0644]
mh-e/tm-mh-e.el
mh-e/tm-mh-e3.el
tm-view.el

index 2534416..8e784e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 #
-# $Id: Makefile,v 6.11 1995/06/17 18:54:23 morioka Exp morioka $
+# $Id: Makefile,v 6.12 1995/06/22 05:00:00 morioka Exp morioka $
 #
 
 # Please specify emacs executables:
@@ -42,18 +42,18 @@ RM  = /bin/rm -f
 CP     = /bin/cp -p
 
 UTILS  = ol2 decode-b
-GOMI   = $(UTILS) *.elc .lpath.el
+GOMI   = $(UTILS) *.elc loadpath
 FILES  = tm/README.eng tm/rel-*.ol \
        tm/Makefile tm/Makefile.bc tm/make-lpath tm/inst-el tm/inst-elc \
        tm/*.el tm/*.c tm/methods \
        tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex tm/doc/*.texi \
        tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus tm/gnus/*.el \
-       tm/mh-e/Makefile tm/mh-e/Makefile.bc code-jp.ol tm/mh-e/*.el \
-       tl/README.eng \
-       tl/Makefile tl/Makefile.bc tl/loadpath \
-       tl/*.el tl/doc/*.texi
+       tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/code-jp.ol tm/mh-e/*.el
+#      tl/README.eng \
+#      tl/Makefile tl/Makefile.bc tl/loadpath \
+#      tl/*.el tl/doc/*.texi
 
-TARFILE = tm6.54.tar
+TARFILE = tm6.58.tar
 
 
 lpath-nemacs:
@@ -99,6 +99,7 @@ lpath-orig19:
 orig19:        lpath-orig19
        make -f Makefile.bc all EMACS=$(ORIG19) EMACS_TYPE=orig
        cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
+#      cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
        cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
 
 orig19-vm: lpath-nemacs
@@ -114,6 +115,7 @@ lpath-mule2:
 mule2: lpath-mule2
        make -f Makefile.bc all EMACS=$(MULE2) EMACS_TYPE=mule
        cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
+#      cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
        cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
 
 mule2-vm: lpath-nemacs
index e42a3e6..defa71e 100644 (file)
@@ -5,7 +5,7 @@
 ;;; @ version
 ;;;
 (defconst tm-gnus/RCS-ID
-  "$Id: tm-dgnus.el,v 6.4 1995/06/18 16:12:05 morioka Exp $")
+  "$Id: tm-dgnus.el,v 6.5 1995/06/22 05:34:56 morioka Exp $")
 
 (defconst tm-gnus/version
   (concat (get-version-string tm-gnus/RCS-ID) " (ding)"))
@@ -224,6 +224,18 @@ With arg, turn MIME processing on if arg is positive."
   )
 
 
+;;; @ etc
+;;;
+
+(add-hook 'gnus-exit-gnus-hook
+         (function
+          (lambda ()
+            (let ((buf (get-buffer tm-gnus/preview-buffer)))
+              (if buf
+                  (kill-buffer buf)
+                )))))
+
+
 ;;; @ end
 ;;;
 
diff --git a/mh-e/code-jp.ol b/mh-e/code-jp.ol
new file mode 100644 (file)
index 0000000..75134e8
--- /dev/null
@@ -0,0 +1,57 @@
+\e$B!X\e(Btm-mh-e \e$B$G\e(B ISO-2022-JP \e$B0J30$NJ8;z\e(B code \e$B$r;H$&J}K!!Y\e(B
+by \e$B<i2,\e(B \e$BCNI'\e(B
+
+  MTA \e$B$G\e(B ISO-2022-JP \e$B$r\e(B EUC-JP \e$B$d\e(B Shift-JIS \e$B$J$I$K\e(B code \e$BJQ49$7$F$$$k>l\e(B
+\e$B9g!"\e(Btm-mh-e \e$B$N\e(B default \e$B$N@_Dj$G$OJ8;z2=$1$7$^$9!#$3$&$7$?$3$H$r9T$J$&\e(B
+\e$B$3$H$O$"$^$j4+$a$i$l$?$3$H$G$O$J$$$H;W$$$^$9$,!"$3$3$G$O$3$&$7$?4D6-$G\e(B 
+tm-mh-e \e$B$r;H$&>l9g$N@_Dj$K$D$$$F@bL@$7$^$9!#\e(B
+
+
+* Mule \e$B$N>l9g\e(B
+
+  tm-mh-e \e$B$NI8=`@_Dj$G$O!"\e(Bcharset parameter \e$B$,B8:_$9$k>l9g$O$=$l$G;XDj\e(B
+\e$B$5$l$?J8;z\e(B code \e$B$K$J$j!"\e(Bcharset parameter \e$B$,B8:_$7$J$$>l9g!JHs\e(B MIME
+message \e$B$r4^$`!K$N>l9g$NJ8;z\e(B code \e$B$O\e(B *ctext* \e$B$H$J$j$^$9!#\e(B
+
+  charset \e$B$,B8:_$7$J$$>l9g$NJ8;z\e(B code \e$B$OJQ?t\e(B 
+mime/default-coding-system \e$B$G;XDj$5$l$^$9!#$3$N4{DjCM$,\e(B *ctext* \e$B$G$"$j!"\e(B
+ISO-8859-1 \e$B$+\e(B ISO-2022-JP \e$B$J$I$N\e(B JUNET \e$BJ}<0$N\e(B ISO-2022 code \e$B$G$"$k$3$H\e(B
+\e$B$r4|BT$7$F$$$^$9!#\e(B
+
+  charset \e$B$,B8:_$9$k>l9g$O!"JQ?t\e(B mime/charset-coding-system-alist \e$B$K@_\e(B
+\e$BDj$5$l$?!"$=$N\e(B charset \e$B$KBP1~$9$k\e(B Mule \e$B$N\e(B coding-system \e$B$,MQ$$$i$l$^$9!#\e(B
+
+  \e$B$3$l$i$NF0:n$O4X?t\e(B tm-mh-e/code-convert-region-to-emacs \e$B$G9T$J$o$l$^\e(B
+\e$B$9!#$h$C$F!"$3$l$i$NJQ?t$*$h$S4X?t$rJQ99$9$k$3$H$K$h$C$F\e(B MTA \e$B$G\e(B code 
+\e$BJQ49$5$l$?>l9g$NBP:v$r9T$J$&$3$H$,$G$-$^$9!#\e(B
+
+
+** \e$BHs\e(B MIME message \e$B$^$?$O\e(B charset \e$B$,B8:_$7$J$$>l9g$N$_$NBP:v\e(B
+
+  \e$BHs\e(B MIME message \e$B$N>l9g!"JQ?t\e(B mime/default-coding-system \e$B$KJ8;z\e(B code 
+\e$B$r@_Dj$9$l$P\e(B OK \e$B$G$9!#\e(BShift-JIS \e$B$N>l9g$O\e(B
+
+       (setq mime/default-coding-system *sjis*)
+
+EUC-JP \e$B$N>l9g$O!"\e(B
+
+       (setq mime/default-coding-system *euc-japan*)
+
+\e$B$H$7$F2<$5$$!#\e(B
+
+
+** charset \e$B$,B8:_$9$k>l9g$b4^$a$?BP:v\e(B
+
+  charset \e$B$,B8:_$9$k>l9g!"JQ?t\e(B mime/charset-coding-system-alist \e$B$K\e(B 
+"ISO-2022-JP" \e$B$KBP1~$9$k\e(B coding-system \e$B$r\e(B *sjis* \e$B$d\e(B *euc-japan* \e$B$KJQ$(\e(B
+\e$B$k$H$$$&$N$,#1$D$NJ}K!$G$9!#C"$7!"$3$N>l9g!"\e(Bencode \e$B$5$l$F85$NJ8;z\e(B code 
+\e$B$,J]B8$5$l$F$$$k>l9g$KJ8;z2=$1$9$k$3$H$K$J$j$^$9!#\e(B
+
+  \e$B$3$N$3$H$r9MN8$9$k$H!"4X?t\e(B tm-mh-e/code-convert-region-to-emacs \e$B$r:F\e(B
+\e$BDj5A$9$k$N$,NI$$$H$$$($^$9!#$*$=$i$/!"\e(BISO-2022-JP \e$B0J30$NJ8;z\e(B code \e$B$OJ]\e(B
+\e$BB8$5$l$J$$$G$7$g$&$+$i!"0J2<$N$h$&$JDj5A$G==J,$G$7$g$&!#\e(B
+
+       (defun tm-mh-e/code-convert-region-to-emacs
+         (beg end charset &optional encoding)
+         (code-convert beg end *sjis* *internal*)
+         )
index 5d14bfc..3a4b886 100644 (file)
@@ -21,7 +21,7 @@
 ;;; @ version
 ;;;
 (defconst tm-mh-e/RCS-ID
-  "$Id: tm-mh-e.el,v 6.18 1995/06/20 21:07:39 morioka Exp $")
+  "$Id: tm-mh-e.el,v 6.20 1995/06/22 04:58:44 morioka Exp $")
 
 (defconst tm-mh-e/version (get-version-string tm-mh-e/RCS-ID))
 
@@ -168,7 +168,8 @@ With arg, turn MIME processing on if arg is positive."
             mime::article/preview-buffer))
          (if (looking-at "^\\[.+\\]\n")
              (replace-match ""))
-         (run-hooks 'mail-citation-hook)
+         (narrow-to-region (point)(point-max))
+         (mh-insert-prefix-string mh-ins-buf-prefix)
          ))
     (mh-yank-cur-msg)
     ))
index d4f65a7..f534cb7 100644 (file)
@@ -1,5 +1,5 @@
 ;;;
-;;; $Id: tm-mh-e3.el,v 4.0 1995/06/18 16:26:37 morioka Exp $
+;;; $Id: tm-mh-e3.el,v 5.0 1995/06/22 03:36:07 morioka Exp $
 ;;;
 ;;; This is a part of tm-mh-e.el which is a module for old mh-e
 ;;; to emulate mh-e 4.*.
@@ -9,6 +9,14 @@
 
 (require 'mh-e)
 
+
+(defvar mail-citation-hook nil
+  "*Hook for modifying a citation just inserted in the mail buffer.
+Each hook function can find the citation between point and mark.
+And each hook function should leave point and mark around the citation
+text as modified.")
+
+
 ;;; Ensure new buffers won't get this mode if default-major-mode is nil.
 (put 'mh-show-mode 'mode-class 'special)
 
index b1a33a3..4110f29 100644 (file)
@@ -22,7 +22,7 @@
 ;;;
 
 (defconst mime-viewer/RCS-ID
-  "$Id: tm-view.el,v 6.54 1995/06/13 22:31:38 morioka Exp $")
+  "$Id: tm-view.el,v 6.58 1995/06/22 04:11:58 morioka Exp $")
 
 (defconst mime-viewer/version (get-version-string mime-viewer/RCS-ID))
 (defconst mime/viewer-version mime-viewer/version)
            ctype
            mime-viewer/content-subject-omitting-Content-Type-list))
       (insert
-       (format "[%s %s (%s)]\n"
-              (or (assoc-value "x-part-number" params)
-                  (if (listp cnum)
-                      (mapconcat (function
-                                  (lambda (num)
-                                    (format "%s" (+ num 1))
-                                    ))
-                                 cnum ".")
-                    "0"))
-              subj ctype))
-    ))
+       (let ((access-type (assoc "access-type" params))
+            (num (or (assoc-value "x-part-number" params)
+                     (if (listp cnum)
+                         (mapconcat (function
+                                     (lambda (num)
+                                       (format "%s" (+ num 1))
+                                       ))
+                                    cnum ".")
+                       "0"))
+                 ))
+        (if access-type
+            (let ((server (assoc "server" params)))
+              (setq access-type (cdr access-type))
+              (if server
+                  (format "[%s %s ([%s] %s)]\n" num subj
+                          access-type (cdr server))
+                (let ((site (assoc-value "site" params))
+                      (dir (assoc-value "directory" params))
+                      )
+                  (format "[%s %s ([%s] %s:%s)]\n" num subj
+                          access-type site dir)
+                  )))
+          (format "[%s %s (%s)]\n" num subj ctype)
+          )))))
 
 (defvar mime-viewer/content-subject-function
   (function mime-viewer/default-content-subject-function))
@@ -485,9 +498,9 @@ it is regarded as current-buffer. [tm-view]"
              (or
               (message/get-field-body "Content-Description")
               (message/get-field-body "Subject")
-              ))
-           ""))
-      )))
+              )))
+         ""))
+    ))
 
 (defun mime-viewer/get-name (param)
   (let ((str (mime-viewer/get-subject param)))
@@ -517,20 +530,18 @@ it is regarded as current-buffer. [tm-view]"
        (setq obuf (concat "*Preview-" (buffer-name buf) "*"))
        )
     (setq pcl (mime::make-flat-content-list cinfo))
-    (save-window-excursion
-      (let ((bf (get-buffer obuf)))
-       (switch-to-buffer obuf)
-       (setq buffer-read-only nil)
-       (if bf
-           (erase-buffer)
-         ))
-      (make-variable-buffer-local 'mime::preview/article-buffer)
-      (setq mime::preview/article-buffer the-buf)
-      (make-variable-buffer-local 'mime::preview/original-major-mode)
-      (setq mime::preview/original-major-mode mode)
-      (setq major-mode 'mime/viewer-mode)
-      (setq mode-name "MIME-View")
-      )
+    (let ((bf (get-buffer obuf)))
+      (switch-to-buffer obuf)
+      (setq buffer-read-only nil)
+      (if bf
+         (erase-buffer)
+       ))
+    (make-variable-buffer-local 'mime::preview/article-buffer)
+    (setq mime::preview/article-buffer the-buf)
+    (make-variable-buffer-local 'mime::preview/original-major-mode)
+    (setq mime::preview/original-major-mode mode)
+    (setq major-mode 'mime/viewer-mode)
+    (setq mode-name "MIME-View")
     (setq dest
          (mapcar
           (function
@@ -541,74 +552,70 @@ it is regarded as current-buffer. [tm-view]"
                    (params (mime::content-info/parameters cell))
                    he cnum e nb ne subj str)
                (setq cnum (mime::get-point-content-number beg cinfo))
+               (switch-to-buffer the-buf)
                (setq he (save-excursion
                           (goto-char beg)
                           (re-search-forward "^$" nil t)
                           (+ (match-end 0) 1)
                           ))
-               (save-window-excursion
-                 (switch-to-buffer obuf)
-                 (setq nb (point))
-                 (narrow-to-region nb nb)
-                 )
+               (switch-to-buffer obuf)
+               (setq nb (point))
+               (narrow-to-region nb nb)
+               (switch-to-buffer the-buf)
                (if (mime-viewer/header-visible-p cnum cinfo ctype)
                    (progn
                      (setq str (buffer-substring beg he))
-                     (save-window-excursion
-                       (switch-to-buffer obuf)
-                       (insert str)
-                       (let ((f (assq
-                                 mode
-                                 mime-viewer/content-header-filter-alist))
-                             )
-                         (if (and f (setq f (cdr f)))
-                             (funcall f)
-                           (mime-viewer/default-content-header-filter)
+                     (switch-to-buffer obuf)
+                     (insert str)
+                     (let ((f (assq
+                               mode
+                               mime-viewer/content-header-filter-alist))
                            )
-                         ))))
+                       (if (and f (setq f (cdr f)))
+                           (funcall f)
+                         (mime-viewer/default-content-header-filter)
+                         ))
+                     (switch-to-buffer the-buf)
+                     ))
                (if (mime-viewer/body-visible-p cnum cinfo ctype)
                    (let (be)
                      (setq str (buffer-substring he end))
-                     (save-window-excursion
-                       (switch-to-buffer obuf)
-                       (save-restriction
-                         (setq be (point-max))
-                         (narrow-to-region be be)
-                         (insert str)
-                         (setq ne (point-max))
-                         (let ((f (or (assoc-value
-                                       ctype
-                                       mime-viewer/content-filter-alist)
-                                      )))
-                           (if (and f (fboundp f))
-                               (funcall f ctype params encoding)
-                             (mime-viewer/default-content-filter
-                              cnum cinfo ctype params subj)
-                             ))
-                         (setq ne (point-max))
-                         ))))
-               (save-window-excursion
-                 (switch-to-buffer obuf)
-                 (mime-viewer/default-content-separator
-                  cnum cinfo ctype params subj)
-                 )
-               (save-window-excursion
-                 (switch-to-buffer obuf)
-                 (prog1
-                     (progn
-                       (setq subj (mime-viewer/get-subject params))
-                       (goto-char nb)
-                       (funcall mime-viewer/content-subject-function
-                                cnum cinfo ctype params subj)
+                     (switch-to-buffer obuf)
+                     (save-restriction
+                       (setq be (point-max))
+                       (narrow-to-region be be)
+                       (insert str)
+                       (setq ne (point-max))
+                       (let ((f (or (assoc-value
+                                     ctype
+                                     mime-viewer/content-filter-alist)
+                                    )))
+                         (if (and f (fboundp f))
+                             (funcall f ctype params encoding)
+                           (mime-viewer/default-content-filter
+                            cnum cinfo ctype params subj)
+                           ))
                        (setq ne (point-max))
-                       (widen)
-                       (mime::preview-content-info/create nb (- ne 1)
-                                                          buf cell)
                        )
-                   (goto-char ne)
-                   )))))
+                     (switch-to-buffer the-buf)
+                     ))
+               (switch-to-buffer obuf)
+               (mime-viewer/default-content-separator
+                cnum cinfo ctype params subj)
+               (prog1
+                   (progn
+                     (setq subj (mime-viewer/get-subject params))
+                     (goto-char nb)
+                     (funcall mime-viewer/content-subject-function
+                              cnum cinfo ctype params subj)
+                     (setq ne (point-max))
+                     (widen)
+                     (mime::preview-content-info/create nb (- ne 1)
+                                                        buf cell)
+                     )
+                 (goto-char ne)
+                 ))))
           pcl))
-    (switch-to-buffer obuf)
     (set-buffer-modified-p nil)
     (setq buffer-read-only t)
     (switch-to-buffer the-buf)