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: Stefan Monnier
Subject: Re: Help with coroutine.el
Date: Sun, 12 Apr 2015 17:03:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> something like this:

> (defun foo ()
>    (message "hello")
>    (yield)
>    (message "goodbye"))

> (foo) -> "hello"
> (foo) -> "goodbye"

Ah, Emacs-25 has such a thing, in file generator.el.


        Stefan




reply via email to

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