]> git.eshelyaron.com Git - emacs.git/commit
Factor out *scratch* initialization
authorSean Whitton <spwhitton@spwhitton.name>
Thu, 5 May 2022 20:03:06 +0000 (13:03 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Tue, 10 May 2022 01:49:13 +0000 (18:49 -0700)
commit054062060e9f57fd037578378c23ad9ec294edac
treec9eaec1c5c4ce19e6be0c0c1000d0fb58bebd1b1
parent54ab2b36740166d379c713e843870310f1ccf7a1
Factor out *scratch* initialization

* lisp/simple.el (get-scratch-buffer-create): New function, factored
out of scratch-buffer, and additionally clearing the modification flag
and calling substitute-command-keys (bug#55257).
(scratch-buffer):
* lisp/server.el (server-execute):
* lisp/startup.el (normal-no-mouse-startup-screen, command-line-1):
* lisp/window.el (last-buffer, window-normalize-buffer-to-switch-to):
* src/buffer.c (Fother_buffer, other_buffer_safely): Use it.
(syms_of_buffer): Add Qget_scratch_buffer_create.
* lisp/startup.el (startup--get-buffer-create-scratch): Delete
now-unused function.
* doc/lispref/os.texi (Summary: Sequence of Actions at Startup):
* NEWS (Incompatible changes in Emacs 29.1): Document the change.
doc/lispref/os.texi
etc/NEWS
lisp/server.el
lisp/simple.el
lisp/startup.el
lisp/window.el
src/buffer.c