all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* python-complete-symbol hangs
@ 2007-09-07 17:55 Michael Droettboom
  2007-09-07 18:01 ` Michael Droettboom
  2007-09-08 11:52 ` Dave Love
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Droettboom @ 2007-09-07 17:55 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: fx

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

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/

[-- Attachment #2: emacs.py.patch --]
[-- Type: application/octet-stream, Size: 671 bytes --]

*** emacs.py	2007-09-07 13:38:29.000000000 -0400
--- /home/mdroe/builds/emacs-22.1/etc/emacs.py	2007-05-14 10:56:28.000000000 -0400
***************
*** 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:
--- 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:

[-- 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

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

end of thread, other threads:[~2007-09-10 12:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-09-08 15:08   ` Michael Droettboom
     [not found]     ` <E1IUCIn-0000Fi-Su@fencepost.gnu.org>
2007-09-10 12:50       ` Michael Droettboom

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.