From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11868: 24.1.50; [python-mode] Blocking call to accept-process-output with quit inhibited!! (message buffer) Date: Thu, 12 Jul 2012 20:17:42 -0400 Message-ID: References: <87sjd8u5ub.fsf@yagnesh.org> <87394zzgqu.fsf@yagnesh.org> <87pq83xyww.fsf@yagnesh.org> <87vchs27gd.fsf@yagnesh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342138713 19691 80.91.229.3 (13 Jul 2012 00:18:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 00:18:33 +0000 (UTC) Cc: 11868@debbugs.gnu.org To: Yagnesh Raghava Yakkala Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 13 02:18:33 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SpTaa-0000dG-Qj for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jul 2012 02:18:32 +0200 Original-Received: from localhost ([::1]:38617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpTaZ-0000Jy-W1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jul 2012 20:18:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpTaW-0000Jf-Rw for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2012 20:18:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpTaV-0002vS-R7 for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2012 20:18:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpTaV-0002vO-Nb for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2012 20:18:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SpTfu-0002ht-4b for bug-gnu-emacs@gnu.org; Thu, 12 Jul 2012 20:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jul 2012 00:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11868 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 11868-submit@debbugs.gnu.org id=B11868.134213900610362 (code B ref 11868); Fri, 13 Jul 2012 00:24:02 +0000 Original-Received: (at 11868) by debbugs.gnu.org; 13 Jul 2012 00:23:26 +0000 Original-Received: from localhost ([127.0.0.1]:36985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpTfJ-0002h3-T7 for submit@debbugs.gnu.org; Thu, 12 Jul 2012 20:23:26 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:40028) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpTfH-0002gw-Vi for 11868@debbugs.gnu.org; Thu, 12 Jul 2012 20:23:24 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6D0Hh8c000731; Thu, 12 Jul 2012 20:17:44 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 54216AE3BA; Thu, 12 Jul 2012 20:17:42 -0400 (EDT) In-Reply-To: <87vchs27gd.fsf@yagnesh.org> (Yagnesh Raghava Yakkala's message of "Fri, 13 Jul 2012 02:52:02 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4277=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4277> : streams <783554> : uri <1163818> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61865 Archived-At: >>> with some trail and error, the following patch is suppressing the warning. >> >> Thank you for your attempt at finding a patch that works. The problem >> is that the warning is there to indicate that there is a "fundamental" >> problem, and your patch mostly hides the problem. Maybe it actually >> solves it, but maybe not. >> It depends on whether the surrounding code is prepared to deal with >> accept-process-output being interrupted by quit. >> IOW, we have to either find or create a place where the code is prepared >> to handle an interruption by quit. > I could understand what you are saying, but have no clue what to do > further. It would be great if you can guide me to the next step to > resolve the issue. Maybe python.el's maintainer will be better placed for that. But basically, what is needed is to think first about what should happen if the user hits C-g in the middle of this accept-process-output: what can the user mean by that (there might be various cases), what should the resulting behavior be, and then how to change the code to get that result. E.g. a typical problematic issues is the state of the process: the process will presumably keep running, so what will happen next time python.el wants to send it more commands? I don't know enough about python.el's code to be able to answer. Stefan