From: "Michael Droettboom" <mike@droettboom.com>
To: bug-gnu-emacs@gnu.org
Cc: fx@gnu.org
Subject: Re: python-complete-symbol hangs
Date: Fri, 7 Sep 2007 14:01:12 -0400 [thread overview]
Message-ID: <7b2578730709071101u6e114085gd9daec9bd64b5670@mail.gmail.com> (raw)
In-Reply-To: <7b2578730709071055s6a9a13a0y956c40de548e0dc8@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 520 bytes --]
I'm sorry. The patch in the last e-mail was backwards.
On 9/7/07, Michael Droettboom <mike@droettboom.com> wrote:
> 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/
>
>
--
Michael Droettboom
http://www.droettboom.com/
[-- Attachment #2: emacs.py.patch --]
[-- Type: application/octet-stream, Size: 671 bytes --]
*** /home/mdroe/builds/emacs-22.1/etc/emacs.py 2007-05-14 10:56:28.000000000 -0400
--- emacs.py 2007-09-07 13:38:29.000000000 -0400
***************
*** 176,182 ****
names.add('__class__')
names.union_update (class_members (object))
except: names = all_names (dict)
! except: return []
l = len(name)
print '_emacs_out (',
for n in names:
--- 176,184 ----
names.add('__class__')
names.union_update (class_members (object))
except: names = all_names (dict)
! except Exception, e:
! print '_emacs_out ()'
! return []
l = len(name)
print '_emacs_out (',
for n in names:
[-- Attachment #3: Type: text/plain, Size: 149 bytes --]
_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
next prev parent reply other threads:[~2007-09-07 18:01 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 [this message]
2007-09-08 10:05 ` Michael Droettboom
2007-09-08 11:52 ` Dave Love
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=7b2578730709071101u6e114085gd9daec9bd64b5670@mail.gmail.com \
--to=mike@droettboom.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=fx@gnu.org \
/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.