Chong Yidong <[EMAIL PROTECTED]> writes: > Basically, python-send-receive (called by python-eldoc-function) is > waiting forever for input to arrive. It expects to receive a string > "_emacs_out" from the emacs.eargs Python function (defined in > etc/emacs.py) in the inferior python process. > > Apparently if the exec fails, this function neglects to print > '_emacs_out'. This can be verified using > > I don't know enough Python to fix this. Can someone help?
After some trial and error, I propose the following patch. I have verified that it makes the reported bug go away. Does anyone disagree with it? *** emacs/etc/emacs.py.~1.8.~ 2006-08-21 00:19:17.000000000 -0400 --- emacs/etc/emacs.py 2006-10-21 00:55:36.000000000 -0400 *************** *** 59,71 **** return if inspect.ismethod (func): func = func.im_func ! if not inspect.isfunction (func): return (args, varargs, varkw, defaults) = inspect.getargspec (func) # No space between name and arglist for consistency with builtins. print '_emacs_out', \ func.__name__ + inspect.formatargspec (args, varargs, varkw, defaults) ! except: pass def all_names (object): """Return (an approximation to) a list of all possible attribute --- 59,74 ---- return if inspect.ismethod (func): func = func.im_func ! if not inspect.isfunction (func): ! print '_emacs_out ()' ! return (args, varargs, varkw, defaults) = inspect.getargspec (func) # No space between name and arglist for consistency with builtins. print '_emacs_out', \ func.__name__ + inspect.formatargspec (args, varargs, varkw, defaults) ! except: ! print "_emacs_out ()" def all_names (object): """Return (an approximation to) a list of all possible attribute _______________________________________________ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug