From: okazaki Date: Sun, 30 Mar 2008 03:33:15 +0000 (+0000) Subject: (elmo-imap4-send-command): Combine `process-send-string' calls. X-Git-Tag: wl-2_15_6-fixes~17 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=b8302a42445da97cd763664944c7e0589fd49860;p=elisp%2Fwanderlust.git (elmo-imap4-send-command): Combine `process-send-string' calls. --- diff --git a/elmo/elmo-imap4.el b/elmo/elmo-imap4.el index 6bd10f5..f318675 100644 --- a/elmo/elmo-imap4.el +++ b/elmo/elmo-imap4.el @@ -331,14 +331,14 @@ Returns a TAG string which is assigned to the COMMAND." ;; rfc2088 (progn (setq cmdstr (concat cmdstr - (format "{%d+}" (nth 2 token)))) + (format "{%d+}" (nth 2 token)) + "\r\n")) (process-send-string process cmdstr) - (process-send-string process "\r\n") (setq cmdstr nil)) (setq cmdstr (concat cmdstr - (format "{%d}" (nth 2 token)))) + (format "{%d}" (nth 2 token)) + "\r\n")) (process-send-string process cmdstr) - (process-send-string process "\r\n") (setq cmdstr nil) (elmo-imap4-accept-continue-req session)) (cond ((stringp (nth 1 token)) @@ -356,9 +356,7 @@ Returns a TAG string which is assigned to the COMMAND." (t (error "Invalid argument"))) (setq command-args (cdr command-args))) - (if cmdstr - (process-send-string process cmdstr)) - (process-send-string process "\r\n") + (process-send-string process (concat cmdstr "\r\n")) tag))) (defun elmo-imap4-send-string (session string)