unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [occ@cs.bath.ac.uk: emacsclient --eval has slightly counterintuititve behaviour.]
@ 2006-03-04 13:38 Richard Stallman
  2006-03-04 16:09 ` Andreas Schwab
  2006-03-04 18:22 ` Andrea Russo
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Stallman @ 2006-03-04 13:38 UTC (permalink / raw)


I think this is a bug--emacsclient should at least terminate.  Would
someone like to fix it?

------- Start of forwarded message -------
From: occ <occ@cs.bath.ac.uk>
To: bug-gnu-emacs@gnu.org
Content-Type: text/plain
Date: Thu, 02 Mar 2006 00:39:15 +0000
Mime-Version: 1.0
Subject: emacsclient --eval  has slightly counterintuititve behaviour.

I've noticed something which may be a bug in the  -eval command in the
handling in the emacsclient/server. 

Summary: "emacsclient --eval" never returns if the passed elisp string
is invalid or fails. 

Version:  CVS (as of today) 

Example: 
emacsclient.emacs-snapshot --eval some_invalid_elisp

emacs *Messages* report: 
error in process filter: Symbol's value as variable is void:
some_invalid_elisp

(which is to be expected) 

emacsclient then sits there indefinitely trying to read from the server
socket. 

Expected result: at the very least emacsclient should return, at best
return with an error. 

Is there ever a way for an lisp expression invoked from emacsclient  to
write stuff back to emacsclient?  If not then having --eval -->
- --no-wait in emacsclient would be sufficient to solve the problem. 

(although i think making the server always respond with at least a empty
write when it is invoked without -nowait is the polite thing to do) 

owen 
- -- 
- ---------------------------------------------------------------------
owen cliffe (postgraduate)          Email: occ@cs.bath.ac.uk
Department of Computer Science        Web: http://www.cs.bath.ac.uk/~occ
Univ. Bath, Bath, England BA2 7AY      Tel: (+44) 1225 386183



_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

end of thread, other threads:[~2006-03-06  0:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 13:38 [occ@cs.bath.ac.uk: emacsclient --eval has slightly counterintuititve behaviour.] Richard Stallman
2006-03-04 16:09 ` Andreas Schwab
2006-03-06  0:48   ` Richard Stallman
2006-03-04 18:22 ` Andrea Russo

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