From: Dmitriyi Paduchikh <paduch@mail.ru>
Subject: Some issues with error conditions
Date: Mon, 11 Jul 2005 20:34:50 +0600 [thread overview]
Message-ID: <87wtnxjtrp.fsf@paduch.mail.ru> (raw)
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(#<process false> "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
next reply other threads:[~2005-07-11 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-11 14:34 Dmitriyi Paduchikh [this message]
2005-07-11 16:57 ` Some issues with error conditions Dmitriyi Paduchikh
2005-07-11 21:14 ` Richard M. Stallman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wtnxjtrp.fsf@paduch.mail.ru \
--to=paduch@mail.ru \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.