From: Sean Whitton <spwhitton@spwhitton.name>
To: David Ponce <da_vid@orange.fr>
Cc: 55257@debbugs.gnu.org
Subject: bug#55257: 29.0.50; New command `scratch-buffer' inconsistent with startup
Date: Wed, 04 May 2022 07:58:44 -0700 [thread overview]
Message-ID: <87r159e44b.fsf@athena.silentflame.com> (raw)
In-Reply-To: <fe746780-c8e6-9d6b-772c-99f8ce3c2cf0@orange.fr>
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
next prev parent reply other threads:[~2022-05-04 14:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 8:31 bug#55257: 29.0.50; New command `scratch-buffer' inconsistent with startup David Ponce
2022-05-04 14:58 ` Sean Whitton [this message]
2022-05-10 1:50 ` Sean Whitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r159e44b.fsf@athena.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=55257@debbugs.gnu.org \
--cc=da_vid@orange.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).