diff options
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/os.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index 942bda105f7..a7f353407ce 100644 --- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -2687,9 +2687,10 @@ Emacs is restarted by the session manager. @group (defun save-yourself-test () - (insert "(save-current-buffer - (switch-to-buffer \"*scratch*\") - (insert \"I am restored\"))") + (insert + (format "%S" '(save-current-buffer + (switch-to-buffer "*scratch*") + (insert "I am restored")))) nil) @end group @end example |