From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Re: comint or start-process Date: Thu, 10 Dec 2009 13:00:39 +0100 Organization: GNU's Not UNIX! Message-ID: <200912101200.nBAC0dWn001131@fed.local> References: <200912092329.nB9NTfJn013100@fed.local> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1260447048 6264 80.91.229.12 (10 Dec 2009 12:10:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2009 12:10:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 10 13:10:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NIhqy-0003Xn-VA for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 13:10:41 +0100 Original-Received: from localhost ([127.0.0.1]:59995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIhqy-0007H5-L2 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Dec 2009 07:10:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIhgU-0003h8-JN for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 06:59:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIhgP-0003dT-Kx for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 06:59:49 -0500 Original-Received: from [199.232.76.173] (port=38057 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIhgO-0003dI-TY for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 06:59:45 -0500 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:50278) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIhgO-0001Hj-3h for help-gnu-emacs@gnu.org; Thu, 10 Dec 2009 06:59:44 -0500 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id 90C7BC5742; Thu, 10 Dec 2009 06:59:43 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 10 Dec 2009 06:59:43 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:message-id:from:to:cc:in-reply-to:subject:reply-to:references; s=smtpout; bh=ssZNKGPQeqtTZVMw7KRy1dNZI3Y=; b=AfSbogv+ZHR/m7LMb2soT6SSXL+jRUZzyHAT7nfzb2+A+SlUDkfMGVYExeOpuC6zcJvTFopmn6Rl/7YWhe7juYF5h0OhFCo7OCquTPcGob64sZ9ZgvQXvNyPjXzGPAwZY/+zYX6PlkPYuy8bYjuqJNLtSS7aBRNzywJ396An8Bo= X-Sasl-enc: /lzyUtumaQqT8ftab5FtMv0cbjAzL4NXmY6ff0siANy9 1260446383 Original-Received: from fed.local (cha51-2-82-244-211-40.fbx.proxad.net [82.244.211.40]) by mail.messagingengine.com (Postfix) with ESMTPSA id 13AE3208B2; Thu, 10 Dec 2009 06:59:42 -0500 (EST) Original-Received: from fed.local (fed.local [127.0.0.1]) by fed.local (8.14.3/8.14.3) with ESMTP id nBAC0df3001135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Dec 2009 13:00:39 +0100 Original-Received: (from xavier@localhost) by fed.local (8.14.3/8.14.3/Submit) id nBAC0dWn001131; Thu, 10 Dec 2009 13:00:39 +0100 X-Authentication-Warning: fed.local: xavier set sender to xma@gnu.org using -f In-reply-to: (message from Kevin Rodgers on Wed, 09 Dec 2009 20:00:35 -0700) User-Agent: Rmail/23.1.1 Emacs/23.1.1 (gnu/linux) Jabber-ID: xavier@maillard.im X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70551 Archived-At: > My plans are quite simple: > > - connect to my db > - execute queries > - parse the output to retrieve my data > - disconnect > > The retrieved data will be used later in my mode. > > Questions: do I really need to do something with start-process > and friends or do you think I can hack around comint (and/or > sql-sqlite) ? I'd start with sql-sqlite: you should be able to get something working pretty quickly, and if it turns out to have features that get in the way you'll be familiar enough with it to drop down a level to comint. Ok. I have tried to get something but failed: (defun sqlite-connect (db) (let ((sql-database db)) (sql-connect-sqlite))) (sqlite-connect "/tmp/foo.db") (with-current-buffer (process-buffer (get-process "SQL"))) (sql-send-string "select * from foo;")) => No SQL process started. M-x list-process: Proc Status Buffer Tty Command ---- ------ ------ --- ------- SQL run *SQL* /dev/pts/2 sqlite /tmp/foot.db What is the problem ? Thank you Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org