From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Michael Droettboom" Newsgroups: gmane.emacs.bugs Subject: python-complete-symbol hangs Date: Fri, 7 Sep 2007 13:55:16 -0400 Message-ID: <7b2578730709071055s6a9a13a0y956c40de548e0dc8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1440_29375312.1189187716803" X-Trace: sea.gmane.org 1189187729 16692 80.91.229.12 (7 Sep 2007 17:55:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 17:55:29 +0000 (UTC) Cc: fx@gnu.org To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 07 19:55:29 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITi3C-0000y8-OF for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2007 19:55:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITi3B-00077E-4A for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2007 13:55:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITi39-00074i-2D for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2007 13:55:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITi37-00073Y-O3 for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2007 13:55:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITi37-00073M-Fz for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2007 13:55:21 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ITi36-0005PG-LJ for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2007 13:55:20 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.191]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITi35-0001EB-CL for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2007 13:55:19 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so441529rvf for ; Fri, 07 Sep 2007 10:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; bh=3DniKysXFRemkllZ9d4k8DysqMJ6zj8x2Jz8OT6luUg=; b=ed78nnKTglsxDA0+QUuijDMmR+OzfSwIU0GgOmeC9EsaiVeBMOyAZ32jVFZhNzWzJDlmZzHKR7j+9AMwNDrYz+TVynp/tNlKtKvdZ9mJfwhEDSgOE/TdKScbrD3EygBUAYdolX0aPrpReaj3G+8eKIVeeuESP5T+LGnWxvvoJkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:x-google-sender-auth; b=jjWywi08LG0lLdaL4b6zaXnSEp55qg4XOEK66CCMFmnq8vUuFPzjEvTx09uEMr6YGjX24WDvIFaTTCAis4Esr47mWjL2qov0XIyWvKjyBuXiVn3eQ2DxhilF6v2QEx0M+uFrqRXdntyKfXQ78cF0AFqOUSMDb1iL6CrkXRUshLM= Original-Received: by 10.141.19.16 with SMTP id w16mr809310rvi.1189187716794; Fri, 07 Sep 2007 10:55:16 -0700 (PDT) Original-Received: by 10.141.84.18 with HTTP; Fri, 7 Sep 2007 10:55:16 -0700 (PDT) X-Google-Sender-Auth: 4bbbe26c613b85b0 X-detected-kernel: Linux 2.6 (newer, 2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16498 Archived-At: ------=_Part_1440_29375312.1189187716803 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline python-complete-symbol works by calling "complete()" in etc/emacs.py. If that Python function fails (i.e. raises an exception), emacs will hang waiting for a response, with no recourse but to kill the emacs process. The attached patch fixes this by always outputting a response. -- Michael Droettboom http://www.droettboom.com/ ------=_Part_1440_29375312.1189187716803 Content-Type: application/octet-stream; name="emacs.py.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="emacs.py.patch" X-Attachment-Id: f_f6azmr1s KioqIGVtYWNzLnB5CTIwMDctMDktMDcgMTM6Mzg6MjkuMDAwMDAwMDAwIC0wNDAwCi0tLSAvaG9t ZS9tZHJvZS9idWlsZHMvZW1hY3MtMjIuMS9ldGMvZW1hY3MucHkJMjAwNy0wNS0xNCAxMDo1Njoy OC4wMDAwMDAwMDAgLTA0MDAKKioqKioqKioqKioqKioqCioqKiAxNzYsMTg0ICoqKioKICAJCSAg ICBuYW1lcy5hZGQoJ19fY2xhc3NfXycpCiAgCQkgICAgbmFtZXMudW5pb25fdXBkYXRlIChjbGFz c19tZW1iZXJzIChvYmplY3QpKQogIAkgICAgZXhjZXB0OiBuYW1lcyA9IGFsbF9uYW1lcyAoZGlj dCkKISAgICAgZXhjZXB0IEV4Y2VwdGlvbiwgZToKISAgICAgICAgIHByaW50ICdfZW1hY3Nfb3V0 ICgpJwohICAgICAgICAgcmV0dXJuIFtdCiAgICAgIGwgPSBsZW4obmFtZSkKICAgICAgcHJpbnQg J19lbWFjc19vdXQgKCcsCiAgICAgIGZvciBuIGluIG5hbWVzOgotLS0gMTc2LDE4MiAtLS0tCiAg CQkgICAgbmFtZXMuYWRkKCdfX2NsYXNzX18nKQogIAkJICAgIG5hbWVzLnVuaW9uX3VwZGF0ZSAo Y2xhc3NfbWVtYmVycyAob2JqZWN0KSkKICAJICAgIGV4Y2VwdDogbmFtZXMgPSBhbGxfbmFtZXMg KGRpY3QpCiEgICAgIGV4Y2VwdDogcmV0dXJuIFtdCiAgICAgIGwgPSBsZW4obmFtZSkKICAgICAg cHJpbnQgJ19lbWFjc19vdXQgKCcsCiAgICAgIGZvciBuIGluIG5hbWVzOgo= ------=_Part_1440_29375312.1189187716803 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------=_Part_1440_29375312.1189187716803--