From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uday S Reddy Newsgroups: gmane.emacs.bugs Subject: bug#5924: 23.1; accept-process-output switching current-buffer Date: Mon, 12 Apr 2010 20:39:10 +0100 Message-ID: <19395.30430.156000.1184@gargle.gargle.HOWL> References: <84mxxbknma.fsf@cs.bham.ac.uk> <19393.48894.735000.238546@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271102360 434 80.91.229.12 (12 Apr 2010 19:59:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 19:59:20 +0000 (UTC) Cc: Uday S Reddy , 5924@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 12 21:59:19 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1Pms-0000dA-PG for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 21:59:15 +0200 Original-Received: from localhost ([127.0.0.1]:59912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1Pms-0007MS-Bo for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Apr 2010 15:59:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1PmW-0007DV-Qa for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 15:58:52 -0400 Original-Received: from [140.186.70.92] (port=42810 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1PmV-0007CY-7U for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 15:58:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1PmT-0006IZ-8U for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 15:58:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44710) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1PmT-0006IT-4D for bug-gnu-emacs@gnu.org; Mon, 12 Apr 2010 15:58:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O1PUI-0001hM-Qv; Mon, 12 Apr 2010 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Uday S Reddy Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Apr 2010 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5924-submit@debbugs.gnu.org id=B5924.12711011736519 (code B ref 5924); Mon, 12 Apr 2010 19:40:02 +0000 Original-Received: (at 5924) by debbugs.gnu.org; 12 Apr 2010 19:39:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1PTp-0001h6-Be for submit@debbugs.gnu.org; Mon, 12 Apr 2010 15:39:33 -0400 Original-Received: from sun61.bham.ac.uk ([147.188.128.150]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1PTn-0001h1-FH for 5924@debbugs.gnu.org; Mon, 12 Apr 2010 15:39:32 -0400 Original-Received: from [147.188.128.127] (helo=bham.ac.uk) by sun61.bham.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1O1PTh-0004o3-NE; Mon, 12 Apr 2010 20:39:25 +0100 Original-Received: from mx1.cs.bham.ac.uk ([147.188.192.53]) by bham.ac.uk with esmtp (Exim 4.43) id 1O1PTh-00015U-DL; Mon, 12 Apr 2010 20:39:25 +0100 Original-Received: from gromit.cs.bham.ac.uk ([147.188.193.16] helo=MARUTI.cs.bham.ac.uk) by mx1.cs.bham.ac.uk with esmtp (Exim 4.51) id 1O1PTh-00036S-8D; Mon, 12 Apr 2010 20:39:25 +0100 In-Reply-To: X-Mailer: VM 8.2.0-devo under 22.2.1 (i386-mingw-nt5.1.2600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 12 Apr 2010 15:40:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36220 Archived-At: Stefan Monnier writes: > That's very odd: both the sentinel and the filter code are careful to > preserve the current_buffer when there's no sentinel or no filter set. I might also mention that the processes I am dealing with are created by open-network-stream. Perhaps this primitive is creating filters/sentinels which are creating interference. You can find my full code at the URL below if you want to check further. http://bazaar.launchpad.net/~vm/vm/trunk/annotate/head:/lisp/vm-imap.el The comment blocks give the signatures of the functions which you can use to perhaps locate the interesting bits. ---- I also realized lately that in the normal operation of VM, this problem doesn't show up much because it is rare to deal with multiple IMAP sessions concurrently. However, for the sake of development work, I have turned on tracing/logging, which is preserving the old process-buffers. So, this problem, which is luckily repeatable, occurs immediately after one IMAP session has been closed and another begun, because the IMAP server sends some random closing message to the old session while the new session is going on, and we get the interference that I have observed. Cheers, Uday