help-gnu-emacs
[Top][All Lists]
Advanced

[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 12:31:11 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.9.0


On 11.11.19 12:16, Joost Kremers wrote:

On Mon, Nov 11 2019, Andreas Röhler wrote:
docstring of "with-current-buffer" says:

"Execute the forms in BODY with BUFFER-OR-NAME temporarily current."

However, seems the old buffer isn't stored, buffer-or-name specified here remain
current.

Could you be more specific? `save-current-buffer` works fine for me.

Also don't see inside the macro which way the old buffer should be restored:

That's done by `save-current-buffer`.



Turns out there an error in code, which set the wrong buffer   - "with-current-buffer" works fine and temporarily as expected.

Thanks all,

Andreas




reply via email to

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