[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 527b8a8 1/2: * doc/lispref/os.texi (Session Management): Make exa
From: |
Lars Ingebrigtsen |
Subject: |
master 527b8a8 1/2: * doc/lispref/os.texi (Session Management): Make example homoiconic |
Date: |
Sat, 8 Aug 2020 09:17:45 -0400 (EDT) |
branch: master
commit 527b8a807143253ed8e52de004fb3cc9a17123c0
Author: Bruno FĂ©lix Rezende Ribeiro <oitofelix@gnu.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
* doc/lispref/os.texi (Session Management): Make example homoiconic
* 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 | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index 942bda1..a7f3534 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