diff options
author | Bruno Félix Rezende Ribeiro <oitofelix@gnu.org> | 2020-08-08 15:13:57 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-08 15:17:38 +0200 |
commit | 527b8a807143253ed8e52de004fb3cc9a17123c0 (patch) | |
tree | 2152e84dc63ec388641ca04020b25bdff8edbe92 /doc/lispref | |
parent | 2e669305fca1d20e9224dfe0146cef8267c47071 (diff) | |
download | emacs-527b8a807143253ed8e52de004fb3cc9a17123c0.tar.gz |
* 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
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 |