From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitriyi Paduchikh Newsgroups: gmane.emacs.devel Subject: Some issues with error conditions Date: Mon, 11 Jul 2005 20:34:50 +0600 Message-ID: <87wtnxjtrp.fsf@paduch.mail.ru> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1121094537 18794 80.91.229.2 (11 Jul 2005 15:08:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Jul 2005 15:08:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 11 17:08:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Drzt6-0006tG-2l for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 17:08:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Drzuf-0004yO-3u for ged-emacs-devel@m.gmane.org; Mon, 11 Jul 2005 11:09:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Drzsb-0004YL-89 for emacs-devel@gnu.org; Mon, 11 Jul 2005 11:07:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DrzsT-0004Se-Bm for emacs-devel@gnu.org; Mon, 11 Jul 2005 11:07:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DrzsP-0004Jd-Kf for emacs-devel@gnu.org; Mon, 11 Jul 2005 11:07:21 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Drzkb-0007Js-Lr for emacs-devel@gnu.org; Mon, 11 Jul 2005 10:59:17 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Drzc5-00046A-T5 for emacs-devel@gnu.org; Mon, 11 Jul 2005 16:50:29 +0200 Original-Received: from dialup35.uran.ru ([195.19.137.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2005 16:50:29 +0200 Original-Received: from paduch by dialup35.uran.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jul 2005 16:50:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialup35.uran.ru User-Agent: Gnus/5.110003 (No Gnus v0.3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40778 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40778 Hello, Evaluating expression (let ((process (start-process "false" nil "false"))) (sleep-for 1) (process-send-string process "Hi there!")) produces an error of most general kind: Debugger entered--Lisp error: (error "Process false not running") process-send-string(# "Hi there!") (let ((process ...)) (sleep-for 1) (process-send-string process "Hi there!")) eval((let ((process ...)) (sleep-for 1) (process-send-string process "Hi there!"))) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp) Shouldn't it be something like process-error instead? IMHO signalling general error in this situation makes catching of errors related with processes more difficult. And also end-of-file (end of file during parsing), invalid-read-syntax, scan-error (not sure about this) probably might be all in the category parse-error as such condition already exists. -- Dmitriyi Paduchikh