[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: with-current-buffer

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, wrote:
On Mon, Nov 11, 2019 at 09:31:08AM +0100, Andreas Röhler wrote:

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?

-- tomás

Hi Tomás,

thanks. So I have to write something like

        (with-current-buffer buffer

Expected a behavior like with-temp-buffer.

As the wording "temporarily" seems to indicate.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]