unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [mike@droettboom.com: python-complete-symbol hangs]
@ 2007-09-10  1:13 Richard Stallman
  2007-09-10  3:03 ` Fwd: python-complete-symbol hangs Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2007-09-10  1:13 UTC (permalink / raw)
  To: emacs-devel

Would someone please DTRT and ack?
If the problem is in Emacs 22, the fix should be too.

------- 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" <mike@droettboom.com>
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 -------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-11  3:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10  1:13 [mike@droettboom.com: python-complete-symbol hangs] Richard Stallman
2007-09-10  3:03 ` Fwd: python-complete-symbol hangs Stefan Monnier
2007-09-10 23:54   ` Richard Stallman
2007-09-11  3:22     ` Adam Hupp

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).