aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2015-09-02 15:08:03 -0700
committerPaul Eggert2015-09-02 15:08:36 -0700
commit3d08d06a661344c0ff645e6362e2a2fe1f2e7348 (patch)
tree854030021c8ce65cd6f1a62d57d0c4db2e224703 /doc
parentb28ad0e9f74646b1126af096a41af20d3e01ad68 (diff)
downloademacs-3d08d06a661344c0ff645e6362e2a2fe1f2e7348.tar.gz
emacs-3d08d06a661344c0ff645e6362e2a2fe1f2e7348.zip
Treat initial-scratch-message as a doc string
* doc/emacs/building.texi (Lisp Interaction): * doc/lispref/os.texi (Startup Summary): * etc/NEWS: Document this. * lisp/startup.el (initial-scratch-message): Look up find-file’s key rather than hardcoding it. (command-line-1): Substitute the doc string. This also substitutes the quotes, which will help test display quoting at startup.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/building.texi2
-rw-r--r--doc/lispref/os.texi3
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi
index b4a99a1c25e..1d40a2dd12d 100644
--- a/doc/emacs/building.texi
+++ b/doc/emacs/building.texi
@@ -1549,7 +1549,7 @@ mode are the same as in Emacs Lisp mode.
1549 At startup, the @file{*scratch*} buffer contains a short message, in 1549 At startup, the @file{*scratch*} buffer contains a short message, in
1550the form of a Lisp comment, that explains what it is for. This 1550the form of a Lisp comment, that explains what it is for. This
1551message is controlled by the variable @code{initial-scratch-message}, 1551message is controlled by the variable @code{initial-scratch-message},
1552which should be either a string, or @code{nil} (which means to 1552which should be either a documentation string, or @code{nil} (which means to
1553suppress the message). 1553suppress the message).
1554 1554
1555@findex ielm 1555@findex ielm
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 64ebb45f23b..bbe87ca6181 100644
--- a/doc/lispref/os.texi
+++ b/doc/lispref/os.texi
@@ -195,7 +195,7 @@ It now exits if the option @code{--batch} was specified.
195 195
196@item 196@item
197If the @file{*scratch*} buffer exists and is empty, it inserts 197If the @file{*scratch*} buffer exists and is empty, it inserts
198@code{initial-scratch-message} into that buffer. 198@code{(substitute-command-keys initial-scratch-message)} into that buffer.
199 199
200@item 200@item
201If @code{initial-buffer-choice} is a string, it visits the file (or 201If @code{initial-buffer-choice} is a string, it visits the file (or
@@ -314,6 +314,7 @@ file will not inhibit the message for someone else.
314 314
315@defopt initial-scratch-message 315@defopt initial-scratch-message
316This variable, if non-@code{nil}, should be a string, which is 316This variable, if non-@code{nil}, should be a string, which is
317treated as documentation to be
317inserted into the @file{*scratch*} buffer when Emacs starts up. If it 318inserted into the @file{*scratch*} buffer when Emacs starts up. If it
318is @code{nil}, the @file{*scratch*} buffer is empty. 319is @code{nil}, the @file{*scratch*} buffer is empty.
319@end defopt 320@end defopt