From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.bugs Subject: Re: python-complete-symbol hangs Date: Sat, 08 Sep 2007 12:52:38 +0100 Message-ID: References: <7b2578730709071055s6a9a13a0y956c40de548e0dc8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189256760 21375 80.91.229.12 (8 Sep 2007 13:06:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 13:06:00 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Michael Droettboom" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 15:06:00 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 1IU00d-0005Yp-O6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 15:06:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU00b-0006ec-9T for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 09:05:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITyrk-0003nv-5H for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 07:52:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITyri-0003lT-L5 for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 07:52:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITyri-0003l9-EN for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 07:52:42 -0400 Original-Received: from probity.mcc.ac.uk ([130.88.200.94]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ITyrh-00087Z-PN for bug-gnu-emacs@gnu.org; Sat, 08 Sep 2007 07:52:42 -0400 Original-Received: from rankine.its.manchester.ac.uk ([130.88.25.196]) by probity.mcc.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1ITyrf-000J8h-4D; Sat, 08 Sep 2007 12:52:39 +0100 Original-Received: from marvin.smb.man.ac.uk ([130.88.234.141]:54669) by rankine.its.manchester.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.43) id 1ITyrf-0000DE-0N; Sat, 08 Sep 2007 12:52:39 +0100 Original-Received: from fx by marvin.smb.man.ac.uk with local (Exim 4.63) (envelope-from ) id 1ITyre-0002BC-J7; Sat, 08 Sep 2007 12:52:38 +0100 X-Draft-From: ("nnml:Misc" 1847) In-Reply-To: <7b2578730709071055s6a9a13a0y956c40de548e0dc8@mail.gmail.com> (Michael Droettboom's message of "Fri\, 7 Sep 2007 13\:55\:16 -0400") User-Agent: Gnus/5.1008 (Gnus v5.10.8) X-Authenticated-Sender: David Love from marvin.smb.man.ac.uk [130.88.234.141]:54669 X-Authenticated-From: David.Love@manchester.ac.uk X-UoM: Scanned by the University Mail System. See http://www.itservices.manchester.ac.uk/email/filtering/information/ for details. X-Detected-Kernel: FreeBSD 6.x (1) X-Mailman-Approved-At: Sat, 08 Sep 2007 09:05:55 -0400 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:16507 Archived-At: "Michael Droettboom" writes: > 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. Can you supply a test case? First of all, how does it raise an exception? If you have to kill it like that, it's surely a basic Emacs bug, regardless of any python.el bugs. > The attached patch fixes this by always outputting a response. That shouldn't be necessary. I think there were several things broken or not fixed in the one shipped with Emacs 22, and that one sounds familiar. Sorry I don't have a working version since I didn't keep up with the incompatibilities introduced by Emacs 22. http://www.loveshack.ukfsn.org/emacs/python-21.el behaves as I expect -- providing a null completion list -- if emacs.complete raises an exception.