GNU bug report logs -
#23430
25.0.93; iter-defun does not support special form save-current-buffer
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 4 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.