From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Fwd: python-complete-symbol hangs Date: Sun, 09 Sep 2007 23:03:19 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189394504 24571 80.91.229.12 (10 Sep 2007 03:21:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 03:21:44 +0000 (UTC) Cc: Adam Hupp , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 13:21:30 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUh35-0001EW-1t for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 13:03:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUZYi-0000CC-M9 for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2007 23:03:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUZYd-00007z-P7 for emacs-devel@gnu.org; Sun, 09 Sep 2007 23:03:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUZYc-00006q-VQ for emacs-devel@gnu.org; Sun, 09 Sep 2007 23:03:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUZYc-00006P-KJ for emacs-devel@gnu.org; Sun, 09 Sep 2007 23:03:26 -0400 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUZYX-00074L-Np; Sun, 09 Sep 2007 23:03:21 -0400 Original-Received: from pastel.home ([70.55.141.227]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070910030320.KPDN18413.tomts22-srv.bellnexxia.net@pastel.home>; Sun, 9 Sep 2007 23:03:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E7ADE8075; Sun, 9 Sep 2007 23:03:19 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sun\, 09 Sep 2007 21\:13\:09 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78399 Archived-At: > Would someone please DTRT and ack? > If the problem is in Emacs 22, the fix should be too. Adam Hupp posted a fix for it (and to add support for Python-3.0) back in June, but I haven't heard from him since. I thought we were waiting for his paperwork to install his patch. Maybe we could get a patch for this completion problem first (should be well within the "tiny patch" limits). Stefan > ------- Start of forwarded message ------- > X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY > autolearn=failed version=3.1.0 > 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= > Date: Fri, 7 Sep 2007 13:55:16 -0400 > From: "Michael Droettboom" > To: bug-gnu-emacs@gnu.org > MIME-Version: 1.0 > Content-Type: multipart/mixed; > boundary="----=_Part_1440_29375312.1189187716803" > Cc: fx@gnu.org > Subject: python-complete-symbol hangs > - ------=_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/ > Later: I'm sorry. The patch in the last e-mail was backwards. > - ------=_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-- > ------- End of forwarded message ------- > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel