instead of `wl-draft-quit-preview'.
* wl-mime.el (toplevel): Avoid compile warning.
(wl-mime-quit-preview): New function
(formarly defined as `wl-draft-quit-preview').
(wl-draft-preview-message): Use `wl-mime-quit-preview' for
quitting method.
* wl-draft.el: Move wl-draft-quit-preview to wl-mime.el.
2004-09-04 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-draft.el (wl-draft-send-confirm): Call `wl-mime-quit-preview'
+ instead of `wl-draft-quit-preview'.
+
+ * wl-mime.el (toplevel): Avoid compile warning.
+ (wl-mime-quit-preview): New function
+ (formarly defined as `wl-draft-quit-preview').
+ (wl-draft-preview-message): Use `wl-mime-quit-preview' for
+ quitting method.
+
+ * wl-draft.el: Move wl-draft-quit-preview to wl-mime.el.
+
* wl-folder.el (wl-folder-set-flag): Renamed from
`wl-draft-set-flag-on-parent'.
:type 'boolean
:group 'wl-draft)
-(defun wl-draft-quit-preview ()
- "Quitting method for mime-view."
- (let* ((temp mime-edit-temp-message-buffer)
- (window (selected-window))
- buf)
- (mime-preview-kill-buffer)
- (set-buffer temp)
- (setq buf mime-edit-buffer)
- (kill-buffer temp)
- (select-window window)
- (switch-to-buffer buf)))
-
(defun wl-draft-send-confirm ()
(let (answer)
(unwind-protect
(throw 'done nil)))))))
(quit nil))
(when wl-draft-send-confirm-with-preview
- (wl-draft-quit-preview)))))
+ (wl-mime-quit-preview)))))
(defun wl-draft-send (&optional kill-when-done mes-string)
"Send current draft message.
(defalias-maybe 'pgg-display-output-buffer 'ignore)
(defalias-maybe 'pgg-verify-region 'ignore))
+(defvar mime-edit-temp-message-buffer)
+
;;; Draft
(defalias 'wl-draft-editor-mode 'mime-edit-mode)
((boundp attr)
(symbol-value attr)))))
+(defun wl-mime-quit-preview ()
+ "Quitting method for mime-view."
+ (let* ((temp mime-edit-temp-message-buffer)
+ (window (selected-window))
+ buf)
+ (mime-preview-kill-buffer)
+ (set-buffer temp)
+ (setq buf mime-edit-buffer)
+ (kill-buffer temp)
+ (select-window window)
+ (switch-to-buffer buf)))
+
(defun wl-draft-preview-message ()
"Preview editing message."
(interactive)
(signal (car err) (cdr err)))))))
mime-edit-translate-buffer-hook)))
(mime-edit-preview-message)
+ (make-local-variable 'mime-preview-quitting-method-alist)
+ (setq mime-preview-quitting-method-alist
+ '((mime-temp-message-mode . wl-mime-quit-preview)))
(let ((buffer-read-only nil))
(when wl-highlight-body-too
(wl-highlight-body))
(funcall wl-summary-buffer-mode-line-formatter)))
(defun wl-summary-jump-to-msg (&optional number)
- (interactive)
+ (interactive "NJump to Number:")
(let ((num (or number
(string-to-int
(read-from-minibuffer "Jump to Message(No.): ")))))
(progn (beginning-of-line) t)
nil)))
-(defun wl-summary-digit-jump (number)
- (interactive "NJump to Number: ")
- (wl-summary-jump-to-msg number))
-
(defun wl-summary-highlight-msgs (msgs)
(save-excursion
(let ((len (length msgs))