From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.help Subject: Re: How can I restart *scratch* buffer? Date: Sun, 08 Sep 2019 08:56:55 -0400 Message-ID: <87zhjfdjzc.fsf@fencepost.gnu.org> 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="130962"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: =?utf-8?B?5p2O5LiN5pi+?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 08 15:06:10 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 1i6wtO-000Xuu-AR for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 15:06:10 +0200 Original-Received: from localhost ([::1]:48736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6wtN-0006ys-5Q for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Sep 2019 09:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45969) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6wkV-0005HT-VQ for help-gnu-emacs@gnu.org; Sun, 08 Sep 2019 08:57:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i6wkV-0001Ie-IL; Sun, 08 Sep 2019 08:56:59 -0400 Original-Received: from [2607:fea8:3b80:184:6033:9a7d:2b38:1725] (port=39224 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i6wkU-00034o-MM; Sun, 08 Sep 2019 08:56:59 -0400 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:121476 Archived-At: Hi, =E6=9D=8E=E4=B8=8D=E6=98=BE writes: > 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 [...] >> How about M-: (startup--get-buffer-create-scratch) RET? [...] > > > 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) There=E2=80=99s a typo; notice that there needs to be two dashes between =E2=80=9Cstartup=E2=80=9D and =E2=80=9Cget=E2=80=9D. You seem to have used: startup-get-buffer-create-scratch Instead, try using: startup--get-buffer-create-scratch Hope that helps.