GNU bug report logs - #12751
24.2.50; Inferior python mode hangs

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <forcer <at> forcix.cx>

Date: Sun, 28 Oct 2012 18:41:02 UTC

Severity: important

Merged with 12645, 12743

Found in version 24.2.50

Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12751 in the body.
You can then email your comments to 12751 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12751; Package emacs. (Sun, 28 Oct 2012 18:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jorgen Schaefer <forcer <at> forcix.cx>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Oct 2012 18:41:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jorgen Schaefer <forcer <at> forcix.cx>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.50; Inferior python mode hangs
Date: Sun, 28 Oct 2012 19:37:40 +0100
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




Forcibly Merged 12645 12743 12751. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 28 Oct 2012 18:55:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12751; Package emacs. (Sun, 28 Oct 2012 18:56:01 GMT) Full text and rfc822 format available.

Message #10 received at 12751 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jorgen Schaefer <forcer <at> forcix.cx>
Cc: 12751 <at> debbugs.gnu.org
Subject: Re: bug#12751: 24.2.50; Inferior python mode hangs
Date: Sun, 28 Oct 2012 14:53:32 -0400
Jorgen Schaefer wrote:

> 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.

Thanks; we know.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12645

This is an obvious regression introduced during a feature freeze.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12751; Package emacs. (Sun, 28 Oct 2012 19:53:02 GMT) Full text and rfc822 format available.

Message #13 received at 12751 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jorgen Schaefer <forcer <at> forcix.cx>
Cc: 12751 <at> debbugs.gnu.org
Subject: Re: bug#12751: 24.2.50; Inferior python mode hangs
Date: Sun, 28 Oct 2012 20:50:02 +0100
Jorgen Schaefer <forcer <at> forcix.cx> writes:

> The variable END isn't defined at all,

It's the second parameter of the syntax-propertize-function.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




bug closed, send any further explanations to 12645 <at> debbugs.gnu.org and Yagnesh Raghava Yakkala <hi <at> yagnesh.org> Request was from Fabián Ezequiel Gallina <fabian <at> anue.biz> to control <at> debbugs.gnu.org. (Fri, 02 Nov 2012 15:36:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 04 Dec 2012 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.