tm 6.78.1.
[elisp/tm.git] / mh-e / tm-mh-e.el
index 87d73cc..f72af2d 100644 (file)
@@ -8,9 +8,9 @@
 
 ;;; @ require modules
 ;;;
+
 (require 'tl-str)
 (require 'tl-misc)
-(require 'tm-misc)
 (require 'mh-e)
 (if (not (boundp 'mh-e-version))
     (require 'tm-mh-e3)
 
 ;;; @ version
 ;;;
+
 (defconst tm-mh-e/RCS-ID
-  "$Id: tm-mh-e.el,v 6.21 1995/06/22 12:02:13 morioka Exp $")
+  "$Id: tm-mh-e.el,v 6.24 1995/09/02 06:02:20 morioka Exp $")
 
 (defconst tm-mh-e/version (get-version-string tm-mh-e/RCS-ID))
 
 
 ;;; @ variable
 ;;;
+
 (defvar tm-mh-e/decode-all t
   "*If t, decode all of the message. Otherwise decode header only.")
 
@@ -166,7 +168,7 @@ With arg, turn MIME processing on if arg is positive."
           (save-window-excursion
             (switch-to-buffer (concat "show-" mh-sent-from-folder))
             mime::article/preview-buffer))
-         (if (looking-at "^\\[.+\\]\n")
+         (if (looking-at "^\\[.+\\(\n[ \t].+\\)*\\]\n")
              (replace-match ""))
          (narrow-to-region (point)(point-max))
          (mh-insert-prefix-string mh-ins-buf-prefix)
@@ -219,6 +221,7 @@ With arg, turn MIME processing on if arg is positive."
 
 ;;; @ for tm-comp
 ;;;
+
 (defun tm-mh-e::make-message (folder number)
   (vector folder number)
   )
@@ -305,12 +308,18 @@ With arg, turn MIME processing on if arg is positive."
 (defun tm-mh-e/summary-before-quit ()
   (let ((buf (get-buffer mh-show-buffer)))
     (if buf
-       (save-window-excursion
+       (let ((the-buf (current-buffer)))
          (switch-to-buffer buf)
-         (if mime::article/preview-buffer
-             (if (setq buf (get-buffer mime::article/preview-buffer))
-                 (kill-buffer buf)
-               ))))))
+         (if (and mime::article/preview-buffer
+                  (setq buf (get-buffer mime::article/preview-buffer))
+                  )
+             (progn
+               (switch-to-buffer the-buf)
+               (kill-buffer buf)
+               )
+           (switch-to-buffer the-buf)
+           )
+         ))))
 
 (add-hook 'mh-before-quit-hook (function tm-mh-e/summary-before-quit))
             
@@ -326,6 +335,10 @@ With arg, turn MIME processing on if arg is positive."
           'mh-show-mode
           (function tm-mh-e/code-convert-region-to-emacs))
 
-(run-hooks 'tm-mh-e-load-hook)
+
+;;; @ end
+;;;
 
 (provide 'tm-mh-e)
+
+(run-hooks 'tm-mh-e-load-hook)