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: Sun, 8 Sep 2019 20:29:55 +0800 Message-ID: References: <87v9uaogv5.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="247679"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 08 14:31:12 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 1i6wLU-0012FN-D9 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 14:31:08 +0200 Original-Received: from localhost ([::1]:48542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6wLT-0007No-69 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 08:31:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6wKm-0007Nd-Ly for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 08:30:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6wKh-0006JL-Hj for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 08:30:24 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:42451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i6wKh-0006J1-6v for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 08:30:19 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id y23so10036107lje.9 for ; Sun, 08 Sep 2019 05:30:19 -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=91e+XAARayyOfCnQq+1bmbizkeJbIaUlMcyIgVYjbKc=; b=SnIv8I8TnmkPjE2E609s87gEoqR4GnEmoJk6lQRnntKpmeU9/67rUvsIBEMWxXTtTm EBHEx37WOhl09/iUhCZIlVB+XcmgiUMhL9oGfd+b+JMJwlSIWkiipCWejgn53oJWcbXM LC7k65TwjRPOIBaUnnBYXGm+PZ2PhnBg1lAIPvHw2Ixvc7C9htDbIJUifz0QCxx/6pz1 rXYsSleMd3uy0g50Al4KAWpf4lBmV+N6BHGx3UtgEOTwuRFBK3+MeDjdxM7XiNlaFLgi MOYGkOaa5Q2aons76PimqTNhy/wG0HUXq2w4LZf5ZAKUTXOxp3kZpO73aK5GTdAmw3qf V45w== 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=91e+XAARayyOfCnQq+1bmbizkeJbIaUlMcyIgVYjbKc=; b=IYpjbM4tbnr1v+agsZqmGUYPJKv1+gh+tGvk8F+j4GNhsVCdOIuTJF+nRr7V989bXT XaKDGnGsvgQpnhmyuMZzGKkAnryZxS+EL/fD1KbPRs7uRcaIXPH++1QlqrhscMwDY5zb 8BRfFRnRZ7WsnfvIiYPVOmcv5SOUVAIV8c6Poi3kdQfaOtnjUR7it+GxlftcQvYObbIq XV5zjwh1XdpZ9TJ34GsvMIbimyy3VDBL7qK8o3O2M267fXJC11MjZ0Dm4EooauZ4uBp+ pHy519fWWSMN/lJFSGunEGJUbzi35RJZo16m79Uodq6NGjFKmGtrRCdoKJMQwuwzfz9c 64fw== X-Gm-Message-State: APjAAAWWQrG8SvAYHCLpaCpxcN0eJWBRkK9b5r21ypbK0YfUhVPQlIVi GKxMpJEwxCMSv2p/UK9E7hq2BPSX5c64ycnUsvHHIgpRncGBEw== X-Google-Smtp-Source: APXvYqxNXxJB7iYtgvndCEl7CzU29x/hQB25jXtV9hxFFnQDrdKjRHDumR4pZrLq1TTsf/3qbww9H9hSUmTei4puqj8= X-Received: by 2002:a2e:9555:: with SMTP id t21mr12021830ljh.93.1567945818037; Sun, 08 Sep 2019 05:30:18 -0700 (PDT) In-Reply-To: <87v9uaogv5.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::232 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:121475 Archived-At: Marcin Borkowski =E4=BA=8E2019=E5=B9=B49=E6=9C=882=E6=97= =A5=E5=91=A8=E4=B8=80 =E4=B8=8B=E5=8D=8811:30=E5=86=99=E9=81=93=EF=BC=9A > > On 2019-09-02, at 14:10, =E6=9D=8E=E6=B7=BC wrote= : > > > Sometimes I accidentally turn off the *scratch* buffer while I'm using > > emacs. How can I restart *scratch* buffer without restarting emacs? > > How about M-: (startup--get-buffer-create-scratch) RET? > > M-: stuff is necessary because this is a non-interactive function. It > is also internal (because it contains two dashes) and undocumented > (because it does not contain a docstring). Use at your own risk. > > Hth, > > -- > Marcin Borkowski > http://mbork.pl I tried to do this, but *backtrace* says: Debugger entered--Lisp error: (void-function startup-get-buffer-create-scratch) (startup-get-buffer-create-scratch) eval((startup-get-buffer-create-scratch) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp)