+2006-01-14 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * wl-draft.el (wl-draft-send-confirm): Scroll up/down by SPC/BS.
+
2006-01-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-demo.el (wl-demo-copyright-notice): Add 2006.
result))
(defcustom wl-draft-send-confirm-with-preview t
- "Non-nil to invoke preview through confirmation of sending.
+ "*Non-nil to invoke preview through confirmation of sending.
This variable is valid when `wl-interactive-send' has non-nil value."
:type 'boolean
:group 'wl-draft)
(defun wl-draft-send-confirm ()
(let (answer)
(unwind-protect
- (condition-case quit
+ (condition-case nil
(progn
(when wl-draft-send-confirm-with-preview
(wl-draft-preview-message))
(while t
(discard-input)
(message "Send current draft? <y/n/j(down)/k(up)> ")
- (setq answer (let ((cursor-in-echo-area t)) (read-char)))
- (cond
- ((or (eq answer ?y)
- (eq answer ?Y)
- (eq answer ? ))
- (throw 'done t))
- ((or (eq answer ?v)
- (eq answer ?j)
- (eq answer ?J))
- (condition-case err
- (scroll-up)
- (error nil)))
- ((or (eq answer ?^)
- (eq answer ?k)
- (eq answer ?K))
- (condition-case err
- (scroll-down)
- (error nil)))
- (t
- (throw 'done nil)))))))
+ (case (let ((cursor-in-echo-area t)) (read-char))
+ ((?y ?Y)
+ (throw 'done t))
+ ((?v ?j ?J ? )
+ (ignore-errors (scroll-up)))
+ ((?^ ?k ?K ?\7f)
+ (ignore-errors (scroll-down)))
+ (t
+ (throw 'done nil)))))))
(quit nil))
(when (and wl-draft-send-confirm-with-preview
(eq major-mode 'mime-view-mode))