;; we just created it.
(with-current-buffer scratch
(when initial-scratch-message
- (insert (substitute-command-keys initial-scratch-message))
+ ;; We used to run this through substitute-command-keys,
+ ;; but that might be unsafe in some rare cases, and this
+ ;; function must never fail and signal an error, because
+ ;; it is called from other_buffer_safely, which must
+ ;; always produce a valid buffer.
+ (insert initial-scratch-message)
(set-buffer-modified-p nil))
(funcall initial-major-mode))
scratch)))
(defcustom initial-scratch-message (purecopy "\
;; This buffer is for text that is not saved, and for Lisp evaluation.
-;; To create a file, visit it with \\[find-file] and enter text in its buffer.
+;; To create a file, visit it with \"C-x C-f\" and enter text in its buffer.
")
"Initial documentation displayed in *scratch* buffer at startup.