|
From: | Andreas Röhler |
Subject: | Re: with-current-buffer |
Date: | Mon, 11 Nov 2019 11:58:43 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 11.11.19 10:04, tomas@tuxteam.de wrote:
On Mon, Nov 11, 2019 at 09:31:08AM +0100, Andreas Röhler wrote:Hi, docstring of "with-current-buffer" says: "Execute the forms in BODY with BUFFER-OR-NAME current." However, seems the old buffer isn't stored, buffer-or-name specified here remain current. Also don't see inside the macro which way the old buffer should be restored:This is the job of save-current-buffer, no? Cheers -- tomás
Hi Tomás, thanks. So I have to write something like (save-current-buffer (with-current-buffer buffer Expected a behavior like with-temp-buffer. As the wording "temporarily" seems to indicate. Cheers, Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |