|
From: | Dmitry Gutov |
Subject: | bug#23430: 25.0.93; iter-defun does not support special form save-current-buffer |
Date: | Sat, 7 May 2016 02:30:12 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1 |
On 05/07/2016 02:25 AM, Michael Heerdegen wrote:
FWIW it's not crystal clear to me what the semantics of a supported `with-current-buffer' would be. In particular: would `iter-yield' "jump out" of the `with-current-buffer' and restore the previous buffer, and would a restart of the generator change the current buffer again?
I think so, yeah. In the "rewritten" version of code, with-current-buffer would surround the function's body, so each time the function is called, with-current-buffer would be applied.
The value of point may or may not be saved and restored (this question also seems problematic, admittedly).
[Prev in Thread] | Current Thread | [Next in Thread] |