[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: |
tomas |
Subject: |
Re: The real difference between get-buffer-create and with-output-to-temp-buffer |
Date: |
Thu, 5 Sep 2024 06:37:27 +0200 |
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.
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
signature.asc
Description: PGP signature