Subject: bug#55257: 29.0.50; New command `scratch-buffer' inconsistent with startup

From: Sean Whitton <[email-masked]>
Date: Wed, 04 May 2022 07:58:44 -0700

Hello,

On Wed 04 May 2022 at 10:31am +02, David Ponce wrote:

> Hello,
>
> The new command `scratch-buffer' does not re-create the *scratch* buffer
> like in startup.el.
>
> The below patch fix this:
> --- a/./installs/emacs/lisp/simple.el
> +++ b/./emacs.d/simple.el
> @@ -10221,7 +10221,8 @@ If the buffer doesn't exist, create it first."
>         (pop-to-buffer-same-window "*scratch*")
>       (pop-to-buffer-same-window (get-buffer-create "*scratch*"))
>       (when initial-scratch-message
> -      (insert initial-scratch-message))
> +      (insert (substitute-command-keys initial-scratch-message))
> +      (set-buffer-modified-p nil))
>       (funcall initial-major-mode)))

Thanks.  Let me try to fix this as part of factoring out the *scratch*
initialisation code, as discussed in an emacs-devel thread.

-- 
Sean Whitton