From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Magnus Henoch Newsgroups: gmane.emacs.help Subject: Re: Building a database interface in Emacs Date: Wed, 20 Dec 2006 21:23:33 +0100 Message-ID: <87k60me2pm.fsf@freemail.hu> References: <1166629368.130069.193700@80g2000cwy.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166646532 6013 80.91.229.10 (20 Dec 2006 20:28:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2006 20:28:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 20 21:28:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gx83M-0004Pt-AS for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Dec 2006 21:28:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx83L-0006ky-Rj for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Dec 2006 15:28:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gx836-0006gR-JL for help-gnu-emacs@gnu.org; Wed, 20 Dec 2006 15:28:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gx835-0006fp-7l for help-gnu-emacs@gnu.org; Wed, 20 Dec 2006 15:28:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx835-0006fm-2H for help-gnu-emacs@gnu.org; Wed, 20 Dec 2006 15:28:23 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gx834-0002CH-HQ for help-gnu-emacs@gnu.org; Wed, 20 Dec 2006 15:28:22 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gx80I-00084J-Jq for help-gnu-emacs@gnu.org; Wed, 20 Dec 2006 21:25:31 +0100 Original-Received: from krollspell.cd.chalmers.se ([129.16.79.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Dec 2006 21:25:30 +0100 Original-Received: from mange by krollspell.cd.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Dec 2006 21:25:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: krollspell.cd.chalmers.se Mail-Copies-To: never Jabber-Id: legoscia@jabber.cd.chalmers.se User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (berkeley-unix) Cancel-Lock: sha1:65Yh/zYZG7rd9HBa5SHcpFmQCFI= 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:39782 Archived-At: Mathias Dahl writes: > (defvar foo-output nil) > > (defun foo () > (process-send-string process "blabla") > (setq foo-output nil) > (while (not foo-output) > (sleep-for 0 10)) > (use-result)) > > (defun foo-filter (proc string) > (setq foo-output string)) > > There must be a neater way to do this, right? Have you seen (info "(elisp) Transaction Queues") ? If I understand the interface of SQLPlus correctly, this is exactly what you want. You might find pg.el (interface for postgresql) interesting: http://www.online-marketwatch.com/pgel/pg.html Magnus