From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Bringing back a scratch buffer ?
Date: Wed, 4 Dec 2019 16:14:16 +0100 [thread overview]
Message-ID: <20191204151416.GA30361@tuxteam.de> (raw)
In-Reply-To: <20191204095517.7e8921fe@mistral>
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
On Wed, Dec 04, 2019 at 09:55:17AM -0500, jonetsu wrote:
> Simple question: If the scratch buffer gets inadvertently deleted, is it
> possible to bring it back ?
Depends on what you mean by "bring back" :-)
There /is/ an internal function startup--get-buffer-create-scratch which
creates a *scratch* buffer and puts it in elisp interaction mode. The
nice and warm welcome text won't be there, though.
Coming from the other side, you can just have a buffer named *scratch*
created by just "changing into it" (i.e. C-x b *scratch* <enter>). It
won't be in Lisp interaction mode, though.
Cheers
-- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2019-12-04 15:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-04 14:55 Bringing back a scratch buffer ? jonetsu
2019-12-04 15:14 ` tomas [this message]
2019-12-04 15:18 ` jonetsu
2019-12-04 16:16 ` Michael Heerdegen
2019-12-04 16:20 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191204151416.GA30361@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).