From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: How can I restart *scratch* buffer? Date: Sun, 08 Sep 2019 21:59:27 +0200 Message-ID: <875zm2mue8.fsf@mbork.pl> References: <87v9uaogv5.fsf@mbork.pl> <87zhjfdjzc.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174222"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 08 21:59:52 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 1i73Lj-000jDE-UW for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 21:59:52 +0200 Original-Received: from localhost ([::1]:50356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i73Li-0001KE-Sa for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 15:59:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59754) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i73LU-0001K8-BS for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 15:59:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i73LT-000679-Ck for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 15:59:36 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:41332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i73LT-000670-5n for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 15:59:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 83D25E652E; Sun, 8 Sep 2019 21:59:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UFnpTrvFO9-B; Sun, 8 Sep 2019 21:59:29 +0200 (CEST) Original-Received: from localhost (jeden09-dwa27.echostar.pl [213.156.109.227]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 78EB2E62B2; Sun, 8 Sep 2019 21:59:29 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 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:121479 Archived-At: On 2019-09-08, at 15:25, Stefan Monnier wrote: >> Instead, try using: >> startup--get-buffer-create-scratch > > Note that this is new in Emacs-27. Also, the 2 dashes indicate that > this is an internal function. It may disappear or be renamed or do > something completely different in a later version. Yes, I warned about it in my email. Would it make sense to provide a UI for resetting the *scratch* buffer, i.e., exposing `startup--get-buffer-create-scratch' (perhaps as something like `switch-to-scratch-buffer' or so)? Best, -- Marcin Borkowski http://mbork.pl