all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Love <fx@gnu.org>
To: "Michael Droettboom" <mike@droettboom.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: python-complete-symbol hangs
Date: Sat, 08 Sep 2007 12:52:38 +0100	[thread overview]
Message-ID: <msfy1p2x2x.fsf@marvin.smb.man.ac.uk> (raw)
In-Reply-To: <7b2578730709071055s6a9a13a0y956c40de548e0dc8@mail.gmail.com> (Michael Droettboom's message of "Fri\, 7 Sep 2007 13\:55\:16 -0400")

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

  parent reply	other threads:[~2007-09-08 11:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 17:55 python-complete-symbol hangs Michael Droettboom
2007-09-07 18:01 ` Michael Droettboom
2007-09-08 10:05   ` Michael Droettboom
2007-09-08 11:52 ` Dave Love [this message]
2007-09-08 15:08   ` Michael Droettboom
     [not found]     ` <E1IUCIn-0000Fi-Su@fencepost.gnu.org>
2007-09-10 12:50       ` Michael Droettboom

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

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

  git send-email \
    --in-reply-to=msfy1p2x2x.fsf@marvin.smb.man.ac.uk \
    --to=fx@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=mike@droettboom.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.