From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36558 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Imap Problem Date: 02 Jun 2001 23:05:20 +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 1035172123 9207 80.91.224.250 (21 Oct 2002 03:48:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:48:43 +0000 (UTC) Cc: Jake Colman , ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 16814 invoked from network); 2 Jun 2001 21:05:08 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 2 Jun 2001 21:05:08 -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 f52L5Fq06638; Sat, 2 Jun 2001 23:05:15 +0200 Original-To: Mats Lidell In-Reply-To: (Mats Lidell's message of "02 Jun 2001 22:03:25 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) Original-Lines: 45 Xref: main.gmane.org gmane.emacs.gnus.general:36558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36558 Mats Lidell writes: > But the patch gave a hint. If the current buffer is changed without us > knowing it why not set the buffer back again. Simon tried it but why > not set it just before calling imap-parse-greeting so we know we are > looking at the right thing. This lead to the following patch. Thanks! I modified all streams similarily and committed it. > If you feel adventurous you might want to look into the affairs of > process-status. ;-) I think it's actually `accept-process-output' that changes the buffer -- this is why the buffer is correct the first time but changes after the while loop body has run once. The code Anyway it's an XEmacs bug, but I'm not able to reproduce it so it's hard to debug. Maybe you could test the following patch with the old Gnus imap.el and see if it does anything. Index: event-stream.c =================================================================== RCS file: /usr/CVSroot/XEmacs/xemacs/src/event-stream.c,v retrieving revision 1.55 diff -u -u -w -r1.55 event-stream.c --- event-stream.c 2001/05/31 12:45:36 1.55 +++ event-stream.c 2001/06/02 21:03:58 @@ -2526,7 +2526,7 @@ int timeout_id = -1; int timeout_enabled = 0; int done = 0; - struct buffer *old_buffer = current_buffer; + /* struct buffer *old_buffer = current_buffer;*/ int count; /* We preserve the current buffer but nothing else. If a focus @@ -2637,7 +2637,7 @@ Fdeallocate_event (event); UNGCPRO; - current_buffer = old_buffer; + /* current_buffer = old_buffer;*/ return result; }