diff options
| author | Stefan Monnier | 2009-08-30 14:23:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-30 14:23:21 +0000 |
| commit | 206d03872eaee5a1a1ad9d504ce3b6c3139114ef (patch) | |
| tree | c7b654aadab3fe267c7b07c997b49997216bacd5 | |
| parent | 844f778432f10657809d45d8381ccfd6daf39e04 (diff) | |
| download | emacs-206d03872eaee5a1a1ad9d504ce3b6c3139114ef.tar.gz emacs-206d03872eaee5a1a1ad9d504ce3b6c3139114ef.zip | |
(imap-send-command): Simplify.
(imap-wait-for-tag): point-max - buffer-size.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/net/imap.el | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 23e238b88b8..75c697ca72d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-08-30 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-08-30 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * net/imap.el (imap-send-command): Simplify. | ||
| 4 | (imap-wait-for-tag): point-max - buffer-size. | ||
| 5 | |||
| 3 | * net/ange-ftp.el (internal-ange-ftp-mode): Use define-derived-mode. | 6 | * net/ange-ftp.el (internal-ange-ftp-mode): Use define-derived-mode. |
| 4 | 7 | ||
| 5 | * emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value | 8 | * emacs-lisp/easy-mmode.el (define-minor-mode): Don't use symbol-value |
diff --git a/lisp/net/imap.el b/lisp/net/imap.el index 88e897fa32e..fb5dc2ac60c 100644 --- a/lisp/net/imap.el +++ b/lisp/net/imap.el | |||
| @@ -2004,10 +2004,11 @@ on failure." | |||
| 2004 | (imap-send-command-1 cmdstr) | 2004 | (imap-send-command-1 cmdstr) |
| 2005 | (setq cmdstr nil) | 2005 | (setq cmdstr nil) |
| 2006 | (unwind-protect | 2006 | (unwind-protect |
| 2007 | (if (not (eq (imap-wait-for-tag tag) 'INCOMPLETE)) | 2007 | (setq command |
| 2008 | (setq command nil) ;; abort command if no cont-req | 2008 | (if (not (eq (imap-wait-for-tag tag) 'INCOMPLETE)) |
| 2009 | (setq command (cons (funcall cmd imap-continuation) | 2009 | nil ;; abort command if no cont-req |
| 2010 | command))) | 2010 | (cons (funcall cmd imap-continuation) |
| 2011 | command))) | ||
| 2011 | (setq imap-continuation nil))) | 2012 | (setq imap-continuation nil))) |
| 2012 | (t | 2013 | (t |
| 2013 | (error "Unknown command type")))) | 2014 | (error "Unknown command type")))) |
| @@ -2021,7 +2022,7 @@ on failure." | |||
| 2021 | (while (and (null imap-continuation) | 2022 | (while (and (null imap-continuation) |
| 2022 | (memq (process-status imap-process) '(open run)) | 2023 | (memq (process-status imap-process) '(open run)) |
| 2023 | (< imap-reached-tag tag)) | 2024 | (< imap-reached-tag tag)) |
| 2024 | (let ((len (/ (point-max) 1024)) | 2025 | (let ((len (/ (buffer-size) 1024)) |
| 2025 | message-log-max) | 2026 | message-log-max) |
| 2026 | (unless (< len 10) | 2027 | (unless (< len 10) |
| 2027 | (setq imap-have-messaged t) | 2028 | (setq imap-have-messaged t) |