1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

(imap-send-command): Simplify.

(imap-wait-for-tag): point-max - buffer-size.
This commit is contained in:
Stefan Monnier 2009-08-30 14:23:21 +00:00
parent 844f778432
commit 206d03872e
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2009-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
* net/imap.el (imap-send-command): Simplify.
(imap-wait-for-tag): point-max - buffer-size.
* net/ange-ftp.el (internal-ange-ftp-mode): Use define-derived-mode.
* emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value

View File

@ -2004,10 +2004,11 @@ on failure."
(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 @@ on failure."
(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)