From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Creating modem process and receiving output of AT commands Date: Mon, 01 Mar 2010 13:37:11 +0100 Message-ID: <877hpwcj60.fsf@ambire.localdomain> References: <87635g73wc.fsf@porzhiz.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267448375 5826 80.91.229.12 (1 Mar 2010 12:59:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 12:59:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?B?55m944GE54aK?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 01 13:59:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm5DZ-0005IY-QC for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 13:59:26 +0100 Original-Received: from localhost ([127.0.0.1]:32872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5DY-0005NH-Dj for ged-emacs-devel@m.gmane.org; Mon, 01 Mar 2010 07:59:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm5DS-0005Me-FJ for emacs-devel@gnu.org; Mon, 01 Mar 2010 07:59:18 -0500 Original-Received: from [140.186.70.92] (port=42051 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5DR-0005Lf-2Q for emacs-devel@gnu.org; Mon, 01 Mar 2010 07:59:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm5DP-0005n1-A0 for emacs-devel@gnu.org; Mon, 01 Mar 2010 07:59:15 -0500 Original-Received: from host4-68-dynamic.40-79-r.retail.telecomitalia.it ([79.40.68.4]:48793 helo=ambire.localdomain) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm5DO-0005mr-WB for emacs-devel@gnu.org; Mon, 01 Mar 2010 07:59:15 -0500 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1Nm4s4-0003IJ-10; Mon, 01 Mar 2010 13:37:12 +0100 In-Reply-To: <87635g73wc.fsf@porzhiz.org> (=?utf-8?B?IueZveOBhOeGiiIncw==?= message of "Mon, 01 Mar 2010 13:05:55 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:121491 Archived-At: () =E7=99=BD=E3=81=84=E7=86=8A () Mon, 01 Mar 2010 13:05:55 +0300 (defun nokia-n900-send-output-keep (process output) (setq nokia-n900-send-output-kept (cons output nokia-n900-send-output-k= ept))) Probably you want to add output to the tail, not the head. But running (testos), it doesn't even get to sending the first `at\r'. What does that mean, precisely? Does Emacs signal an error? I think the reason is [...]. It's possible that \r is being mangled. See `process-coding-system-alist' (and friends). You should make sure the subprocess sees what Emacs is purporting to send, first, before worrying about whether or not Emacs sees what the subprocess outputs. thi