From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: occ Newsgroups: gmane.emacs.bugs Subject: emacsclient --eval has slightly counterintuititve behaviour. Date: Thu, 02 Mar 2006 00:39:15 +0000 Message-ID: <1141259955.7722.100.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141412659 9765 80.91.229.2 (3 Mar 2006 19:04:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Mar 2006 19:04:19 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 03 20:04:18 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FFFZI-0003Dj-IA for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 20:04:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FFFZG-0002k1-G2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2006 14:03:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FEsgX-0000vD-67 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2006 13:37:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FEsgT-0000uG-TG for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2006 13:37:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FEhzh-0003Mc-Di for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2006 02:13:01 -0500 Original-Received: from [138.38.32.20] (helo=kelly.bath.ac.uk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FEbsH-0005QU-MB for bug-gnu-emacs@gnu.org; Wed, 01 Mar 2006 19:40:57 -0500 Original-Received: from [87.115.229.199] (helo=[192.168.1.2]) by kelly.bath.ac.uk with esmtpsa (SSLv3:RC4-MD5:128) id 1FEbqm-0004Sa-5N for bug-gnu-emacs@gnu.org (return-path ); Thu, 02 Mar 2006 00:39:24 +0000 Original-To: bug-gnu-emacs@gnu.org X-Mailer: Evolution 2.4.1 X-kerberosV-authenticator: cspocc@BATH.AC.UK X-Scanner: 3e62e1cb693ba81f91df4f0babb19a544b2e923d X-Mailman-Approved-At: Thu, 02 Mar 2006 17:24:05 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14898 Archived-At: 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