unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Help with coroutine.el
Date: Sun, 12 Apr 2015 17:03:48 -0400	[thread overview]
Message-ID: <jwvbnitgiua.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 4de719d8-3c42-4835-8490-29833e1b920c@googlegroups.com

> 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




  parent reply	other threads:[~2015-04-12 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10  2:24 Help with coroutine.el Davin Pearson
2015-04-10  2:34 ` Emanuel Berg
2015-04-12 20:33 ` Davin Pearson
2015-04-12 20:50   ` Pascal J. Bourguignon
2015-04-12 21:03   ` Stefan Monnier [this message]
     [not found]   ` <mailman.525.1428872650.904.help-gnu-emacs@gnu.org>
2015-04-16  1:19     ` Davin Pearson
2015-04-16  1:47       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvbnitgiua.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).