* bug#12751: 24.2.50; Inferior python mode hangs
@ 2012-10-28 18:37 Jorgen Schaefer
2012-10-28 18:53 ` Glenn Morris
2012-10-28 19:50 ` Andreas Schwab
0 siblings, 2 replies; 3+ messages in thread
From: Jorgen Schaefer @ 2012-10-28 18:37 UTC (permalink / raw)
To: 12751
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#12751: 24.2.50; Inferior python mode hangs
2012-10-28 18:37 bug#12751: 24.2.50; Inferior python mode hangs Jorgen Schaefer
@ 2012-10-28 18:53 ` Glenn Morris
2012-10-28 19:50 ` Andreas Schwab
1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-10-28 18:53 UTC (permalink / raw)
To: Jorgen Schaefer; +Cc: 12751
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#12751: 24.2.50; Inferior python mode hangs
2012-10-28 18:37 bug#12751: 24.2.50; Inferior python mode hangs Jorgen Schaefer
2012-10-28 18:53 ` Glenn Morris
@ 2012-10-28 19:50 ` Andreas Schwab
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2012-10-28 19:50 UTC (permalink / raw)
To: Jorgen Schaefer; +Cc: 12751
Jorgen Schaefer <forcer@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@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-28 19:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-28 18:37 bug#12751: 24.2.50; Inferior python mode hangs Jorgen Schaefer
2012-10-28 18:53 ` Glenn Morris
2012-10-28 19:50 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).