From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: with-temp-buffer Date: Sat, 30 May 2009 21:59:20 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1243737697 10786 80.91.229.12 (31 May 2009 02:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 May 2009 02:41:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 31 04:41:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MAazQ-0004o9-1W for geh-help-gnu-emacs@m.gmane.org; Sun, 31 May 2009 04:41:36 +0200 Original-Received: from localhost ([127.0.0.1]:45493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAazP-0007wf-4D for geh-help-gnu-emacs@m.gmane.org; Sat, 30 May 2009 22:41:35 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed2.telusplanet.net!newsfeed.telus.net!feeder.erje.net!feeder.motzarella.org!news.motzarella.org!news.eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.eternal-september.org U2FsdGVkX1/7LpgbWtH/o+YdNiyQGbHdAz65ua2hYfay5EneXMqBBiWk5k8zpOoLx6mbXRPbdImKsF9/zoOGxutM1vyV0FbeHiigecCMVsIsygi8WYWXTdjmVoTHrtZa7dIbeYAYxf4I+fm8E2OGJw== Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Sun, 31 May 2009 01:59:20 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+qyTmIq0haszBzy1Nw5gBhGwYVEKynn8U= Cancel-Lock: sha1:euwtlwZC9UWtjiY5238TBoe/9+8= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:169609 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64838 Archived-At: In article , martin rudalics 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 ***