Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <simon@josefsson.org>
Cc: Jake Colman <colman@ppllc.com>, ding@gnus.org
Subject: Re: Imap Problem
Date: 02 Jun 2001 23:05:20 +0200	[thread overview]
Message-ID: <ilu1yp24mpb.fsf@barbar.josefsson.org> (raw)
In-Reply-To: <m3zobqzm2a.fsf@c213.89.177.36.cm-upc.chello.se> (Mats Lidell's message of "02 Jun 2001 22:03:25 +0200")

Mats Lidell <Mats.Lidell@contactor.se> 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;
 }
 



  parent reply	other threads:[~2001-06-02 21:05 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31 23:55 Jake Colman
2001-06-01  6:41 ` Kai Großjohann
2001-06-01 15:52   ` Jake Colman
2001-06-01  7:00 ` Mats Lidell
2001-06-01 13:22   ` Jake Colman
2001-06-01 15:01     ` Kai Großjohann
2001-06-01 16:00       ` Jake Colman
2001-06-01 15:46     ` Mats Lidell
2001-06-01 16:09       ` Jake Colman
2001-06-01 18:04       ` Jake Colman
2001-06-01 23:24       ` Simon Josefsson
2001-06-02 20:03         ` Mats Lidell
2001-06-02 20:13           ` Mats Lidell
2001-06-02 21:05           ` Simon Josefsson [this message]
2001-06-04 15:21             ` Jake Colman
2001-06-05 18:10               ` Simon Josefsson
2001-06-04 16:06             ` Jake Colman
2001-06-04 16:18             ` Jake Colman
2001-06-05  8:34               ` Mats Lidell
2001-06-05 14:58                 ` Nevin Kapur
2001-06-05 15:20                   ` Jake Colman
2001-06-05 18:20                     ` Simon Josefsson
2001-06-05 19:06                       ` Jake Colman
2001-06-05 19:39                         ` Simon Josefsson
2001-06-05 23:20                           ` Jake Colman
2001-06-05 23:56                           ` Mats Lidell
2001-06-05 18:19               ` Simon Josefsson
2001-06-05 19:07                 ` Jake Colman
2004-10-07 11:36 imap problem walter.franzini-M4bTUdDEyImonA0d6jMUrA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu1yp24mpb.fsf@barbar.josefsson.org \
    --to=simon@josefsson.org \
    --cc=colman@ppllc.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).