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

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

Re: with-temp-buffer


From: Barry Margolin
Subject: Re: with-temp-buffer
Date: Sat, 30 May 2009 21:59:20 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <mailman.8131.1243677151.31690.help-gnu-emacs@gnu.org>,
 martin rudalics <rudalics@gmx.at> wrote:

>  > Is it possible to call a function which calls with-temp-buffer inside a 
>  > buffer
>  > created with-temp-buffer?
> 
> Sure.  Try evaluating the following form:
> 
> (with-temp-buffer
>    (with-temp-buffer
>      (message "%s" (buffer-list))))

It works because each instance of with-temp-buffer uses a *different* 
temporary buffer.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

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