From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36552 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Imap Problem Date: 02 Jun 2001 01:24:42 +0200 Message-ID: References: <76y9rdaxai.fsf@newjersey.ppllc.com> <76zobsxrkj.fsf@newjersey.ppllc.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172118 9186 80.91.224.250 (21 Oct 2002 03:48:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:48:38 +0000 (UTC) Cc: Jake Colman , ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 604 invoked from network); 1 Jun 2001 23:24:32 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 1 Jun 2001 23:24:32 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f51NOeq01076; Sat, 2 Jun 2001 01:24:41 +0200 Original-To: Mats Lidell In-Reply-To: (Mats Lidell's message of "01 Jun 2001 17:46:53 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) Original-Lines: 73 Xref: main.gmane.org gmane.emacs.gnus.general:36552 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36552 Mats Lidell writes: > OK. To be complete. Here is how it looks when it failes. Thanks (to both of you) for your very detailed bug report! A guess would be that this is the same bug as nntp.el has been including a workaround for: (nntp-accept-response) ;; On some Emacs versions the preceding function has a ;; tendency to change the buffer. Perhaps. It's quite ;; difficult to reproduce, because it only seems to happen ;; once in a blue moon. It might be `accept-process-output' causing this. Does the attached patch do anything useful? Index: imap.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/imap.el,v retrieving revision 6.6 diff -u -u -w -r6.6 imap.el --- imap.el 2001/04/16 00:00:45 6.6 +++ imap.el 2001/05/31 23:21:52 @@ -480,6 +480,7 @@ "^\\(Authenticat.*\\)" nil t)) (setq response (match-string 1))))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log) @@ -539,6 +540,7 @@ "^\\(Authenticat.*\\)" nil t) (setq response (match-string 1))))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log) @@ -586,6 +588,7 @@ (forward-line -1) (not (imap-parse-greeting))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log) @@ -616,6 +619,7 @@ (goto-char (point-min)) (not (imap-parse-greeting))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log) @@ -652,6 +656,7 @@ (goto-char (point-min)) (not (imap-parse-greeting))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log) @@ -689,6 +694,7 @@ (goto-char (point-min)) (not (imap-parse-greeting))) (accept-process-output process 1) + (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (sit-for 1)) (and imap-log (with-current-buffer (get-buffer-create imap-log)