projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e66930
)
* doc/lispref/os.texi (Session Management): Make example homoiconic
author
Bruno Félix Rezende Ribeiro
<oitofelix@gnu.org>
Sat, 8 Aug 2020 13:13:57 +0000
(15:13 +0200)
committer
Lars 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
patch
|
blob
|
history
diff --git
a/doc/lispref/os.texi
b/doc/lispref/os.texi
index 942bda105f703edea2de36d9f7e96608b4912ff0..a7f353407ce90566821ad9add316470910507c38 100644
(file)
--- 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