From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Bringing back a scratch buffer ? Date: Wed, 4 Dec 2019 16:14:16 +0100 Message-ID: <20191204151416.GA30361@tuxteam.de> References: <20191204095517.7e8921fe@mistral> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7JfCtLOvnd9MIVvH" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8806"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 16:14:41 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icWMR-00025A-SB for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 16:14:40 +0100 Original-Received: from localhost ([::1]:40272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icWMQ-00015C-Be for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 10:14:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50325) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icWMD-000153-GJ for help-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:14:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icWMC-0004e2-7V for help-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:14:25 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38158) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icWMB-0004Y0-OH for help-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:14:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=FPXBXch3SaoOk4GGiVVEpWPa7XD11qn6zqwM7dt01Jo=; b=D3Zjp9f8BPYFsw80ZDOtMs9p+xhBhamxQVuvyhKHiqNDqz4uCUzdRE8OYIl09g4hLH1HWttPAJxoaOwqPuXiK8uWqr1QNd7Z2sROqPzOor/2kmnKlmums0Fp2cdRQJOIN872XCRpxnLbRKhBCPz1aet9a8TdhE/mpu66utqXdHQ3pbRclw5AVmoy+0dncMUckk2UOaDja1UiGXkx1IEilb1d0knVJmkVPTntO8H/fMgRHMYUJFhoGMMmmIeE4yP7E1P/iOLQxH6+z0honSDKhKdXDW/n93D1XtFBtHKmXYYG0VOo86MGifvZfoW0tJPeWRLYfJ21meGWRTKWwiE4cg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1icWM4-0007z3-7M for help-gnu-emacs@gnu.org; Wed, 04 Dec 2019 16:14:16 +0100 Content-Disposition: inline In-Reply-To: <20191204095517.7e8921fe@mistral> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122001 Archived-At: --7JfCtLOvnd9MIVvH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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* ). It won't be in Lisp interaction mode, though. Cheers -- t --7JfCtLOvnd9MIVvH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl3nzUgACgkQBcgs9XrR2kaULwCeIKBMaSWq/h+6tVVeGiCMXGGm vNsAniim/fqsEhr0zB1U1gQJQzlb9bMs =eiET -----END PGP SIGNATURE----- --7JfCtLOvnd9MIVvH--