From: hmurata Date: Sat, 14 Jan 2006 10:44:40 +0000 (+0000) Subject: (wl-draft-send-confirm): Scroll up/down by SPC/BS. X-Git-Tag: wl-2_15_3~26 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9e9719e7e2b865159c508beace5797fe3d93539;p=elisp%2Fwanderlust.git (wl-draft-send-confirm): Scroll up/down by SPC/BS. --- diff --git a/wl/ChangeLog b/wl/ChangeLog index 6cfe15a..d37b599 100644 --- a/wl/ChangeLog +++ b/wl/ChangeLog @@ -1,3 +1,7 @@ +2006-01-14 Hiroya Murata + + * wl-draft.el (wl-draft-send-confirm): Scroll up/down by SPC/BS. + 2006-01-01 TAKAHASHI Kaoru * wl-demo.el (wl-demo-copyright-notice): Add 2006. diff --git a/wl/wl-draft.el b/wl/wl-draft.el index 347657d..dbdfa3d 100644 --- a/wl/wl-draft.el +++ b/wl/wl-draft.el @@ -1275,7 +1275,7 @@ If FORCE-MSGID, insert message-id regardless of `wl-insert-message-id'." 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) @@ -1283,7 +1283,7 @@ This variable is valid when `wl-interactive-send' has non-nil value." (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)) @@ -1293,26 +1293,15 @@ This variable is valid when `wl-interactive-send' has non-nil value." (while t (discard-input) (message "Send current draft? ") - (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 ?) + (ignore-errors (scroll-down))) + (t + (throw 'done nil))))))) (quit nil)) (when (and wl-draft-send-confirm-with-preview (eq major-mode 'mime-view-mode))