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

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

Re: The real difference between get-buffer-create and with-output-to-tem


From: Heime
Subject: Re: The real difference between get-buffer-create and with-output-to-temp-buffer
Date: Thu, 05 Sep 2024 11:27:02 +0000

On Thursday, September 5th, 2024 at 4:37 PM, tomas@tuxteam.de 
<tomas@tuxteam.de> wrote:

> On Wed, Sep 04, 2024 at 10:11:11PM +0000, alexbuhl via Users list for the GNU 
> Emacs text editor wrote:
> 
> > Is there a real difference between doing
> > 
> > (get-buffer-create "Questor")
> > 
> > and
> > 
> > (with-output-to-temp-buffer "Questor"
> 
> 
> With-output-to-temp-buffer calls get-buffer-create and redirects standard
> output to it.
> 
> If you want to do /other/ things with your new buffer, you'll need the
> first function.

Including text properties seems to make with-output-to-temp-buffer fail.
Are text properties part of those other things where I would need 
get-buffer-create ?
 
> Try looking up its docstring (C-h f with-output-to-temp-buffer), perhaps
> follow the link to its source. It's short and sweet.
> 
> Cheers
> --
> t



reply via email to

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