From: occ <occ@cs.bath.ac.uk>
Subject: emacsclient --eval has slightly counterintuititve behaviour.
Date: Thu, 02 Mar 2006 00:39:15 +0000 [thread overview]
Message-ID: <1141259955.7722.100.camel@localhost.localdomain> (raw)
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
reply other threads:[~2006-03-02 0:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1141259955.7722.100.camel@localhost.localdomain \
--to=occ@cs.bath.ac.uk \
/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 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).