GNU bug report logs - #40341
[PATCH] * doc/lispref/os.texi (Session Management): make example homoiconic

Previous Next

Package: emacs;

Reported by: oitofelix <at> gnu.org

Date: Tue, 31 Mar 2020 07:10:01 UTC

Severity: minor

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: oitofelix <at> gnu.org, 40341 <at> debbugs.gnu.org
Subject: bug#40341: [PATCH] * doc/lispref/os.texi (Session Management): make example homoiconic
Date: Tue, 14 Apr 2020 20:54:30 +0300
> From: Noam Postavsky <npostavs <at> gmail.com>
> Date: Tue, 14 Apr 2020 09:52:56 -0400
> Cc: 40341 <at> debbugs.gnu.org
> 
> > +    (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.)

It wouldn't hurt to put our money where our mouth is, I agree.




This bug report was last modified 4 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.