help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with coroutine.el


From: Davin Pearson
Subject: Re: Help with coroutine.el
Date: Sun, 12 Apr 2015 13:33:23 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]