() Oleksandr Gavenko () Mon, 07 Jan 2013 15:35:01 +0200 But as input come from external process I need manually check for input end because parsing of incomplete input take error "args-out-of-range". I don't know how to resolve this issue. Also I don't see have can I split data into packets with "bindat" (Emacs send request and Python send response in a loop without dropping connection while returned data is valid). As solution - make 10 attempt with 1 sec delay and then report error - incomplete or invalid packet... See ‘accept-process-output’: (info "(elisp) Accepting Output") and ‘condition-case’: (info "(elisp) Handling Errors") I expect to find a way to get data validation for free (like XSD/RNC for XML). It depends on what you mean by "valid data" and "for free", i suppose. -- Thien-Thi Nguyen ..................................... GPG key: 4C807502 . NB: ttn at glug dot org is not me . . (and has not been since 2007 or so) . . ACCEPT NO SUBSTITUTES . ........... please send technical questions to mailing lists ...........