From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "aartist" Newsgroups: gmane.emacs.help Subject: Re: Building a database interface in Emacs Date: 20 Dec 2006 08:59:57 -0800 Organization: http://groups.google.com Message-ID: <1166633997.177980.214250@80g2000cwy.googlegroups.com> 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 1166636495 784 80.91.229.10 (20 Dec 2006 17:41:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2006 17:41:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 20 18:41:35 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 1Gx5RZ-0001RW-4I for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Dec 2006 18:41:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gx5RY-0006AS-KP for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Dec 2006 12:41:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!80g2000cwy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 216.27.249.220 Original-X-Trace: posting.google.com 1166634003 25147 127.0.0.1 (20 Dec 2006 17:00:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 20 Dec 2006 17:00:03 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 80g2000cwy.googlegroups.com; posting-host=216.27.249.220; posting-account=bnXY7g0AAADX1jdCvJidxQUPIJp2L58F Original-Xref: shelby.stanford.edu gnu.emacs.help:144172 Original-To: help-gnu-emacs@gnu.org 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:39775 Archived-At: SQL : count(*) for number of rows may help. Mathias Dahl wrote: > Mathias Dahl writes: > > > I can attach a process filter function to the process but I don't > > understand how to "pause" my main code until my filter function has > > been called. Well, I came up with a hack, that seems really ugly: > > > > (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)) > > And I just discovered that even the above won't work because I receive > data in chunks. I guess the question I am asking is: how to I know > when there is no more output? Maybe I need to look for signs in the > output itself?