GNU bug report logs - #11868
24.1.50; [python-mode] Blocking call to accept-process-output with quit inhibited!! (message buffer)

Previous Next

Package: emacs;

Reported by: Yagnesh Raghava Yakkala <hi <at> yagnesh.org>

Date: Fri, 6 Jul 2012 17:18:01 UTC

Severity: normal

Tags: moreinfo

Found in version 24.1.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Yagnesh Raghava Yakkala <hi <at> yagnesh.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 11868 <at> debbugs.gnu.org
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
> 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.,
> -- 
> ఎందరో మహానుభావులు అందరికి వందనములు
> YYR




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

Previous Next


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