From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?5p2O5LiN5pi+?= Newsgroups: gmane.emacs.help Subject: Re: How can I restart *scratch* buffer? Date: Mon, 9 Sep 2019 04:21:17 +0800 Message-ID: References: <87v9uaogv5.fsf@mbork.pl> <87zhjfdjzc.fsf@fencepost.gnu.org> <875zm2mue8.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262585"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 08 22:22:04 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 1i73h8-00161n-PD for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 22:21:58 +0200 Original-Received: from localhost ([::1]:50414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i73h6-00044b-U3 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 16:21:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i73gw-00044S-UG for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 16:21:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i73gv-0007X6-Cg for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 16:21:46 -0400 Original-Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:42736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i73gv-0007Vl-34 for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 16:21:45 -0400 Original-Received: by mail-lf1-x12c.google.com with SMTP id u13so8841089lfm.9 for ; Sun, 08 Sep 2019 13:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NlY+Z3X62K6vYH1nvptaLzbiYeZ0hXmhGYgUMS0uibE=; b=jtS86L4anL+3IPONAsM8cpImGmlDQN3Gj840TcY1ngSzQYWBMJ9IXA/DOXCniFNCZ6 BBTG73hwILCwsKP6r3sKN/xH1Q/3ymbBnkkNSN/IpPboV1Ig5hc2VB2ZubZ9zGMP2Egv IF/d3jd8KosDGIArbJNRIEKm6tejmVLF+qauymTiQIunCfLlkmg4N8wUkVboxIYYUbcB GzUXT/rmpKgNN2kwfrAK7kol4PF5JpI6GkXzCrCrGFtxSiPYV4mm+mjCOQNlUB/80csr fZuiZjo6Nd2wNIMC99EmOr23qXjNff7DvmksYpUJ4CV5cmfAu/DUN0lmMTmVbgrZsfO6 IL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NlY+Z3X62K6vYH1nvptaLzbiYeZ0hXmhGYgUMS0uibE=; b=mmsBssC81/MFKFkncI8YpskwxEzKKZ1oiP9ETQnGsgjOsfKq4AqEeCeSG387fholB/ V8FQKwF5vw3pE/xrCLmu++C4rb5qV+lKAaRfpQFnlD9OCSszZwx6wxblWXiNLFheoUBK 9dNvcaYZXQqCnFpUgu5tjyAsQs0Xl1H6DMn/5zP78N0yyxlixfHhlFj73E2naj0/XBzy VipQmF8fFMEHVhRf8YIK1R7JWVdS+KQh4jebJsmQMCIz4gOgEAXK59xbcNtT1OJkxdIg Nrw0zzTPN78kKni2mznluECQn7vcWyS49y7ps2pso964q1A3ssilCa95sHb9B9g5mTE8 VTyQ== X-Gm-Message-State: APjAAAX4quT2I+kxGnIupGzIXvJRiJUZg9tTghQfjhZf4evqGEjCOcN0 BusTuiqch34LF65yrLHPVNnzftWfcRL3vr9SkjA= X-Google-Smtp-Source: APXvYqxEwuE0AOF9VTpnSv/JicF5KsyYuYwRMapcjLPQkJ0t5ERgygKdYq6AV/kZ58MmnQ8eE4DSDvOB2ChhjwxmRuU= X-Received: by 2002:a05:6512:24a:: with SMTP id b10mr13787562lfo.3.1567974103296; Sun, 08 Sep 2019 13:21:43 -0700 (PDT) In-Reply-To: <875zm2mue8.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12c X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:121481 Archived-At: Marcin Borkowski =E4=BA=8E2019=E5=B9=B49=E6=9C=889=E6=97= =A5=E5=91=A8=E4=B8=80 =E4=B8=8A=E5=8D=883:59=E5=86=99=E9=81=93=EF=BC=9A > > 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 > > Thank you for your reply. The problem has been solved in so many ways tha= t it is well solved. It's amazing how many people follow and respond to such a simple question. Emacser is friendly to rookies :)