Mercurial > emacs
diff lisp/net/imap.el @ 104734:714ab1b8092b
(imap-send-command): Simplify.
(imap-wait-for-tag): point-max - buffer-size.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 30 Aug 2009 14:23:21 +0000 |
parents | d775b84fdd71 |
children | 2e22af528b76 |
line wrap: on
line diff
--- a/lisp/net/imap.el Sun Aug 30 14:21:34 2009 +0000 +++ b/lisp/net/imap.el Sun Aug 30 14:23:21 2009 +0000 @@ -2004,10 +2004,11 @@ (imap-send-command-1 cmdstr) (setq cmdstr nil) (unwind-protect - (if (not (eq (imap-wait-for-tag tag) 'INCOMPLETE)) - (setq command nil) ;; abort command if no cont-req - (setq command (cons (funcall cmd imap-continuation) - command))) + (setq command + (if (not (eq (imap-wait-for-tag tag) 'INCOMPLETE)) + nil ;; abort command if no cont-req + (cons (funcall cmd imap-continuation) + command))) (setq imap-continuation nil))) (t (error "Unknown command type")))) @@ -2021,7 +2022,7 @@ (while (and (null imap-continuation) (memq (process-status imap-process) '(open run)) (< imap-reached-tag tag)) - (let ((len (/ (point-max) 1024)) + (let ((len (/ (buffer-size) 1024)) message-log-max) (unless (< len 10) (setq imap-have-messaged t)