From xemacs-m  Thu Feb 27 07:19:52 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id HAA27710
	for <xemacs-beta@xemacs.org>; Thu, 27 Feb 1997 07:19:50 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id OAA21027; Thu, 27 Feb 1997 14:19:49 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: Re: [comp.emacs] Re: calling a unix prog from elisp
References: <kigrai2xvke.fsf@jagor.srce.hr> <199702271301.OAA09860@daedalus.tnt.uni-hannover.de>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 27 Feb 1997 14:19:48 +0100
In-Reply-To: Heiko Muenkel's message of Thu, 27 Feb 1997 14:01:27 +0100
Message-ID: <kighgiyxu6j.fsf@jagor.srce.hr>
Lines: 26
X-Mailer: Gnus v5.4.15/XEmacs 19.14

Heiko Muenkel <muenkel@tnt.uni-hannover.de> writes:

>     Hrv> How about adding `with-temp-buffer' to prim/somewhere?  I
>     Hrv> have evaluated it, and
> What's the difference to with-output-to-temp-buffer or
> with-output-to-temp-buffer-in-window?

I think `with-output-to-temp-buffer' wants to show the buffer, while
`with-temp-buffer' doesn't.  Compare:

with-temp-buffer: (&rest forms)
  -- a Lisp macro.
Create a temporary buffer, and evaluate FORMS there like `progn'.


with-output-to-temp-buffer: a built-in function.
Bind `standard-output' to buffer BUFNAME, eval BODY, then show that buffer.
The buffer is cleared out initially, and marked as unmodified when done.
All output done by BODY is inserted in that buffer by default.
The buffer is displayed in another window, but not selected.
[...]

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"Psychos _do not_ explode when sunlight hits them."

