From: Noam Postavsky <npostavs@gmail.com>
To: oitofelix@gnu.org
Cc: 40341@debbugs.gnu.org
Subject: bug#40341: [PATCH] * doc/lispref/os.texi (Session Management): make example homoiconic
Date: Tue, 14 Apr 2020 09:52:56 -0400 [thread overview]
Message-ID: <85eesqyy13.fsf@gmail.com> (raw)
In-Reply-To: <87mu7xc865.fsf@oitofelix.com> (oitofelix@gnu.org's message of "Tue, 31 Mar 2020 04:09:22 -0300")
severity 40341 minor
quit
oitofelix@gnu.org writes:
> --- a/doc/lispref/os.texi
> +++ b/doc/lispref/os.texi
> @@ -2675,10 +2675,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\"))")
> - nil)
> + (insert (format "%S" '(save-current-buffer
> + (switch-to-buffer "*scratch*")
> + (insert "I am restored"))))
> + nil)
Shouldn't this example also be using set-buffer instead of
switch-to-buffer? (Or rather, with-current-buffer instead of
save-current-buffer + switch-to-buffer.)
next prev parent reply other threads:[~2020-04-14 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-31 7:09 bug#40341: [PATCH] * doc/lispref/os.texi (Session Management): make example homoiconic oitofelix
2020-04-14 13:52 ` Noam Postavsky [this message]
2020-04-14 17:54 ` Eli Zaretskii
2020-08-08 13:14 ` Lars Ingebrigtsen
2020-08-08 13:14 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85eesqyy13.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=40341@debbugs.gnu.org \
--cc=oitofelix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.