all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#23430: 25.0.93; iter-defun does not support special form save-current-buffer
@ 2016-05-03  1:31 Dmitry Gutov
  2016-05-05 22:46 ` Dmitry Gutov
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Gutov @ 2016-05-03  1:31 UTC (permalink / raw)
  To: 23430

Example:

;; -*- lexical-binding: t -*-

(iter-defun (str buf)
  (with-current-buffer buf
    (goto-char (point-min)))
  (let (done)
    (while (not done)
      (with-current-buffer buf
        (if (search-forward str)
            (iter-yield (match-beginning 0))
          (setq done 0))))))

...upon evaluation, says: "special form (save-current-buffer (set-buffer
buf) (if (search-forward str) (cps-internal-yield (match-beginning 0))
(setq cps-binding-done- 0))) incorrect or not supported".

The above example seemed to me to be the prime use case for generator.el
(e.g. lazily parsing output from an asynchronous process), so this
is disappointing.

In GNU Emacs 25.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-30 built on axl
Repository revision: ffe701cb07cfb3584c4e4894976f0c9487d02c59
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Ubuntu 16.04 LTS





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-08-22  0:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03  1:31 bug#23430: 25.0.93; iter-defun does not support special form save-current-buffer Dmitry Gutov
2016-05-05 22:46 ` Dmitry Gutov
2016-05-06 23:25   ` Michael Heerdegen
2016-05-06 23:30     ` Dmitry Gutov
2020-08-12  2:41   ` Stefan Kangas
2020-08-12 10:06     ` Dmitry Gutov
2020-08-16 13:33       ` Michael Heerdegen
2020-08-22  0:18         ` Dmitry Gutov
2020-08-18 12:08       ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.