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: Tue, 10 Jul 2012 18:58:19 -0400 Message-ID: References: <87sjd8u5ub.fsf@yagnesh.org> <87394zzgqu.fsf@yagnesh.org> <87pq83xyww.fsf@yagnesh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341961238 10931 80.91.229.3 (10 Jul 2012 23:00:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 23:00:38 +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 Wed Jul 11 01:00:37 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 1SojQ4-0001E7-Lc for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2012 01:00:36 +0200 Original-Received: from localhost ([::1]:46455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SojQ3-0008JB-RP for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 19:00:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SojQ0-0008J6-Du for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 19:00:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SojPy-0006gz-Mf for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 19:00:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SojOB-0006LC-Au for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 18:58:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SojTN-0003ns-Pv for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2012 19:04:01 -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: Tue, 10 Jul 2012 23:04:01 +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.134196143114604 (code B ref 11868); Tue, 10 Jul 2012 23:04:01 +0000 Original-Received: (at 11868) by debbugs.gnu.org; 10 Jul 2012 23:03:51 +0000 Original-Received: from localhost ([127.0.0.1]:60893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SojTC-0003nU-Bx for submit@debbugs.gnu.org; Tue, 10 Jul 2012 19:03:50 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38930) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SojTB-0003nO-74 for 11868@debbugs.gnu.org; Tue, 10 Jul 2012 19:03:49 -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 q6AMwLaW011467; Tue, 10 Jul 2012 18:58:22 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 312AEAECB7; Tue, 10 Jul 2012 18:58:20 -0400 (EDT) In-Reply-To: <87pq83xyww.fsf@yagnesh.org> (Yagnesh Raghava Yakkala's message of "Wed, 11 Jul 2012 03:18:39 +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 RV4275=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4275> : streams <782352> : uri <1161965> 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:61800 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. Stefan > diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el > index ddedbdb..d6bb724 100644 > --- a/lisp/progmodes/python.el > +++ b/lisp/progmodes/python.el > @@ -1609,7 +1609,8 @@ the output." > (setq output-buffer (concat output-buffer string)) > ""))))) > (python-shell-send-string string process msg) > - (accept-process-output process) > + (with-local-quit > + (accept-process-output process)) > (replace-regexp-in-string > (if (> (length python-shell-prompt-output-regexp) 0) > (format "\n*%s$\\|^%s\\|\n$" > Thanks., > --=20 > =E0=B0=8E=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B1=8B =E0=B0=AE=E0=B0=B9=E0=B0=BE= =E0=B0=A8=E0=B1=81=E0=B0=AD=E0=B0=BE=E0=B0=B5=E0=B1=81=E0=B0=B2=E0=B1=81 = =E0=B0=85=E0=B0=82=E0=B0=A6=E0=B0=B0=E0=B0=BF=E0=B0=95=E0=B0=BF =E0=B0=B5= =E0=B0=82=E0=B0=A6=E0=B0=A8=E0=B0=AE=E0=B1=81=E0=B0=B2=E0=B1=81 > YYR