Subject: Re: master f2d2fe6fc8: server-execute: Initialize the *scratch* buffer

From: Juri Linkov <[email-masked]>
Date: Fri, 06 May 2022 10:41:06 +0300

> Here's my fix.  Haven't quite finished testing each and every call site
> but seemed worth posting it for comments.

As found in https://debbugs.gnu.org/9054#295
there is another place that needs get-initial-buffer-create
in switch-to-buffer:

  if (strcmp (SSDATA (BVAR (XBUFFER (buffer), name)), "*scratch*") == 0)
    function = find_symbol_value (intern ("initial-major-mode"));