unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Some issues with error conditions
@ 2005-07-11 14:34 Dmitriyi Paduchikh
  2005-07-11 16:57 ` Dmitriyi Paduchikh
  2005-07-11 21:14 ` Richard M. Stallman
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitriyi Paduchikh @ 2005-07-11 14:34 UTC (permalink / 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

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

end of thread, other threads:[~2005-07-11 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-11 14:34 Some issues with error conditions Dmitriyi Paduchikh
2005-07-11 16:57 ` Dmitriyi Paduchikh
2005-07-11 21:14 ` Richard M. Stallman

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