]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/os.texi (Session Management): Make example homoiconic
authorBruno Félix Rezende Ribeiro <oitofelix@gnu.org>
Sat, 8 Aug 2020 13:13:57 +0000 (15:13 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Aug 2020 13:17:38 +0000 (15:17 +0200)
* doc/lispref/os.texi (Session Management): Don't insert Lisp as
strings, but use format (bug#40341).

Copyright-paperwork-exempt: yes

doc/lispref/os.texi

index 942bda105f703edea2de36d9f7e96608b4912ff0..a7f353407ce90566821ad9add316470910507c38 100644 (file)
@@ -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