(require 'mime-edit)
;; Avoid byte compile warnings.
-(defvar gnus-article-buffer)
-(defvar gnus-article-copy)
-(defvar gnus-original-article-buffer)
-(eval-when-compile
- (fset 'gnus-copy-article-buffer 'ignore)
- )
+;; (defvar gnus-article-buffer)
+;; (defvar gnus-article-copy)
+;; (defvar gnus-original-article-buffer)
+;; (eval-when-compile
+;; (fset 'gnus-copy-article-buffer 'ignore)
+;; )
;;; @ variable
is searched for first in the user's MH directory, then in the
system MH lib directory.")
-(defvar emh-message-yank-function 'mh-yank-cur-msg)
+;; (defvar emh-message-yank-function 'mh-yank-cur-msg)
;;; @ for tm-edit
(insert "\n"))))
(error "There is no current message")))
-(defun emh-yank-current-message ()
- "Insert the current message into the draft buffer.
-It uses variable `emh-message-yank-function'
-to select message yanking function."
- (interactive)
- (let ((mh-sent-from-folder mh-sent-from-folder)
- (mh-sent-from-msg mh-sent-from-msg))
- (if (and (not (stringp mh-sent-from-folder))
- (boundp 'gnus-article-buffer)
- (get-buffer gnus-article-buffer)
- (bufferp mh-sent-from-folder)
- ) ; might be called from GNUS
- (if (boundp 'gnus-article-copy) ; might be sgnus
- (save-excursion
- (gnus-copy-article-buffer)
- (setq mh-sent-from-folder gnus-article-copy)
- (set-buffer mh-sent-from-folder)
- (setq mh-show-buffer gnus-article-copy)
- )
- (save-excursion
- (setq mh-sent-from-folder gnus-article-buffer)
- (set-buffer gnus-article-buffer)
- (setq mh-show-buffer (current-buffer))
- )))
- (funcall emh-message-yank-function)
- ))
-
-(substitute-key-definition
- 'mh-yank-cur-msg 'emh-yank-current-message mh-letter-mode-map)
-(substitute-key-definition
- 'mh-insert-letter 'emh-insert-letter mh-letter-mode-map)
+;; (defun emh-yank-current-message ()
+;; "Insert the current message into the draft buffer.
+;; It uses variable `emh-message-yank-function'
+;; to select message yanking function."
+;; (interactive)
+;; (let ((mh-sent-from-folder mh-sent-from-folder)
+;; (mh-sent-from-msg mh-sent-from-msg))
+;; (if (and (not (stringp mh-sent-from-folder))
+;; (boundp 'gnus-article-buffer)
+;; (get-buffer gnus-article-buffer)
+;; (bufferp mh-sent-from-folder)
+;; ) ; might be called from GNUS
+;; (if (boundp 'gnus-article-copy) ; might be sgnus
+;; (save-excursion
+;; (gnus-copy-article-buffer)
+;; (setq mh-sent-from-folder gnus-article-copy)
+;; (set-buffer mh-sent-from-folder)
+;; (setq mh-show-buffer gnus-article-copy)
+;; )
+;; (save-excursion
+;; (setq mh-sent-from-folder gnus-article-buffer)
+;; (set-buffer gnus-article-buffer)
+;; (setq mh-show-buffer (current-buffer))
+;; )))
+;; (funcall emh-message-yank-function)
+;; ))
+
+;; (substitute-key-definition
+;; 'mh-yank-cur-msg 'emh-yank-current-message mh-letter-mode-map)
+;; (substitute-key-definition
+;; 'mh-insert-letter 'emh-insert-letter mh-letter-mode-map)
;;; @ end