From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.bugs Subject: bug#12751: 24.2.50; Inferior python mode hangs Date: Sun, 28 Oct 2012 19:37:40 +0100 Message-ID: <87bofmo32j.fsf@orion.kollektiv-hamburg.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351449527 4398 80.91.229.3 (28 Oct 2012 18:38:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2012 18:38:47 +0000 (UTC) To: 12751@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 28 19:38:56 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 1TSXl6-00007R-P0 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 19:38:52 +0100 Original-Received: from localhost ([::1]:46008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXky-00040c-N6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Oct 2012 14:38:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXkw-00040X-GO for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:38:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSXkv-0001U6-EM for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:38:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXkv-0001U2-Ap for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:38:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TSXnC-0004cA-Ll for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jorgen Schaefer Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Oct 2012 18:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12751 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135144962617692 (code B ref -1); Sun, 28 Oct 2012 18:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2012 18:40:26 +0000 Original-Received: from localhost ([127.0.0.1]:36878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSXmb-0004bJ-Sz for submit@debbugs.gnu.org; Sun, 28 Oct 2012 14:40:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58846) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TSXmT-0004b0-DN for submit@debbugs.gnu.org; Sun, 28 Oct 2012 14:40:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSXkA-0001Qz-La for submit@debbugs.gnu.org; Sun, 28 Oct 2012 14:37:55 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXkA-0001Qv-Iy for submit@debbugs.gnu.org; Sun, 28 Oct 2012 14:37:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXk9-0003z3-Pf for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:37:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSXk8-0001Qi-Lj for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:37:53 -0400 Original-Received: from istinn.electusmatari.com ([83.169.37.145]:57778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSXk8-0001Q4-GF for bug-gnu-emacs@gnu.org; Sun, 28 Oct 2012 14:37:52 -0400 Original-Received: from orion.kollektiv-hamburg.de (hmbg-5f77292d.pool.mediaWays.net [95.119.41.45]) by istinn.electusmatari.com (Postfix) with ESMTPSA id B1D02D10037E for ; Sun, 28 Oct 2012 19:37:46 +0100 (CET) Original-Received: by orion.kollektiv-hamburg.de (Postfix, from userid 1000) id AD12E32C087; Sun, 28 Oct 2012 19:37:40 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:66146 Archived-At: Hello! In current Emacs from bzr, running M-x run-python hangs Emacs until the user hits C-g, repeatedly, every time there is input to the subprocess. This results in the following message (from *Messages*): Error during redisplay: (jit-lock-function 1) signaled (quit) Error during redisplay: (jit-lock-function 256) signaled (quit) Error during redisplay: (jit-lock-function 274) signaled (quit) Error during redisplay: (jit-lock-function 275) signaled (quit) Quit [3 times] QuitError during redisplay: (jit-lock-function 284) signaled (quit) Error during redisplay: (jit-lock-function 285) signaled (quit) .... The problem seems to be in `inferior-python-mode'. Setting `python-shell-enable-font-lock' to nil fixes it immediately. More specifically, in this piece of code: (set (make-local-variable 'syntax-propertize-function) (syntax-propertize-rules (comint-prompt-regexp (0 (ignore (put-text-property comint-last-input-start end 'syntax-table python-shell-output-syntax-table) (font-lock-unfontify-region comint-last-input-start end)))) ((python-rx string-delimiter) (0 (ignore (and (not (eq (get-text-property start 'field) 'output)) (python-syntax-stringify))))) )) The (comint-promot-regexp ...) clause seems to be causing the problem. Commenting that out makes the subprocess run fine. I have to admit I have no idea what that's supposed to do anyhow. The variable END isn't defined at all, and `ignore' will make it all nil anyhow. But maybe I'm missing something important. Regards, Jorgen