From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Help with coroutine.el Date: Sun, 12 Apr 2015 13:33:23 -0700 (PDT) Message-ID: <4de719d8-3c42-4835-8490-29833e1b920c@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1428870928 17234 80.91.229.3 (12 Apr 2015 20:35:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2015 20:35:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 22:35:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YhObB-0003rn-Tj for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2015 22:35:22 +0200 Original-Received: from localhost ([::1]:46212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhObA-0005o3-MM for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2015 16:35:20 -0400 X-Received: by 10.236.140.195 with SMTP id e43mr16014480yhj.48.1428870804475; Sun, 12 Apr 2015 13:33:24 -0700 (PDT) X-Received: by 10.50.25.199 with SMTP id e7mr135724igg.16.1428870804446; Sun, 12 Apr 2015 13:33:24 -0700 (PDT) Original-Path: usenet.stanford.edu!z60no1118998qgd.0!news-out.google.com!n7ni5964igk.0!nntp.google.com!l13no4501833iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=202.124.123.170; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 202.124.123.170 User-Agent: G2/1.0 Injection-Date: Sun, 12 Apr 2015 20:33:24 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211382 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103664 Archived-At: On Friday, April 10, 2015 at 2:25:01 PM UTC+12, Davin Pearson wrote: > Hi Emacs worshippers! > > I would like to use Michael Abraham Shulman's coroutine.el but there are no worked examples of the package in action. Here is the location of coroutine.el's source code: > > http://emacswiki.org/emacs/coroutine.el > > Could someone in this newsgroup with experience with coroutine.el give me some worked examples showing how to use the coroutine package? > > I tried emailing him at viritrilbia at users.sourceforge.net but got no response. > > I also tried visiting his website: > > http://www.ugcs.caltech.edu/~shulman/pub/Main/Software/coroutine.el > > but the site was down... something like this: (defun foo () (message "hello") (yield) (message "goodbye")) (foo) -> "hello" (foo) -> "goodbye" I don't know how you go about defining a coroutine function like foo.