unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yagnesh Raghava Yakkala <hi@yagnesh.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 11868@debbugs.gnu.org
Subject: bug#11868: 24.1.50; [python-mode] Blocking call to accept-process-output with quit inhibited!! (message buffer)
Date: Wed, 11 Jul 2012 03:18:39 +0900	[thread overview]
Message-ID: <87pq83xyww.fsf@yagnesh.org> (raw)
In-Reply-To: <87394zzgqu.fsf@yagnesh.org> (Yagnesh Raghava Yakkala's message of "Wed, 11 Jul 2012 02:08:09 +0900")

[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]


Hello Glenn,

Yagnesh Raghava Yakkala <hi@yagnesh.org> writes:

> Hello Glenn,
>
> Glenn Morris <rgm@gnu.org> writes:
>
>> Yagnesh Raghava Yakkala wrote:
>>
>>> I see this message when ever I try to use completion feature in python-mode.
>>
>> Which mode for python? The one that comes with Emacs?
>> ("python-mode.el" does not.)
>
> I meant "python.el" shipped with emacs trunk. sorry for not being clear.
>
>>
>>> http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00199.html
>>>
>>> I couldn't understand what was discussed in that thread.
>>
>> http://lists.gnu.org/archive/html/emacs-devel/2010-09/msg00201.html
>>
>> seems fairly clear. python mode should consider adding a with-local-quit
>> somewhere in its completion code.
>
> I could suppress the warning by wrapping function "with-local-quit". But It
> seems python completion function is interacting with inferior process through
> the comint mode, does it mean problem is in comint.? 

may be not,

with some trail and error, the following patch is suppressing the warning.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: python.el.diff --]
[-- Type: text/x-diff, Size: 576 bytes --]

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$"

[-- Attachment #3: Type: text/plain, Size: 122 bytes --]



Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు
YYR

  reply	other threads:[~2012-07-10 18:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-03 17:12 bug#11868: 24.1.50; [python-mode] Blocking call to accept-process-output with quit inhibited!! (message buffer) Yagnesh Raghava Yakkala
2012-07-06 17:39 ` Glenn Morris
2012-07-10 17:08   ` Yagnesh Raghava Yakkala
2012-07-10 18:18     ` Yagnesh Raghava Yakkala [this message]
2012-07-10 22:58       ` Stefan Monnier
2012-07-12 17:52         ` Yagnesh Raghava Yakkala
2012-07-13  0:17           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pq83xyww.fsf@yagnesh.org \
    --to=hi@yagnesh.org \
    --cc=11868@debbugs.gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).